|
36 | 36 | import tempfile |
37 | 37 | import shutil |
38 | 38 | import random |
39 | | -from bcftbx.JobRunner import SimpleJobRunner |
40 | 39 | from bcftbx.FASTQFile import FastqIterator |
41 | | -from bcftbx.TabFile import TabFile |
42 | 40 | from bcftbx.utils import mkdir |
43 | | -from bcftbx.utils import mkdirs |
44 | | -from bcftbx.utils import find_program |
45 | 41 | from bcftbx.ngsutils import getreads |
46 | 42 | from bcftbx.ngsutils import getreads_subset |
47 | 43 | from ..analysis import AnalysisFastq |
|
57 | 53 | from ..pipeliner import PipelineParam as Param |
58 | 54 | from ..pipeliner import ListParam |
59 | 55 | from ..pipeliner import PipelineFailure |
60 | | -from ..tenx.cellplex import CellrangerMultiConfigCsv |
61 | 56 | from ..tenx.multiome import MultiomeLibraries |
62 | | -from ..tenx.utils import add_cellranger_args |
63 | | -from ..utils import get_organism_list |
| 57 | +from ..utils import normalise_organism_name |
64 | 58 | from .modules.cellranger_atac_count import CellrangerAtacCount |
65 | 59 | from .modules.cellranger_arc_count import CellrangerArcCount |
66 | 60 | from .modules.cellranger_count import CellrangerCount |
|
74 | 68 | from .modules.rseqc_infer_experiment import RseqcInferExperiment |
75 | 69 | from .modules.sequence_lengths import SequenceLengths |
76 | 70 | from .modules.strandedness import Strandedness |
77 | | -from .protocols import determine_qc_protocol |
78 | | -from .protocols import fetch_protocol_definition |
79 | 71 | from .protocols import parse_qc_module_spec |
80 | 72 | from .reporting import report as reportqc |
81 | 73 | from .utils import get_bam_basename |
@@ -286,10 +278,7 @@ def add_project(self,project,protocol,qc_dir=None,organism=None, |
286 | 278 | organism = project.info.organism |
287 | 279 |
|
288 | 280 | # Sanitised organism name |
289 | | - organism_name = str(organism).\ |
290 | | - strip().\ |
291 | | - lower().\ |
292 | | - replace(' ','_') |
| 281 | + organism_name = normalise_organism_name(organism) |
293 | 282 |
|
294 | 283 | # Report details |
295 | 284 | self.report("-- Protocol : %s" % protocol.name) |
|
0 commit comments