Selecting between profiles¶
Nextflow profiles are a set of “sensible defaults” for the resource requirements of each of the steps in the workflow, that can be enabled with the command line flag
-profile. You can learn more about nextflow profiles at:
The pipeline have “standard profiles” set to run the workflows with either conda, docker or singularity using the local executor, which is nextflow’s default and basically runs the pipeline processes in the computer where Nextflow is launched. If you need to run the pipeline using another executor such as sge, lsf, slurm, etc. you can take a look at nextflow’s manual page to proper configure one in a new custom profile set in your personal copy of ngs-preprocess config file and take advantage that nextflow allows multiple profiles to be used at once, e.g.
By default, if no profile is chosen, the pipeline will try to load tools from the local machine $PATH. Available pre-set profiles for this pipeline are:
docker/conda/singularity, you can choose between them as follows:
# must be executed from the base environment # This tells nextflow to load the available ngs-preprocess environment when required nextflow run fmalmeida/ngs-preprocess -profile conda [options]
nextflow run fmalmeida/ngs-preprocess -profile docker [options]
nextflow run fmalmeida/ngs-preprocess -profile singularity [options]
Please use conda as last resource since the packages will not be “frozen and pre-installed”, problems may arise, and nextflow will trigger an installation every time which may consume plenty of time.