# within an optional interval.
my ( $file, # path to KISS file
- $beg, # interval begin - OPTIONAL
- $end, # interval end - OPTIONAL
+ $beg, # interval begin - OPTIONAL
+ $end, # interval end - OPTIONAL
) = @_;
# Returns a list.
while ( $entry = kiss_entry_get( $fh ) )
{
- push @entries, $entry if $entry->[ S_END ] > $beg;
-
last if $entry->[ S_BEG ] > $end;
+ push @entries, $entry if $entry->[ S_END ] > $beg;
}
close $fh;
$entry->[ S_BEG ] = $record->{ 'S_BEG' };
$entry->[ S_END ] = $record->{ 'S_END' };
$entry->[ Q_ID ] = $record->{ 'Q_ID' } || ".";
- $entry->[ SCORE ] = $record->{ 'SCORE' } || $record->{ 'BIT_SCORE' } || ".";
+ $entry->[ SCORE ] = $record->{ 'SCORE' } || $record->{ 'BIT_SCORE' } || $record->{ 'ID' } || ".";
$entry->[ STRAND ] = $record->{ 'STRAND' } || ".";
$entry->[ HITS ] = $record->{ 'HITS' } || ".";
$entry->[ ALIGN ] = $record->{ 'ALIGN' } || $record->{ 'DESCRIPTOR' } || ".";