Skip to content

Commit

Permalink
some filename fixes and better logmsg
Browse files Browse the repository at this point in the history
  • Loading branch information
lskatz committed Sep 2, 2015
1 parent d769bff commit 451eaa5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/shuffleSplitReads.pl
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ sub shuffleWorker{
while(defined(my $tmp=$Q->dequeue)){
my($basename,$reads)=@$tmp;

logmsg "Looking for $basename";
my $outfile="$outdir/$basename.fastq.gz";
next if(-e $outfile);

system("run_assembly_shuffleReads.pl $$reads{1} $$reads{2} | gzip -c > $outfile.tmp");
my $outfile="$outdir/".basename($basename).".fastq.gz";
logmsg "Looking for $basename*";
if(-e $outfile){
logmsg "Found $outfile; will not reshuffle";
next;
}
my $command="run_assembly_shuffleReads.pl $$reads{1} $$reads{2} | gzip -c > $outfile.tmp";
system($command);
die "ERROR with run_assembly_shuffleReads.pl" if $?;
system("mv -v $outfile.tmp $outfile");
}
Expand Down

0 comments on commit 451eaa5

Please sign in to comment.