Skip to content

Parameters

All the parameters of the pipeline, generated from the parameter schema (nextflow_schema.json) used to validate them when the pipeline starts. See the usage page for how the parameters work together, e.g. the library types, the removal of optical duplicates or the CpG-level sequencing saturation.

The parameters can be given on the command line (e.g. --rrbs) or in a parameters file (-params-file params.yaml). Parameters hidden in the help message (--help) are not listed.

Define where the pipeline should find input data and save output data.

Parameter Description Type Default Required
--input Path to comma-separated file containing information about the samples in the experiment.
You will need to create a design file with information about the samples in your experiment before running the pipeline. Use this parameter to specify its location. It has to be a comma-separated file with 3 columns, and a header row. See usage docs.
string yes
--outdir The output directory where the results will be saved. You have to use absolute paths to storage on Cloud infrastructure. string yes
--email Email address for completion summary.
Set this parameter to your e-mail address to get a summary e-mail with details of the run sent to you when the workflow exits. If set in your user config file (~/.nextflow/config) then you don’t need to specify this on the command line for every run.
string
--multiqc_title MultiQC report title. Printed as page header, used for filename if not otherwise specified. string

Options for saving a variety of intermediate files

Parameter Description Type Default Required
--save_reference Save reference(s) to results directory boolean
--save_align_intermeds Save aligned intermediates to results directory boolean
--unmapped Bismark only - Save unmapped reads to FastQ files
Use the --unmapped flag to set the --unmapped flag with Bismark align and save the unmapped reads to FastQ files.
boolean
--save_trimmed Save trimmed reads to results directory.
By default, trimmed FastQ files will not be saved to the results directory. Specify this flag (or set to true in your config file) to copy these files to the results directory when complete.
boolean

Options for the reference genome indices used to align reads.

Parameter Description Type Default Required
--genome Name of iGenomes reference.
If using a reference genome configured in the pipeline using iGenomes, use this parameter to give the ID for the reference. This is then used to build the full paths for all required reference genome files e.g. --genome GRCh38. See the nf-core website docs for more details.
string
--fasta Path to FASTA genome file
If you have no genome reference available, the pipeline can build one using a FASTA file. This requires additional time and resources, so it’s better to use a pre-build index if possible. You can use the command line option --save_reference to keep the generated references so that they can be added to your config and used again in the future. If aligner is Bismark and bismark_index is specified, this parameter is ignored.
string
--fasta_index Path to Fasta index file.
The FASTA index file (.fa.fai) is only needed when using the bwa_meth aligner. It is used by MethylDackel. If using Bismark this parameter is ignored.
string
--bismark_index Path to a directory containing a Bismark reference index. string
--bwa_meth_index bwameth index filename base
Directory for a bwa-meth genome reference index. Only used when using the bwa-meth aligner. Note that this is not a complete path, but the directory containing the reference. For example, if you have file paths such as /path/to/ref/genome.fa.bwameth.c2t.bwt, you should specify /path/to/ref/.
string
Parameter Description Type Default Required
--aligner Alignment tool to use.
The nf-core/methylseq package is actually two pipelines in one. The default workflow uses Bismark with Bowtie2 as alignment tool: unless specified otherwise, nf-core/methylseq will run this pipeline. Since bismark v0.21.0 it is also possible to use HISAT2 as alignment tool. To run this workflow, invoke the pipeline with the command line flag --aligner bismark_hisat. HISAT2 also supports splice-aware alignment if analysis of RNA is desired (e.g. SLAMseq experiments), a file containing a list of known splicesites can be provided with --known_splices. The second workflow uses BWA-Meth and MethylDackel instead of Bismark. To run this workflow, run the pipeline with the command line flag --aligner bwameth.
Allowed values: bismark, bismark_hisat, bwameth
string bismark yes
--comprehensive Output information for all cytosine contexts.
By default, the pipeline only produces data for cytosine methylation states in CpG context. Specifying --comprehensive makes the pipeline give results for all cytosine contexts. Note that for large genomes (e.g. Human), these can be massive files. This is only recommended for small genomes (especially those that don’t exhibit strong CpG context methylation specificity). If specified, this flag instructs the Bismark methylation extractor to use the --comprehensive and --merge_non_CpG flags. This produces coverage files with information from about all strands and cytosine contexts merged into two files - one for CpG context and one for non-CpG context. If using the bwa-meth workflow, the flag makes MethylDackel report CHG and CHH contexts as well.
boolean

Presets for working with specific bisulfite library preparation methods.

Parameter Description Type Default Required
--pbat Preset for working with PBAT libraries.
Specify this parameter when working with PBAT (Post Bisulfite Adapter Tagging) libraries. Using this parameter sets the --pbat flag when aligning with Bismark. This tells Bismark to align complementary strands (the opposite of --directional). Additionally, this is a trimming preset equivalent to --clip_r1 6 --clip_r2 9 --three_prime_clip_r1 6 --three_prime_clip_r2 9
boolean
--rrbs Turn on if dealing with MspI digested material.
Use this parameter when working with RRBS (Reduced Representation Bisulfite Sequencing) data, that is digested using MspI. Specifying --rrbs will pass on the --rrbs parameter to TrimGalore! See the TrimGalore! documentation to read more about the effects of this option. This parameter also makes the pipeline skip the deduplication step. Together with --non_directional, Trim Galore also gets --non_directional.
boolean
--slamseq Run bismark in SLAM-seq mode.
Specify to run Bismark with the --slam flag to run bismark in SLAM-seq mode > NB: Only works with when using the bismark_hisat aligner (--aligner bismark_hisat)
boolean
--em_seq Preset for EM-seq libraries.
Equivalent to --clip_r1 10 --clip_r2 10 --three_prime_clip_r1 10 --three_prime_clip_r2 10. Also sets the --maxins flag to 1000 for Bismark.
boolean
--single_cell Trimming preset for single-cell bisulfite libraries.
Equivalent to --clip_r1 6 --clip_r2 6 --three_prime_clip_r1 6 --three_prime_clip_r2 6. Also sets the --non_directional flag for Bismark.
boolean
--accel Trimming preset for the Accel kit.
Equivalent to --clip_r1 10 --clip_r2 15 --three_prime_clip_r1 10 --three_prime_clip_r2 10
boolean
--cegx Trimming preset for the CEGX bisulfite kit.
Equivalent to --clip_r1 6 --clip_r2 6 --three_prime_clip_r1 2 --three_prime_clip_r2 2
boolean
--epignome Trimming preset for the Epignome kit.
Equivalent to --clip_r1 8 --clip_r2 8 --three_prime_clip_r1 8 --three_prime_clip_r2 8
boolean
--zymo Trimming preset for the Zymo kit.
Equivalent to --clip_r1 10 --clip_r2 10 --three_prime_clip_r1 10 --three_prime_clip_r2 10. Also sets the --non_directional flag for Bismark.
boolean

Bisulfite libraries often require additional base pairs to be removed from the ends of the reads before alignment.

Parameter Description Type Default Required
--clip_r1 Trim bases from the 5’ end of read 1 (or single-end reads). integer 0
--clip_r2 Trim bases from the 5’ end of read 2 (paired-end only). integer 0
--three_prime_clip_r1 Trim bases from the 3’ end of read 1 AFTER adapter/quality trimming. integer 0
--three_prime_clip_r2 Trim bases from the 3’ end of read 2 AFTER adapter/quality trimming integer 0
--nextseq_trim Trim bases below this quality value from the 3’ end of the read, ignoring high-quality G bases integer 0

Parameters specific to the Bismark workflow

Parameter Description Type Default Required
--non_directional Run alignment against all four possible strands.
By default, Bismark assumes that libraries are directional and does not align against complementary strands. If your library prep was not directional, use --non_directional to align against all four possible strands. Note that the --single_cell and --zymo parameters both set Bismark’s --non_directional automatically. Only --rrbs together with --non_directional also passes --non_directional to Trim Galore, which then removes the end-repair bases from reads of the complementary strands; --single_cell and --zymo use their trimming presets instead.
boolean
--cytosine_report Output stranded cytosine report, following Bismark’s bismark_methylation_extractor step.
By default, Bismark does not produce stranded calls. With this option the output considers all Cs on both forward and reverse strands and reports their position, strand, trinucleotide context and methylation state.
boolean
--relax_mismatches Turn on to relax stringency for alignment (set allowed penalty with –num_mismatches).
By default, Bismark is pretty strict about which alignments it accepts as valid. If you have good reason to believe that your reads will contain more mismatches than normal, this flags can be used to relax the stringency that Bismark uses when accepting alignments. This can greatly improve the number of aligned reads you get back, but may negatively impact the quality of your data. Bismark uses the Bowtie alignment scoring mechanism to filter reads. Mismatches cost -6, gap opening -5 and gap extension -2. So, a threshold of-60 would allow 10 mismatches or ~ 8 x 1-2bp indels. The threshold is dependent on the length of reads, so a penalty value is used where penalty * bp read length = threshold. The penalty value used by Bismark by default is 0.2, so for 100bp reads this would be a threshold of -20. If you specifying the --relax_mismatches pipeline flag, Bismark instead uses 0.6, or a threshold of -60. This adds the Bismark flag --score_min L,0,-0.6 to the alignment command. The penalty value can be modified using the --num_mismatches pipeline option.
boolean
--num_mismatches 0.6 will allow a penalty of bp * -0.6 - for 100bp reads (bismark default is 0.2)
Customise the penalty in the function used to filter reads based on mismatches. The parameter --relax_mismatches must also be specified. See the parameter documentation for --relax_mismatches for an explanation.
number 0.6
--meth_cutoff Specify a minimum read coverage to report a methylation call
Use to discard any methylation calls with less than a given read coverage depth (in fold coverage) during Bismark’s bismark_methylation_extractor step.
integer
--no_overlap Ignore read 2 methylation when it overlaps read 1
For paired-end reads it is theoretically possible that read_1 and read_2 overlap. To avoid scoring overlapping methylation calls twice, this is set to true by default. (Only methylation calls of read 1 are used since read 1 has historically higher quality basecalls than read 2). Whilst this option removes a bias towards more methylation calls in the center of sequenced fragments it may de facto remove a sizable proportion of the data. To count methylation data from both reads in overlapping regions, set this to false.
boolean true
--ignore_r1 Ignore methylation in first n bases of 5’ end of R1
Ignore the first <int> bp from the 5’ end of Read 1 (or single-end alignment files) when processing the methylation call string. This can remove e.g. a restriction enzyme site at the start of each read or any other source of bias (such as PBAT-Seq data).
integer 0
--ignore_r2 Ignore methylation in first n bases of 5’ end of R2
Ignore the first <int> bp from the 5’ end of Read 2 of paired-end sequencing results only. Since the first couple of bases in Read 2 of BS-Seq experiments show a severe bias towards non-methylation as a result of end-repairing sonicated fragments with unmethylated cytosines (see M-bias plot), it is recommended that the first couple of bp of Read 2 are removed before starting downstream analysis. Please see the section on M-bias plots in the Bismark User Guide for more details. If not set, it is 2, or 0 when Trim Galore already removes the start of Read 2: with a trimming preset, --clip_r2 or --rrbs. With --skip_trimming it stays 2.
integer
--ignore_3prime_r1 Ignore methylation in last n bases of 3’ end of R1
Ignore the first <int> bp from the 5’ end of Read 2 of paired-end sequencing results only. Since the first couple of bases in Read 2 of BS-Seq experiments show a severe bias towards non-methylation as a result of end-repairing sonicated fragments with unmethylated cytosines (see M-bias plot), it is recommended that the first couple of bp of Read 2 are removed before starting downstream analysis. Please see the section on M-bias plots in the Bismark User Guide for more details.
integer 0
--ignore_3prime_r2 Ignore methylation in last n bases of 3’ end of R2
Ignore the last <int> bp from the 3’ end of Read 2 of paired-end sequencing results only. This can remove unwanted biases from the end of reads. If not set, it is 2, or 0 with a trimming preset or --three_prime_clip_r2, which remove the end of Read 2, and with --rrbs, where that end carries no fill-in bias. With --skip_trimming it stays 2.
integer
--known_splices Supply a .gtf file containing known splice sites (bismark_hisat only).
Specify to run Bismark with the --known-splicesite-infile flag to run splice-aware alignment using HISAT2. A .gtf file has to be provided from which a list of known splicesites is created by the pipeline > NB: This only works when using the bismark_hisat aligner with --align
string
--local_alignment Allow soft-clipping of reads (potentially useful for single-cell experiments).
Specify to run Bismark with the --local flag to allow soft-clipping of reads. This should only be used with care in certain single-cell applications or PBAT libraries, which may produce chimeric read pairs. (See Wu et al.).
boolean
--minins The minimum insert size for valid paired-end alignments.
For example, if --minins 60 is specified and a paired-end alignment consists of two 20-bp alignments in the appropriate orientation with a 20-bp gap between them, that alignment is considered valid (as long as --maxins is also satisfied). A 19-bp gap would not be valid in that case. Default: no flag (Bismark default: 0).
integer
--maxins The maximum insert size for valid paired-end alignments.
For example, if --maxins 100 is specified and a paired-end alignment consists of two 20-bp alignments in the proper orientation with a 60-bp gap between them, that alignment is considered valid (as long as --minins is also satisfied). A 61-bp gap would not be valid in that case. Default: not specified. Bismark default: 500.
integer
--nomeseq Sample is NOMe-seq or NMT-seq. Runs coverage2cytosine.
Sets --CX during methylation extraction and --nome during the coverage2cytosine step. Will also force the coverage2cytosine step to run.
boolean
--filter_non_conversion Filtering incomplete bisulfite conversion from Bismark BAM files.
This script examines the methylation calls of reads and filters out reads that exceed a certain threshold of methylated calls in non-CG context (see percentage_cutoff and minimum_count).
boolean false
--percentage_cutoff Instead of filtering on an absolute count of methylated cytosines in non-CG context this option allows you to define an overall percentage of methylation in non-CG context (both CHH and CHG) which, if reached or exceeded, results in the read or read pair being filtered out.
For paired-end files either Read 1 or Read 2 can fail the entire read pair. Also requires a minimum number of cytosines in non-CG context to make confident filtering choices (see –minimum_count [int]).
integer 90
--minimum_count At least this number of cytosines in non-CG context (CHH or CHG) have to be seen in a read (irrespective of their methylation state) before the –percentage_cutoff filter kicks in.
At least this number of cytosines in non-CG context (CHH or CHG) have to be seen in a read (irrespective of their methylation state) before the –percentage_cutoff filter kicks in.
integer 3

Parameters for the removal of optical duplicates with Picard MarkDuplicates (Bismark workflow only).

Parameter Description Type Default Required
--remove_optic_duplicates Mark and remove optical duplicates using PicardMarkDuplicates. boolean true
--sequencer Type of sequencing machine used.
Allowed values: NovaSeq, HiSeq, NextSeq
string NovaSeq

Parameters for the CpG-level sequencing saturation analysis with methurator.

Parameter Description Type Default Required
--t_max Maximum extrapolation factor (t) value. integer 10
--minimum_coverage Minimum number of counts to define a new CpG string 1
--run_methurator Run methurator sequencing saturation curve (def. true). boolean true
Parameter Description Type Default Required
--min_depth Specify a minimum read coverage for MethylDackel to report a methylation call. integer 0
--ignore_flags MethylDackel - ignore SAM flags
Run MethylDackel with the --ignore_flags option, to ignore SAM flags.
boolean
--methyl_kit Save files for use with methylKit
Run MethylDackel with the --methyl_kit option, to produce files suitable for use with the methylKit R package.
boolean

Qualimap configurations

Parameter Description Type Default Required
--bamqc_regions_file A GFF or BED file containing the target regions which will be passed to Qualimap/Bamqc.
Setting this option could be useful if you want calculate coverage stats over a list of regions, i.e. for targeted methylation sequencing data.
``
Parameter Description Type Default Required
--skip_trimming Skip read trimming. boolean
--skip_deduplication Skip deduplication step after alignment.
Deduplication removes PCR duplicate reads after alignment. Specifying this option will skip this step, leaving duplicate reads in your data. Note that this is turned on automatically if --rrbs is specified.
boolean
--skip_multiqc Skip MultiQC boolean
--skip_preseq Skip preseq step.
Preseq is used to estimate the complexity of the sequencing library. Specifying this option will skip this step.
boolean

Less common options for the pipeline, typically set in a config file.

Parameter Description Type Default Required
--help Display the help message. boolean, string
--multiqc_methods_description Custom MultiQC yaml file containing HTML including a methods description. string
--help_full Display the full detailed help message. boolean
--show_hidden Display hidden parameters in the help message (only works when –help or –help_full are provided). boolean