Skip to content

Commit fca73dc

Browse files
committed
qc/pipeline: use the 'normalise_organism_name' for updating names.
Explicitly call the 'normalise_organism_name' function to get a normalised name, for consistency with other code in the package.
1 parent a76df3d commit fca73dc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

auto_process_ngs/qc/pipeline.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
from .reporting import report as reportqc
8181
from .utils import get_bam_basename
8282
from .utils import get_seq_data_samples
83+
from .utils import normalise_organism_name
8384
from .utils import set_cell_count_for_project
8485
from .verification import verify_project
8586

@@ -286,10 +287,7 @@ def add_project(self,project,protocol,qc_dir=None,organism=None,
286287
organism = project.info.organism
287288

288289
# Sanitised organism name
289-
organism_name = str(organism).\
290-
strip().\
291-
lower().\
292-
replace(' ','_')
290+
organism_name = normalise_organism_name(organism)
293291

294292
# Report details
295293
self.report("-- Protocol : %s" % protocol.name)

0 commit comments

Comments
 (0)