use constant {
SEQ_NAME => 0,
SEQ => 1,
+
+ S_ID => 0,
};
{
if ( $entry = Maasha::KISS::biopiece2kiss( $record ) )
{
- $entry->{ 'S_ID' } = ( split / /, $entry->{ 'S_ID' } )[ 0 ];
+ $entry->[ S_ID ] = ( split / /, $entry->[ S_ID ] )[ 0 ];
- if ( not exists $fh_hash{ $entry->{ 'S_ID' } } ) {
- $fh_hash{ $entry->{ 'S_ID' } } = Maasha::Filesys::file_write_open( "$tmp_dir/$entry->{ 'S_ID' }" );
+ if ( not exists $fh_hash{ $entry->[ S_ID ] } ) {
+ $fh_hash{ $entry->[ S_ID ] } = Maasha::Filesys::file_write_open( "$tmp_dir/$entry->[ S_ID ]" );
}
- $fh_out = $fh_hash{ $entry->{ 'S_ID' } };
+ $fh_out = $fh_hash{ $entry->[ S_ID ] };
Maasha::KISS::kiss_entry_put( $entry, $fh_out );
}
Maasha::KISS::kiss_sort( "$dst_dir/track_data.kiss" );
Maasha::KISS::kiss_index( "$dst_dir/track_data.kiss" );
+ unlink "$dst_dir/track_data.kiss";
unlink "$tmp_dir/$key";
}
}