Skip to content

Commit

Permalink
Merge pull request #235 from MarieLataretu/master
Browse files Browse the repository at this point in the history
added skip-scorpio parameter fixes #234
  • Loading branch information
replikation authored Jun 20, 2022
2 parents 79f7d5a + 6f0dc2d commit 304938c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ params {
lcs_cutoff = 0.03
defaultpangolin = 'nanozoo/pangolin-v4:4.0.4--1.2.133'
defaultnextclade = 'nanozoo/nextclade:1.11.0--2022-03-31'
scorpio = false

// parameters
primerV = 'V3'
Expand Down
5 changes: 4 additions & 1 deletion poreCov.nf
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ ${c_yellow}Workflow control (optional)${c_reset}
--nanopolish use nanopolish instead of medaka for ARTIC (needs --fast5)
to skip basecalling use --fastq or --fastq_pass and provide a sequencing_summary.txt in addition to --fast5
e.g --nanopolish sequencing_summary.txt
--screen_reads Determines the Pangolineage of each individual read (takes time)
--screen_reads Determines the Pangolineage of each individual read (takes time)
--scorpio Skip Scorpio in pangolin run [default: $params.scorpio]
${c_dim}From pangolin version 4, Scorpio overwrites Usher results which leads to many unassigned samples
Can be turned on with --scorpio${c_reset}
${c_yellow}Parameters - Lineage detection on reads (see screen_reads, optional)${c_reset}
--lcs_ucsc_version Create marker table based on a specific UCSC SARS-CoV-2 tree (e.g. '2022-05-01'). Use 'predefined'
Expand Down
3 changes: 2 additions & 1 deletion workflows/process/pangolin.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ process pangolin {
output:
tuple val(name), path("lineage_report_${name}.csv") optional true
script:
def args = params.scorpio ? '' : '--skip-scorpio'
"""
pangolin -t ${task.cpus} ${fasta}
pangolin ${args} -t ${task.cpus} ${fasta}
mv lineage_report.csv lineage_report_${name}.csv
Expand Down

0 comments on commit 304938c

Please sign in to comment.