Skip to content

Commit f97d3a8

Browse files
committed
Fixed uninitialized header: interleavedSamples
1 parent 9f93e25 commit f97d3a8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

LABEL_RES/scripts/interleavedSamples.pl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,15 @@
196196
my $fasta_record;
197197
while ( $fasta_record = <$IN> ) {
198198
chomp($fasta_record);
199-
my @lines = split( /\r\n|\n|\r/smx, $fasta_record );
200-
my $header = shift(@lines);
201-
if ( defined $underscoreHeader ) { $header =~ tr/ /_/; }
199+
my @lines = split( /\r\n|\n|\r/smx, $fasta_record );
200+
my $header = shift(@lines);
202201
my $sequence = lc( join( q{}, @lines ) );
203202

204-
my $length = length($sequence);
205-
if ( $length == 0 ) {
203+
if ( length($sequence) == 0 ) {
206204
next;
207205
}
208206

207+
if ( defined $underscoreHeader ) { $header =~ tr/ /_/; }
209208
my $index = $id % $numberGroups;
210209
$id++;
211210
$count[$index]++;

0 commit comments

Comments
 (0)