Skip to content

Commit 451eaa5

Browse files
committed
some filename fixes and better logmsg
1 parent d769bff commit 451eaa5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/shuffleSplitReads.pl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@ sub shuffleWorker{
8484
while(defined(my $tmp=$Q->dequeue)){
8585
my($basename,$reads)=@$tmp;
8686

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);
9295
die "ERROR with run_assembly_shuffleReads.pl" if $?;
9396
system("mv -v $outfile.tmp $outfile");
9497
}

0 commit comments

Comments
 (0)