Skip to content

Commit

Permalink
bind mounts moved to process directives
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-watson committed Jan 8, 2025
1 parent 6100ec0 commit 17f1894
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
//base process. Takes a FASTA file containing contigs and performs taxonomic analysis with MICCR (https://github.com/chienchi/miccr).
process contigTaxonomy {
label 'cta'
containerOptions "--compat --cleanenv --home \
--bind /media/volume/sdb/nextflow/database/miccrDB:/venv/database/miccrDB"
publishDir(
path: "${settings["outDir"]}/AssemblyBasedAnalysis/Taxonomy",
mode: 'copy'
)

input:
val settings
path contigs
Expand All @@ -31,6 +34,8 @@ process contigTaxonomy {
//adds multi-level taxonomic classification to results file. Takes in a .ctg.tsv file produced by MICCR.
process addLineage {
label 'cta'
containerOptions "--compat --cleanenv --home \
--bind /media/volume/sdb/nextflow/database/miccrDB:/venv/database/miccrDB"
publishDir(
path: "${settings["outDir"]}/AssemblyBasedAnalysis/Taxonomy",
mode: 'copy'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
//main RTA process
process readsTaxonomy {
label 'rta'

containerOptions "--compat --cleanenv --home \
--bind /media/volume/sdd/nextflow/database:/venv/bin/../../../database \
--bind /media/volume/sdd/nextflow/krona_dbs:/venv/opt/krona/taxonomy"

publishDir(
path: "${settings["outDir"]}/ReadsBasedAnalysis/Taxonomy",
mode: 'copy',
Expand Down Expand Up @@ -43,6 +48,10 @@ process readsTaxonomy {
process readsTaxonomyConfig {
label 'rta'

containerOptions "--compat --cleanenv --home \
--bind /media/volume/sdd/nextflow/database:/venv/bin/../../../database \
--bind /media/volume/sdd/nextflow/krona_dbs:/venv/opt/krona/taxonomy"

input:
val settings
val avgLen
Expand Down
7 changes: 1 addition & 6 deletions workflows/Nextflow/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,7 @@ params {
apptainer {
enabled = true
pullTimeout = "1 hour"
//binds are installation-dependent binds to databases
//not all bound paths are accessed by all containers
runOptions = "--compat --cleanenv --home /media/volume/sdd/nextflow \
--bind /media/volume/sdd/nextflow/database:/venv/bin/../../../database \
--bind /media/volume/sdd/nextflow/krona_dbs:/venv/opt/krona/taxonomy \
--bind /media/volume/sdb/nextflow/database/miccrDB:/venv/database/miccrDB"
runOptions = "--compat --cleanenv --home"
}


Expand Down

0 comments on commit 17f1894

Please sign in to comment.