Skip to content

Commit 6809a29

Browse files
committed
Added queue size and formatted help
1 parent 0a568d7 commit 6809a29

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/workflow_code/main.nf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ if (params.help) {
3737
println("PLEASE NOTE: This workflow assumes that all your raw reads end with the same suffix. If they don't please modify your filenames to have the same suffix as shown below.")
3838
println("--raw_R1_suffix [STRING] Raw forward reads suffix (region following the unique part of the sample names). e.g. _R1_raw.fastq.gz.")
3939
println("--raw_R2_suffix [STRING] Raw reverse reads suffix (region following the unique part of the sample names). e.g. _R2_raw.fastq.gz.")
40-
40+
println()
4141
println("Cutadapt (trimming) parameters:")
4242
println(" --F_primer [STRING] Forward primer sequence e.g. AGAGTTTGATCCTGGCTCAG. Default: emptry string.")
4343
println(" --R_primer [STRING] Reverse primer sequence e.g. CTGCCTCCCGTAGGAGT. Default: emptry string.")
4444
println(" --min_cutadapt_len [INTEGER] What should be the minimum read length after quality trimming with cutadapt. Default: 130.")
4545
println(" --primers_linked [STRING] Are the primers linked?. https://cutadapt.readthedocs.io/en/stable/recipes.html#trimming-amplicon-primers-from-paired-end-reads. Default: TRUE. ")
4646
println(" --discard_untrimmed [STRING] Should untrimmed reads be discarded? Any supplied string except TRUE will not discard them. Default: TRUE.")
47-
47+
println()
4848
println("Optional arguments:")
4949
println(" --help Print this help message and exit.")
5050
println(" --publishDir_mode [STRING] How should nextflow publish file outputs. Options can be found here https://www.nextflow.io/docs/latest/process.html#publishdir. Default: link.")
5151
println(" --errorStrategy [STRING] How should nextflow handle errors. Options can be found here https://www.nextflow.io/docs/latest/process.html#errorstrategy. Default: terminate")
5252
println(" --enable_visualizations [BOOLEAN] Should ASV plots be made? true or false. if true supply a path to the ruhnsheet for plotting to the --runsheet option. Default: false.")
5353
println(" --runsheet [PATH] A 4-column file with these exact headers [Sample Name, read1_path, raw_R1_suffix, groups] for plotting. Only relevant if --enable_visualizations is true. Default: null.")
5454
println(" --multiqc_config [PATH] Path to a custome multiqc config file. Default: config/multiqc.config.")
55-
55+
println()
5656
println("Dada2 parameters passed to filterAndTrim() function:")
5757
println(" --left_trunc [INTEGER] truncate the sequences to the left by this number of bases. Default: 0.")
5858
println(" --right_trunc [INTEGER] truncate the sequences to the right by this number of bases. Default: 0.")
@@ -62,12 +62,13 @@ if (params.help) {
6262
println(" This is typically used with primers like 515-926, that captured 18S fragments that are typically too long to merge.")
6363
println(" Note that 16S and 18S should have been separated already prior to running this workflow. This should likely be left as FALSE for any option other than 18S above.")
6464
println(" Values are TRUE or FALSE Default: FALSE.")
65-
65+
println()
6666
println("File Suffixes:")
6767
println(" --primer_trimmed_R1_suffix [STRING] Suffix to use for naming your primer trimmed forward reads. Default: _R1_trimmed.fastq.gz.")
6868
println(" --primer_trimmed_R2_suffix [STRING] Suffix to use for naming your primer trimmed reverse reads. Default: _R2_trimmed.fastq.gz.")
6969
println(" --filtered_R1_suffix [STRING] Suffix to use for naming your quality filtered forward reads. Default: _R1_filtered.fastq.gz.")
7070
println(" --filtered_R2_suffix [STRING] Suffix to use for naming your quality filtered reverse reads. Default: _R2_filtered.fastq.gz.")
71+
println()
7172
println("Output directories:")
7273
println(" --raw_reads_dir [PATH] Where should the fastqc report of the raw reads be stored. Default: Raw_Sequence_Data/.")
7374
println(" --fastqc_out_dir [PATH] Where should multiqc outputs be stored. Default: workflow_output/FastQC_Outputs/.")
@@ -76,10 +77,12 @@ if (params.help) {
7677
println(" --info_out_dir [PATH] Where should output metadata be stored. Default: workflow_output/Metadata/.")
7778
println(" --plots_dir [PATH] Where should your plots be stored if visualization is enabled. Default: workflow_output/Final_Outputs/Plots/.")
7879
println(" --final_outputs_dir [PATH] Where should most outputs and summary reports be stored. Default: workflow_output/Final_Outputs/.")
80+
println()
7981
println("Genelab specific arguements:")
8082
println(" --GLDS_accession [STRING] A Genelab accession number if the --csv_file parameter is not set. If this parameter is set, it will ignore the --csv_file parameter.")
8183
println(" --assay_suffix [STRING] Genelabs assay suffix. Default: GLAmpSeq.")
8284
println(" --output_prefix [STRING] Unique name to tag onto output files. Default: empty string.")
85+
println()
8386
println("Paths to existing conda environments to use otherwise a new one will be created using the yaml file in envs/.")
8487
println(" --conda.qc [PATH] Path to a conda environment containing fastqc, multiqc, zip and python. Default: null.")
8588
println(" --conda.R [PATH] Path to a conda environment containing R along with the packages decipher and biomformat installed. Default: null.")

Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/workflow_code/nextflow.config

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
params {
32
// Mandatory parameters
43
target_region = "16S" // "16S", "18S", "ITS"
@@ -7,7 +6,6 @@ params {
76
raw_reads_dir = "${baseDir}/Raw_Sequence_Data/"
87
trim_primers = true
98

10-
119
// -------- Mandatory if not using GLDS_accession ---------------------------------//
1210
// A 3-column (single-end) or 4-column (paired-end) input file ( sample_id, forward, [reverse,] paired)
1311
csv_file = "${baseDir}/PE_file.csv"
@@ -45,7 +43,6 @@ params {
4543
cutadapt = null
4644
}
4745

48-
4946
// Mandatory parameters if using GLDS_accession
5047
GLDS_accession = false
5148

@@ -59,7 +56,6 @@ params {
5956
filtered_R1_suffix = "_R1_filtered.fastq.gz"
6057
filtered_R2_suffix = "_R2_filtered.fastq.gz"
6158

62-
6359
// directories
6460
fastqc_out_dir = "${baseDir}/workflow_output/FastQC_Outputs/"
6561
trimmed_reads_dir = "${baseDir}/workflow_output/Trimmed_Sequence_Data/"
@@ -68,34 +64,29 @@ params {
6864
plots_dir = "${baseDir}/workflow_output/Final_Outputs/Plots/"
6965
final_outputs_dir = "${baseDir}/workflow_output/Final_Outputs/"
7066

71-
7267
// Multiqc
7368
multiqc_config ="${baseDir}/config/multiqc.config"
7469
errorStrategy = "terminate"
7570
}
7671

7772
profiles {
7873

79-
8074
slurm_conda {
81-
process.executor = 'slurm'
75+
process.executor = "slurm"
8276
//process.queue = "normal,priority"
83-
process.queueSize = 32 // how many jobs should be submitted at one time
8477
conda.enabled = true
8578
}
8679
conda {
8780
conda.enabled = true
8881
}
8982

9083
slurm_sing {
91-
process.executor = 'slurm'
84+
process.executor = "slurm"
9285
//process.queue = "normal,priority"
93-
process.queueSize = 32 // how many jobs should be submitted at one time
9486
singularity.enabled = true
9587
singularity.autoMounts = true
9688
singularity.cacheDir = "singularity/"
9789
}
98-
9990

10091
singularity {
10192
singularity.enabled = true
@@ -111,6 +102,8 @@ profiles {
111102

112103
}
113104

105+
// how jobs should be run in parallel
106+
executor.queueSize = 10
114107

115108
process {
116109

@@ -174,7 +167,7 @@ process {
174167
withName: R_VISUALIZATION {
175168
conda = {params.conda.R_visualizations != null ? params.conda.R_visualizations : "envs/R_visualizations.yaml"}
176169
container = "olabiyi/r-tidyverse-vegan-deseq2-phyloseq:1.0"
177-
memory = '20 GB'
170+
memory = "20 GB"
178171
cpus = 10
179172
publishDir = [path: "${params.plots_dir}${params.output_prefix}",
180173
mode: params.publishDir_mode, saveAs: { fn -> fn.substring(fn.indexOf('/')+1)}]

0 commit comments

Comments
 (0)