Below are the full list of parameters that can be changed based on varying input data and required results.
Users may benefit from using the nf-core launch a pipeline from the web tool, which contains the same information listed below, but in a more graphically friendly format. You can fill out the fields and this tool will create the corresponding command line syntax.
- Nextflow
- Genome references and annotation
- Input sequence reads
- FastQC and adapter trimming
- Salmon
- STAR
- HTSeq
- RNA mapping statistics
- Other
All of the parameters listed here can be found in either the main configuration file
nextflow.config
orbase.config
. Alternatively, each parameter can be specified by the user when they require adjustments to the default settings. The format for parameters is either a flag telling the pipeline to run something, such as--run_STAR
, or to specify a particular value--max_cpus 16
, string--outWigStrand "Stranded"
or file--outdir "/path_to_file/file"
. Although many of the parameters listed below are set asFalse
in the configuration files - their usage on the command line will generally not require setting them to either True or False. Instead, by passing a parameter it becomes set to True. An example of this is the option to pass single end reads - this can be selected by just including--single_end
.
Note: most of the core Nextflow parameters only require a single hyphen
Name for the pipeline run. If not specified, Nextflow will automatically generate a random mnemonic. This is used in the MultiQC report and in the summary HTML / e-mail.
Specify this when restarting a pipeline. Nextflow will used cached results where the inputs are the same, continuing from where it ran to previously.
Alternatively, you can supply a run name to resume a specific run: -resume [run-name]
.
If unsure of the run name, you can use the nextflow log
command to show previous run names.
Specify the path to a specific config file.
Note: you can use this to override pipeline defaults.
Use to set the maximum memory for each process.
Use to set the max run time for each process.
Use to set the max number of CPUs for each process.
Where results will be saved (should be enclosed by quotation marks "..."
).
Provide git commit id for custom institutional configs hosted at nf-core/configs
.
This was implemented for reproducibility purposes. Default: master
## Download and use config file with following git commit id
--custom_config_version d52db660777c4bf36546ddb188ec530c3ada1b96
If you're running offline, nextflow will be unable to fetch the institutional config files from the internet. If required, files should be downloaded when an active internet connection is available, then pointing Nextflow to those files with this option.
For example:
## Download and unzip the config files
cd /path/to/my/configs
wget https://github.com/nf-core/configs/archive/master.zip
unzip master.zip
## Run the pipeline
cd /path/to/my/data
nextflow run /path/to/pipeline/ --custom_config_base /path/to/my/configs/configs-master/
Note: to make this process easier, the nf-core/tools helper package has a
download
command to download all required pipeline files + singularity containers + institutional configs in one go.
Genomes can be either compressed (.gz or .zip) or uncompressed.
This provides an opton to use a custom configuration file (which is included in conf/genomes.conf
). The default is false
and thus the config file will be used. When using a custom genome config file you can simply pass --genomes_ignore
on the command line.
--fasta_host "<path to host genome fasta file>"
--fasta_pathogen "<path to pathogen genome fasta file>"
References/annotation files can be either compressed (.gz or .zip) or uncompressed.
--gff_host "<path to host gff file>"
--gff_host_tRNA "<path to host tRNA gff file>"
--gff_pathogen "<path to pathogen gff file>"
The first two parameters are set to False
. If supplying custom transcriptome files, add the appropriate flags below.
--transcriptome_host "<path to host transcriptome fasta file>"
--transcriptome_pathogen "<path to pathogen transcriptome fasta file>"
The above nine parameters are all set as
False
. If specified, the folder/file should be enclosed by quotations"..."
.
IInput files can be read as either uncompressed or compressed (gzip) fasta or fastq files. They should be named descriptively without spaces and special characters (such as : and @), with the corresponding replicate (if any) appended at the end. The best practise for this pipeline is to use underscores to separate different experimental conditions.
Please note the following requirements:
- The path must be enclosed in quotes
- The path must have at least one
*
wildcard character - When using the pipeline with paired end data, the path must use
{1,2}
notation to specify read pairs. - If left unspecified, a default pattern is used:
"data/*{1,2}.fastq.gz"
- It is not possible to run a mixture of single-end and paired-end files in one run
Note: by default, the pipeline expects paired-end data. If you have single-end data, you need to specify
--single_end
on the command line when launched. For example:--single_end --input '*.fastq'
To learn more about best practices for file naming, please see the Input sequence reads
section from usage.md.
By default, the pipeline uses FastQC to generate quality control metrics from raw sequencing reads. To learn more on FastQC, please check FastQC website.
An option to not run FastQC. (Default: False)
This is set to False within the configuration files, but only needs to be passed on the command line to become True.
Define a set of additional fastqc parameters you wish to use, except --quiet --threads --noextract flags which are already specified in the dualrnaseq pipeline.
Trimming is performed by either Cutadapt or BBDuk with the following related options:
Cutadapt requires prior knowledge of the adaptors used during library preparation.
By default, the pipeline trims Illumina TruSeq adapters. See Illumina TruSeq.
To learn more on Cutadapt and its parameters visit the cutadapt documentation.
To run Cutadapt (Default: False)
For single-end reads as well as the first reads of paired-end data, adapter sequence can be specified with the--a
flag. For more information, see adapter-types.
For paired-end data, the adapter sequence for the second reads can be defined here. For more information, see trimming paired-end reads.
.
Cutadapt can also remove low-quality read ends. By default, the 3’ end of each read is trimmed using a cutoff of 10. For more information on cutoff values, see quality trimming.
If you specify two comma-separated cutoffs, the first value represents the 5’ cutoff, and the second one the 3’ cutoff.
Define a set of additional cutadapt parameters you wish to use, except -m and -j which are already specified in the dualrnaseq pipeline.
BBDuk does not require any prior knowledge about adapter types, searching for common adapter sequences from the file $baseDir/assets/adapters.fa
.
To learn more about BBDuk and its parameters visit the BBDuk website.
To run BBDuk (Default: False)
Reads shorter than this after trimming will be discarded (Pairs will be discarded if both are shorter).
To trim read ends to remove bases with quality below trimq.
Possible options:rl
(trim both ends), f
(neither end), r
(right end only) l
(left end only), w
(sliding window).
Cutoff to trim regions with average quality BELOW given value.
Option is available if qtrim is set to something other than f. Reads shorter than this after trimming will be discarded (Pairs will be discarded if both are shorter).
To trim reads to remove bases matching reference kmers. Avaiable options: f
(don't trim), r
(trim to the right - 3' adapters), l
(trim to the left - 5' adapters).
Kmer length used for finding contaminants (adapters). Contaminants shorter than k will not be found. k must be at least 1.
Look for shorter kmers at read tips down to this length, when k-trimming or masking. 0 means disabled. Enabling this will disable maskmiddle
Maximum Hamming distance for ref kmers (subs only).
Fasta file with adapter sequences (Default: $baseDir/assets/adapters.fa
).
Define a set of additional BBDuk parameters you wish to use, except -Xmx1g which is already specified in the dualrnaseq pipeline.
These parameters are available for Salmon in both Selective Alignment and alignment-based mode.
To define the sequencing library of your data.
To learn more on library types available in Salmon, please read What’s this LIBTYPE?
By default, this is set to 0.0
, to ensure that only mappings or alignments that are compatible with the specified library type are considered by Salmon. You can find more information on this parameter in the Salmon documentation.
Option to extract all of the unique and ambiguous reads after quantification.
This is useful to analyse reads which multimap across or within genomes. This option merges the quant.sf
file with the aux_info/ambig_info.tsv
file, combining columns which show how the underlying reads were processed and assigned. If a read maps uniquely to a feature, then the read will be added to UniqueCount column. If the read maps to more than one location, it will be summed against each of the features and shown in the AmbigCount column. The underlying statistical model of Salmon is able to assign many of these multimapping reads to a specific feature and hense will appear in the NumReads column. The output file is located under the aux_info
folder.
Works for both Selective alignment and alignment-based modes (Default: False).
The pipeline uses gene features from the 3rd column of the host annotative (gff) file, to extract the coordinates of transcripts to be quantified.
By default, the pipeline uses exon
from the --gff_host
file and tRNA
from the --gff_host_tRNA
file.
The pipeline uses gene features from the 3rd column of the pathogen annotative (gff) file, to extract the coordinates of transcripts to be quantified.
By default, the pipeline uses features as gene
, sRNA
, tRNA
and rRNA
from the --gff_pathogen
file.
This flag defines the gene attribute from the 9th column of the host annotative (gff) file, where the transcript names are extracted.
By default, the pipeline extracts transcript_id
from the --gff_host
file.
This flag defines the gene attribute from the 9th column of the pathogen annotative (gff) file, where transcripts, genes or CDS regions are extracted.
By default, the pipeline extracts locus_tag
from the --gff_pathogen
file.
Parameters listed below are available only for Salmon with Selective Alignment.
To run Salmon with selective alignment (Default: False).
To define the k-mer length (-k
parameter in Salmon, see preparing transcriptome indices
). By default, this parameter is set to 21.
By default the pipeline does not save names of unmapped reads. You can learn more about this option in Salmon documentation
. If you want to keep this option, specify the --writeUnmappedNames
flag on the command line.
(Default: False).
By default, the pipeline does not allow soft-clipping of reads (Default: False).
"Soft-clipping allows reads that overhang the beginning or ends of the transcript. In this case, the overhanging section of the read will simply be unaligned, and will not contribute or detract from the alignment score".
If it is set to False
, the end-to-end alignment of the entire read is forced, so that the occurrence of any overhangings may affect the alignment score.
To save the equivalence classes and their counts, change this option to True
. See Salmon documentation.
for more information
(Default: False).
If set to True
, the pipeline will create a mapping.sam
file containing mapping information. To learn more on this option, please view the Salmon documentation.
(Default: False).
By default salmon removes/collapses identical transcripts during the indexing stage. The list of both restored and removed transcripts will be saved in the duplicate_clusters.tsv
file of the transcripts_index
folder. If you want to obtain quantification results for all duplicates, please specify this option --keepDuplicates
. (Default: False).
Define a set of additional salmon index parameters you wish to use in selective alignment mode.
Define a set of additional salmon quant parameters you wish to use.
Option to run Salmon in alignment-based mode (Default: False).
Define a set of additional salmon quant parameters you wish to use in salmon alignment-based mode.
These parameters are available for STAR in both quantification modes, using HTSeq and Salmon in alignment-based mode.
Option to run STAR (Default: False).
By default, the pipeline saves unmapped reads within the main BAM file. If you want to switch off this option, set the --outSAMunmapped
flag to None
. See STAR documentation
for more details.
For paired-end reads, the KeepPairs
parameter will record the unmapped mates for each alignment, and will keep it adjacent to its mapped read (only affects multi-mapping reads).
To specify the attributes of the output BAM file. The default value is Standard
, but there are a range of options if needed. Please see the STAR documentation.
for the full list.
By default, the pipeline uses the Standard
option to keep NH HI AS nM SAM attributes.
To specify the maximum number of loci a read is allowed to map to.
By default, this option is set to 999 in the pipeline. See STAR documentation
for more information.
By default, the pipeline keeps reads containing junctions that passed filtering into the file SJ.out.tab
. This option reduces the number of ”spurious” junctions. (ENCODE standard options for long RNA-seq pipeline). You can read more about the flag and its options in the STAR documentation
The number of minimum overhang for unannotated junctions can be changed here. By default, the pipeline uses 8. (ENCODE standard options for long RNA-seq pipeline). See STAR documentation
for more information.
The number of minimum overhang for annotated junctions can be changed here. See STAR documentation
for more information.
To define a threshold for the number of mismatches to be allowed. By default, the pipeline uses a large number 999
to switch this filter off. (ENCODE standard options for long RNA-seq pipeline). See STAR documentation
for more information.
Here, you can define a threshold for a ratio of mismatches to read length. The alignment will be considered if the ratio is less than or equal to this value. See STAR documentation
for more information.
By default, the nf-core dualrnaseq pipeline uses 20
as a minimum intron length. If the genomic gap is smaller than this value, it is considered as a deletion.
(ENCODE standard options for long RNA-seq pipeline). See STAR documentation
for more information.
The maximum intron length is set to 1,000,000 (ENCODE standard options for long RNA-seq pipeline). See STAR documentation
for more information.
The maximum genomic distance between mates is 1,000,000 (ENCODE standard options for long RNA-seq pipeline). See STAR documentation
for more information.
Option to limit RAM when sorting BAM file. If 0
, will be set to the genome index size, which can be quite large when running on a desktop or laptop.
The maximum number of loci anchors that are allowed to map. By default, the pipeline uses a large number 999
to switch this filter off.
Option to specify the length of the donor/acceptor sequence on each side of the junctions used in constructing the splice junctions database. By default the option is set to 100
. However, we recommend setting a value depending on the read length: read/mate length - 1.
Parameters available for STAR - HTSeq quantification method.
Used to generate signal outputs, such as "wiggle" and "bedGraph". To view all available signal types, please see the STAR documentation
.
By default, the pipeline does not generate any of these files.
Options are Stranded
or Unstranded
when defining the strandedness of wiggle/bedGraph output. See STAR documentation
for more information.
Define a set of additional star parameters to create an index.
Define a set of additional star alignment parameters.
The nf-core/dualrnaseq pipeline runs STAR to generate transcriptomic alignments. By default, it allows for insertions, deletions and soft-clips (Singleend
option). To prohibit this behaviour, please specify IndelSoftclipSingleend
. See the STAR documentation.
for more information.
Define a set of additional alignment parameters for STAR in salmon alignment-based mode.
Define a set of additional alignment parameters for STAR in salmon when indexing.
Used to run HTSeq-count and extract uniquely mapped reads from both the host and pathogen (Default: False).
A parameter for the library type. Options include "yes"
, "no"
or "reverse"
.
Option to define the number of maximum reads allowed to stay in memory until the mates are found. Has an effect for paired-end reads (Default: 30000000).
To specify a threshold for a minimal MAPQ alignment quality. By default, this parameter is set to 10.
Define a set of additional htseq parameters you wish to use in the pipeline.
The four parameters below are used to extract gene features from both the host and pathogen. These values may need to be changed, especially for the pathogen, as many different names exist, such as ID
, Gene
, Name
, locus_tag
etc.
A good idea is to view the accompanying annotative file and examine the fields within.
Note: If a
tRNA.gff
file is included, it is assumed that it has the same gene attribute as the annotative (gff) file, i.e.gene_id
Option to generate mapping statistics (Default: False).
This will create the following:
- Count the total number of reads before and after trimming
- Scatterplots comparing all replicates (separate for both host and pathogen reads)
- Plots of the % of mapped/quantified reads
- Plots of RNA-class statistics (as many types can be identified, the parameter below
--RNA_classes_to_replace_host
can help to summarise these)
Located within the data/
folder of dualrnaseq, this tab delimited file contains headers which groups similar types of RNA classes together. This helps to keep the RNA-class names simplified for plotting purposes.
Initially, the user can run the pipeline without the 'others' class (remove the 'others' column) to identify the concentration of all RNA types,including e.g. scRNAs). Depending on the requirements, the user can decide which types should be included/excluded or grouped together.
Set this parameter with your e-mail address to get a summary e-mail with details of the run 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.
This works the same as --email
, except emails are only sent if the workflow is not successful.
Threshold size for MultiQC report to be attached in the notification email. If file generated by pipeline exceeds the threshold, it will not be attached.
Set to receive plain-text e-mails instead of HTML formatted.
Set to disable colourful command line output and live life in monochrome.
Specify path to a custom MultiQC configuration file.
Running the pipeline on AWS Batch requires a couple of specific parameters to be set according to your AWS Batch configuration. Please use -profile awsbatch
and then specify all of the following parameters.
The JobQueue that you intend to use on AWS Batch.
The AWS region in which to run your job. Default is set to eu-west-1
but can be adjusted to your needs.
The AWS CLI path in your custom AMI. Default: /home/ec2-user/miniconda/bin/aws
.
Please make sure to also set the -w/--work-dir
and --outdir
parameters to a S3 storage bucket of your choice - you'll get an error message notifying you if you didn't.