Skip to content

Commit

Permalink
Don't expect blast.csv in remapped mode, for #442.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Nov 1, 2019
1 parent 4c6eb2b commit 6d4a049
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Singularity
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ From: centos:7

This Singularity container can be run on Kive: http://cfe-lab.github.io/Kive

Change Notes: Includes denovo assembly apps with merged contigs.
Change Notes: Includes denovo assembly apps with BLAST results displayed.

%labels
MAINTAINER BC CfE in HIV/AIDS https://github.com/cfe-lab/MiCall
Expand Down
8 changes: 7 additions & 1 deletion micall/drivers/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,14 @@ def process(self,
coverage_maps_prefix=self.name,
excluded_projects=excluded_projects)

if use_denovo:
blast_path = self.blast_csv
else:
blast_path = os.devnull
with open(self.genome_coverage_csv) as genome_coverage_csv, \
open(self.blast_csv) as blast_csv:
open(blast_path) as blast_csv:
if not use_denovo:
blast_csv = None
plot_genome_coverage(genome_coverage_csv,
blast_csv,
self.genome_coverage_svg)
Expand Down

0 comments on commit 6d4a049

Please sign in to comment.