Skip to content

Commit

Permalink
Added min contig length param for quast into pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
evagunawan committed Jan 30, 2025
1 parent d8eb070 commit 23d018c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Spriggan's main parameters and their defaults are shown in the table below:
| kraken_db | Path to Kraken database for classification |
| plus | Use AMRFinderPlus' --plus option (default: false) |
| selected_genes | Genes of interest to pull from AMRFinderPlus output (default: 'NDM\|OXA\|KPC\|IMP\|VIM') |
|ncbi_assembly_stats| Path to NCBI database (default: NCBI_Assembly_stats_20240124.txt)
| ncbi_assembly_stats | Path to NCBI database (default: NCBI_Assembly_stats_20240124.txt)
| min_quast_contig | Lower threshold for contig lenght in bp (default: 500) |

### Workflow outline

Expand Down
5 changes: 3 additions & 2 deletions modules/local/quast.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ process QUAST {

input:
tuple val(meta), path(contigs)
val(min_quast_contig)

output:
path("${meta.id}.transposed.quast.report.tsv") , emit: transposed_report
tuple val(meta), path("${meta.id}.transposed.quast.report.tsv") , emit: transposed_report
tuple val(meta), path("${meta.id}.quast.report.tsv") , emit: result
path "versions.yml" , emit: versions

Expand All @@ -19,7 +20,7 @@ process QUAST {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
quast.py ${contigs} -o .
quast.py ${contigs} -m ${min_quast_contig} -o .
mv report.tsv ${prefix}.quast.report.tsv
mv transposed_report.tsv ${prefix}.transposed.quast.report.tsv
Expand Down
3 changes: 3 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ params {
// QC Options
mincoverage = 40

// Quast
min_quast_contig = 500

// Trimming Parameters
minlength = 10
trimdirection = "lr"
Expand Down

0 comments on commit 23d018c

Please sign in to comment.