Skip to content

Commit

Permalink
bug fixed: get_homologues-pl -X now removes previous DIAMOND results …
Browse files Browse the repository at this point in the history
…of one vs others when new genomes are added
  • Loading branch information
eead-csic-compbio committed Aug 28, 2018
1 parent 17822b1 commit 9b2ee98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,4 @@
06062018: fixed POCP computation; now it is [100(C1 + C2)/(T1 + T2)]
06062018: fixed POCS computation; now it is [100(C1 + C2)/(T1 + T2)] and T1/T2 are #nr seqs
23072018: updated Grid Engine instructions in manuals
28082018: bug fixed: get_homologues-pl -X now removes previous DIAMOND results of one vs others when new genomes are added (thanks alexweisberg)
14 changes: 11 additions & 3 deletions get_homologues.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1441,10 +1441,18 @@
if(!-s $blast_file){ push(@tmp_blast_output_files,$blastout); }
next;
}
elsif($COMPRESSBLAST && -s $blastout.'.gz' && $current_files eq $previous_files)
elsif($COMPRESSBLAST && -s $blastout.'.gz')
{
if(!-s $blast_file){ push(@tmp_blast_output_files,$blastout); }
next;
if($current_files eq $previous_files) # check previous runs
{
if(!-s $blast_file){ push(@tmp_blast_output_files,$blastout); }
next;
}
else
{
print "# delete previous output $blastout.gz\n";
unlink($blastout.'.gz');
}
}

$command = format_DIAMONDblastp_command("$newDIR/$new_infile",
Expand Down

0 comments on commit 9b2ee98

Please sign in to comment.