2022-02-18 06:55:14 +00:00
/*
2022-03-15 21:05:37 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-02-18 06:55:14 +00:00
nf-core/taxprofiler Nextflow config file
2022-03-15 21:05:37 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-02-18 06:55:14 +00:00
Default config options for all compute environments
----------------------------------------------------------------------------------------
*/
// Global default params, used in configs
params {
// Input options
input = null
2022-08-30 13:43:03 +00:00
2022-02-18 06:55:14 +00:00
// References
genome = null
igenomes_base = 's3://ngi-igenomes/igenomes'
igenomes_ignore = false
// MultiQC options
multiqc_config = null
multiqc_title = null
2022-10-05 03:30:53 +00:00
multiqc_logo = null
2022-02-18 06:55:14 +00:00
max_multiqc_email_size = '25.MB'
2022-10-05 03:30:53 +00:00
multiqc_methods_description = null
2022-02-18 06:55:14 +00:00
// Boilerplate options
2022-03-15 21:05:37 +00:00
outdir = null
2022-02-18 06:55:14 +00:00
tracedir = "${params.outdir}/pipeline_info"
2022-03-15 21:05:37 +00:00
publish_dir_mode = 'copy'
2022-02-18 06:55:14 +00:00
email = null
email_on_fail = null
plaintext_email = false
monochrome_logs = false
2022-10-05 03:30:53 +00:00
hook_url = null
2022-02-18 06:55:14 +00:00
help = false
2022-12-08 13:18:23 +00:00
version = false
2022-02-18 06:55:14 +00:00
validate_params = true
show_hidden_params = false
2022-12-20 20:48:08 +00:00
schema_ignore_params = 'genomes,fasta'
2022-02-18 06:55:14 +00:00
2022-08-30 13:43:03 +00:00
2022-02-18 06:55:14 +00:00
// Config options
custom_config_version = 'master'
custom_config_base = "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}"
config_profile_description = null
config_profile_contact = null
config_profile_url = null
config_profile_name = null
2022-08-30 13:43:03 +00:00
2022-02-18 06:55:14 +00:00
// Max resource options
// Defaults only, expecting to be overwritten
max_memory = '128.GB'
max_cpus = 16
max_time = '240.h'
2022-04-05 09:04:30 +00:00
// Databases
2022-02-19 11:36:08 +00:00
databases = null
2022-10-27 12:17:19 +00:00
// FASTQ preprocessing
2022-10-20 14:55:57 +00:00
preprocessing_qc_tool = 'fastqc'
2022-05-01 05:18:14 +00:00
perform_shortread_qc = false
shortread_qc_tool = 'fastp'
shortread_qc_skipadaptertrim = false
2022-12-06 10:47:16 +00:00
shortread_qc_mergepairs = false
2022-12-01 16:25:25 +00:00
shortread_qc_includeunmerged = false
2022-05-01 05:18:14 +00:00
shortread_qc_adapter1 = null
shortread_qc_adapter2 = null
2022-11-03 09:03:27 +00:00
shortread_qc_adapterlist = null
2022-05-01 05:18:14 +00:00
shortread_qc_minlength = 15
2022-08-30 11:58:58 +00:00
perform_longread_qc = false
longread_qc_skipadaptertrim = false
2022-08-30 12:21:20 +00:00
longread_qc_skipqualityfilter = false
2022-08-30 11:58:58 +00:00
longread_qc_qualityfilter_minlength = 1000
longread_qc_qualityfilter_keeppercent = 90
longread_qc_qualityfilter_targetbases = 500000000
2022-05-01 05:18:14 +00:00
save_preprocessed_reads = false
2022-03-03 16:42:02 +00:00
2022-04-02 15:02:05 +00:00
// Complexity filtering
2022-04-13 10:00:28 +00:00
perform_shortread_complexityfilter = false
2022-04-04 19:16:51 +00:00
shortread_complexityfilter_tool = 'bbduk'
shortread_complexityfilter_entropy = 0.3
shortread_complexityfilter_bbduk_windowsize = 50
shortread_complexityfilter_bbduk_mask = false
shortread_complexityfilter_prinseqplusplus_mode = 'entropy'
shortread_complexityfilter_prinseqplusplus_dustscore = 0.5
2022-05-07 04:09:05 +00:00
shortread_complexityfilter_fastp_threshold = 30
2022-04-06 08:27:11 +00:00
save_complexityfiltered_reads = false
2022-04-04 19:16:51 +00:00
2022-04-08 09:54:54 +00:00
// run merging
2022-04-13 10:00:28 +00:00
perform_runmerging = false
save_runmerged_reads = false
2022-03-03 16:42:02 +00:00
2022-04-03 05:58:40 +00:00
// Host Removal
2022-05-03 09:03:48 +00:00
perform_shortread_hostremoval = false
2022-05-05 11:19:10 +00:00
perform_longread_hostremoval = false
2022-05-05 11:20:34 +00:00
hostremoval_reference = null
2022-05-03 09:03:48 +00:00
shortread_hostremoval_index = null
2022-05-05 07:07:33 +00:00
longread_hostremoval_index = null
2022-05-03 09:03:48 +00:00
save_hostremoval_index = false
2023-03-03 12:33:41 +00:00
save_hostremoval_bam = false
2022-05-03 09:03:48 +00:00
save_hostremoval_unmapped = false
2023-03-22 14:39:45 +00:00
// Publishing final reads going into profiling
2023-03-23 14:46:02 +00:00
save_analysis_ready_fastqs = false
2022-04-03 05:58:40 +00:00
2022-03-03 16:42:02 +00:00
// MALT
run_malt = false
malt_mode = 'BlastN'
2022-05-07 03:22:35 +00:00
malt_generate_megansummary = false
2022-08-31 06:30:26 +00:00
malt_save_reads = false // added via map + database args extension in profiling.nf
2022-03-03 16:42:02 +00:00
// kraken2
2022-05-07 03:22:35 +00:00
run_kraken2 = false
2022-08-31 06:30:26 +00:00
kraken2_save_reads = false // added directly to module in profiling.nf
kraken2_save_readclassification = false // added directly to module in profiling.nf
2022-10-14 10:18:07 +00:00
kraken2_save_minimizers = false
2022-10-31 16:07:53 +00:00
//krakenuniq
run_krakenuniq = false
2022-11-03 13:58:03 +00:00
krakenuniq_ram_chunk_size = '16G'
2022-10-31 16:07:53 +00:00
krakenuniq_save_reads = false // added directly to module in profiling.nf
krakenuniq_save_readclassifications = false // added directly to module in profiling.nf
2023-03-30 14:49:22 +00:00
krakenuniq_batch_size = 20
2022-10-31 16:07:53 +00:00
2022-10-14 10:18:07 +00:00
// Bracken
2022-10-21 08:47:51 +00:00
run_bracken = false
2022-03-18 19:50:18 +00:00
2022-03-24 11:51:45 +00:00
// centrifuge
run_centrifuge = false
2022-08-31 06:30:26 +00:00
centrifuge_save_reads = false // added directly to module in profiling.nf
2022-04-13 10:00:28 +00:00
2022-03-18 19:50:18 +00:00
// metaphlan3
run_metaphlan3 = false
2022-04-13 16:51:56 +00:00
// kaiju
run_kaiju = false
2022-08-25 13:50:28 +00:00
kaiju_taxon_rank = 'species'
2022-04-29 19:59:42 +00:00
// diamond
run_diamond = false
2022-05-07 03:22:35 +00:00
diamond_output_format = 'tsv' // TSV is only format with taxonomic information apparently
2022-08-31 06:30:26 +00:00
diamond_save_reads = false // this will override default diamond output format so no taxonomic profile is generated! added directly to module in profiling.nf
2022-05-23 12:05:06 +00:00
// mOTUs
2022-12-01 12:42:21 +00:00
run_motus = false
motus_use_relative_abundance = false
motus_remove_ncbi_ids = false
motus_save_mgc_read_counts = false
2022-07-04 11:14:42 +00:00
2022-06-27 13:41:42 +00:00
// krona
run_krona = false
2022-06-30 09:43:52 +00:00
krona_taxonomy_directory = null
2022-07-12 09:39:26 +00:00
// profile standardisation
2023-02-16 13:29:52 +00:00
run_profile_standardisation = false
2023-02-17 13:47:29 +00:00
standardisation_taxpasta_format = 'tsv'
2023-02-27 10:02:55 +00:00
taxpasta_taxonomy_dir = null
2023-02-27 09:15:42 +00:00
taxpasta_add_name = false
taxpasta_add_rank = false
taxpasta_add_lineage = false
taxpasta_add_idlineage = false
2023-02-17 13:47:29 +00:00
standardisation_motus_generatebiom = false
2022-02-18 06:55:14 +00:00
}
// Load base.config by default for all pipelines
includeConfig 'conf/base.config'
// Load nf-core custom profiles from different Institutions
try {
includeConfig "${params.custom_config_base}/nfcore_custom.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load nf-core/config profiles: ${params.custom_config_base}/nfcore_custom.config")
}
2022-03-15 21:05:37 +00:00
// Load nf-core/taxprofiler custom profiles from different institutions.
// Warning: Uncomment only if a pipeline-specific instititutional config already exists on nf-core/configs!
2022-05-12 07:08:14 +00:00
try {
includeConfig "${params.custom_config_base}/pipeline/taxprofiler.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load nf-core/config/taxprofiler profiles: ${params.custom_config_base}/pipeline/taxprofiler.config")
}
2022-03-15 21:05:37 +00:00
2022-02-18 06:55:14 +00:00
profiles {
2023-04-28 14:26:38 +00:00
debug {
dumpHashes = true
process.beforeScript = 'echo $HOSTNAME'
cleanup = false
}
2022-02-18 06:55:14 +00:00
conda {
2022-12-08 13:18:23 +00:00
conda.enabled = true
2022-02-18 06:55:14 +00:00
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
2022-02-18 06:55:14 +00:00
}
2022-08-30 13:43:03 +00:00
mamba {
2022-12-08 13:18:23 +00:00
conda.enabled = true
2022-08-30 13:43:03 +00:00
conda.useMamba = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
2022-08-30 13:43:03 +00:00
}
2022-02-18 06:55:14 +00:00
docker {
docker.enabled = true
2023-04-28 14:26:38 +00:00
docker.registry = 'quay.io'
2022-02-18 06:55:14 +00:00
docker.userEmulation = true
2023-04-28 14:26:38 +00:00
conda.enabled = false
2022-02-18 06:55:14 +00:00
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
2022-02-18 06:55:14 +00:00
}
2022-12-08 13:18:23 +00:00
arm {
docker.runOptions = '-u $(id -u):$(id -g) --platform=linux/amd64'
}
2022-02-18 06:55:14 +00:00
singularity {
singularity.enabled = true
singularity.autoMounts = true
2023-04-28 14:26:38 +00:00
conda.enabled = false
2022-02-18 06:55:14 +00:00
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
2022-02-18 06:55:14 +00:00
}
podman {
podman.enabled = true
2023-04-28 14:26:38 +00:00
podman.registry = 'quay.io'
conda.enabled = false
2022-02-18 06:55:14 +00:00
docker.enabled = false
singularity.enabled = false
shifter.enabled = false
charliecloud.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
2022-02-18 06:55:14 +00:00
}
shifter {
shifter.enabled = true
2023-04-28 14:26:38 +00:00
conda.enabled = false
2022-02-18 06:55:14 +00:00
docker.enabled = false
singularity.enabled = false
podman.enabled = false
charliecloud.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
2022-02-18 06:55:14 +00:00
}
charliecloud {
charliecloud.enabled = true
2023-04-28 14:26:38 +00:00
conda.enabled = false
2022-02-18 06:55:14 +00:00
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
2023-04-28 14:26:38 +00:00
apptainer.enabled = false
}
apptainer {
apptainer.enabled = true
conda.enabled = false
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
2022-02-18 06:55:14 +00:00
}
2022-08-30 13:43:03 +00:00
gitpod {
executor.name = 'local'
executor.cpus = 16
executor.memory = 60.GB
}
2022-08-23 12:37:01 +00:00
test { includeConfig 'conf/test.config' }
test_full { includeConfig 'conf/test_full.config' }
test_noprofiling { includeConfig 'conf/test_noprofiling.config' }
test_nopreprocessing { includeConfig 'conf/test_nopreprocessing.config' }
test_nothing { includeConfig 'conf/test_nothing.config' }
test_motus { includeConfig 'conf/test_motus.config' }
2022-12-01 09:37:14 +00:00
test_krakenuniq { includeConfig 'conf/test_krakenuniq.config' }
2022-02-18 06:55:14 +00:00
}
2022-08-30 13:43:03 +00:00
2022-02-18 06:55:14 +00:00
// Load igenomes.config if required
2022-05-01 05:18:14 +00:00
2022-02-18 06:55:14 +00:00
if (!params.igenomes_ignore) {
includeConfig 'conf/igenomes.config'
} else {
params.genomes = [:]
}
2022-08-30 13:43:03 +00:00
2022-02-18 06:55:14 +00:00
// Export these variables to prevent local Python/R libraries from conflicting with those in the container
2022-03-15 21:05:37 +00:00
// The JULIA depot path has been adjusted to a fixed path `/usr/local/share/julia` that needs to be used for packages in the container.
2022-02-18 06:55:14 +00:00
// See https://apeltzer.github.io/post/03-julia-lang-nextflow/ for details on that. Once we have a common agreement on where to keep Julia packages, this is adjustable.
env {
2022-04-02 13:20:36 +00:00
PYTHONNOUSERSITE = '1'
2022-02-18 06:55:14 +00:00
R_PROFILE_USER = "/.Rprofile"
R_ENVIRON_USER = "/.Renviron"
JULIA_DEPOT_PATH = "/usr/local/share/julia"
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
def trace_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss')
timeline {
enabled = true
file = "${params.tracedir}/execution_timeline_${trace_timestamp}.html"
}
report {
enabled = true
file = "${params.tracedir}/execution_report_${trace_timestamp}.html"
}
trace {
enabled = true
file = "${params.tracedir}/execution_trace_${trace_timestamp}.txt"
}
dag {
enabled = true
2022-05-16 10:22:38 +00:00
file = "${params.tracedir}/pipeline_dag_${trace_timestamp}.html"
2022-02-18 06:55:14 +00:00
}
manifest {
name = 'nf-core/taxprofiler'
2023-04-28 14:26:38 +00:00
author = """James A. Fellows Yates, Sofia Stamouli, Moritz E. Beber, and the nf-core/taxprofiler team"""
2022-02-18 06:55:14 +00:00
homePage = 'https://github.com/nf-core/taxprofiler'
2023-04-29 15:58:15 +00:00
description = """Taxonomic classification and profiling of shotgun and long-read metagenomic data"""
2022-02-18 06:55:14 +00:00
mainScript = 'main.nf'
2022-12-08 13:18:23 +00:00
nextflowVersion = '!>=22.10.1'
2023-04-28 14:26:38 +00:00
version = '1.1.0dev'
2022-10-05 03:30:53 +00:00
doi = ''
2022-02-18 06:55:14 +00:00
}
// Load modules.config for DSL2 module specific options
includeConfig 'conf/modules.config'
// Function to ensure that resource requirements don't go beyond
// a maximum limit
def check_max(obj, type) {
if (type == 'memory') {
try {
if (obj.compareTo(params.max_memory as nextflow.util.MemoryUnit) == 1)
return params.max_memory as nextflow.util.MemoryUnit
else
return obj
} catch (all) {
println " ### ERROR ### Max memory '${params.max_memory}' is not valid! Using default value: $obj"
return obj
}
} else if (type == 'time') {
try {
if (obj.compareTo(params.max_time as nextflow.util.Duration) == 1)
return params.max_time as nextflow.util.Duration
else
return obj
} catch (all) {
println " ### ERROR ### Max time '${params.max_time}' is not valid! Using default value: $obj"
return obj
}
} else if (type == 'cpus') {
try {
return Math.min( obj, params.max_cpus as int )
} catch (all) {
println " ### ERROR ### Max cpus '${params.max_cpus}' is not valid! Using default value: $obj"
return obj
}
}
}