File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,14 @@ sub shuffleWorker{
84
84
while (defined (my $tmp =$Q -> dequeue)){
85
85
my ($basename ,$reads )=@$tmp ;
86
86
87
- logmsg " Looking for $basename " ;
88
- my $outfile =" $outdir /$basename .fastq.gz" ;
89
- next if (-e $outfile );
90
-
91
- system (" run_assembly_shuffleReads.pl $$reads {1} $$reads {2} | gzip -c > $outfile .tmp" );
87
+ my $outfile =" $outdir /" .basename($basename )." .fastq.gz" ;
88
+ logmsg " Looking for $basename *" ;
89
+ if (-e $outfile ){
90
+ logmsg " Found $outfile ; will not reshuffle" ;
91
+ next ;
92
+ }
93
+ my $command =" run_assembly_shuffleReads.pl $$reads {1} $$reads {2} | gzip -c > $outfile .tmp" ;
94
+ system ($command );
92
95
die " ERROR with run_assembly_shuffleReads.pl" if $? ;
93
96
system (" mv -v $outfile .tmp $outfile " );
94
97
}
You can’t perform that action at this time.
0 commit comments