Within nextflow.confg, we'll create profiles. In order to do so, we'll have to remove mention of module, conda, python, etc. in main.nf. The env will be defined in each profile.
For example, here's the multiqc process in hpc-modules and singularity profiles.
profiles {
hpc-modules {
process {
withName: 'multiqc' {
module = params.multiqc_module
}
}
}
singularity {
singularity.enabled = true
process {
withName: 'multiqc' {
container = 'docker://multiqc/multiqc:v1.31'
}
}
}
}
This will make the nextflow.config long, but we can also separate the config into multiple configs I believe.
Within
nextflow.confg, we'll create profiles. In order to do so, we'll have to remove mention ofmodule,conda,python, etc. inmain.nf. The env will be defined in each profile.For example, here's the multiqc process in
hpc-modulesandsingularityprofiles.This will make the
nextflow.configlong, but we can also separate the config into multiple configs I believe.