Skip to content

Commit

Permalink
feat: Add save_dbs param to save diamond_db to output (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe authored Jul 17, 2023
1 parent 79305c7 commit c728ac5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ process {
]
}

if (params.save_dbs) {
withName: DIAMOND_MAKEDB {
publishDir = [
path: { "${params.outdir}/diamond_db/" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}

withName: "FASTQC*" {
ext.args = '--quiet'
}
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ params {
genome = null
igenomes_base = 's3://ngi-igenomes/igenomes'
igenomes_ignore = false
save_dbs = false

// Assembly
assembly_based = false
Expand Down
6 changes: 5 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
"type": "string",
"description": "MultiQC report title. Printed as page header, used for filename if not otherwise specified.",
"fa_icon": "fas fa-file-signature"
},
"save_dbs": {
"type": "boolean",
"description": "Save DIAMOND db to results directory after construction"
}
}
},
Expand Down Expand Up @@ -169,7 +173,7 @@
},
"fasta": {
"type": "string",
"default": null
"default": "None"
}
}
},
Expand Down

0 comments on commit c728ac5

Please sign in to comment.