nf-core/rnasplice
rnasplice is a bioinformatics pipeline for RNA-seq alternative splicing analysis
Introduction
This document describes the output produced by the pipeline. Most of the plots are taken from the MultiQC report generated from the full-sized test dataset for the pipeline using a command similar to the one below:
nextflow run nf-core/rnasplice -profile test_full,<docker/singularity/institute>The directories listed below will be created in the results directory after the pipeline has finished. All paths are relative to the top-level results directory.
Pipeline overview
The pipeline is built using Nextflow and processes data using the following steps:
- Preprocessing
- cat - Merge re-sequenced FastQ files.
- FastQC - Raw read QC.
- TrimGalore - Adapter and quality trimming
- Alignment and quantification.
- STAR and Salmon - Fast spliced aware genome alignment and transcriptome quantification.
- STAR and featureCounts - Memory efficient quantification.
- STAR and DEXSeq Count - Alignment and quantification of expression levels
- Alignment post-processing.
- SAMtools - Sort and index alignments
- Other steps.
- BEDTools and bedGraphToBigWig - Create bigWig coverage files
- Quality control.
- Pseudo-alignment and quantification.
- Salmon - Wicked fast gene and isoform quantification relative to the transcriptome
- Leafcutter - Quantification of splicing with Leafcutter.
- Differential Exon Usage (DEU).
- Differential Bin and Junction Usage.
- ASpli - Differential usage of exonic and intronic bins and of junctions, and integration of the bin and junction signals.
- Differential Transcript Usage (DTU).
- DRIMSeq - Filtering of genes and features prior to DTU.
- DEXSeq - For differential transcript usage analysis following Salmon pseudo-alignment and quantification.
- IsoformSwitchAnalyzeR - For isoform switch analysis following Salmon pseudo-alignment.
- Event-based Differential Splicing analysis.
- Workflow reporting and genomes
- Gene annotation - Gene names and biotypes from the GTF, and copies of the results tables with them
- Reference genome files - Saving reference genome indices/files
- Pipeline information - Report metrics generated during the workflow execution
Preprocessing
cat
Output files
fastq/*.merged.fastq.gz: If--save_merged_fastqis specified, concatenated FastQ files will be placed in this directory.
If multiple libraries/runs have been provided for the same sample in the input samplesheet (e.g. to increase sequencing depth) then these will be merged at the very beginning of the pipeline in order to have consistent sample naming throughout the pipeline. Please refer to the usage documentation to see how to specify these samples in the input samplesheet.
FastQC
Output files
fastqc/*_fastqc.html: FastQC report containing quality metrics.*_fastqc.zip: Zip archive containing the FastQC report, tab-delimited data file and plot images.
The FastQC plots in this directory are generated relative to the raw, input reads. They may contain adapter sequence and regions of low quality. To see how your reads look after adapter and quality trimming please refer to the FastQC reports in the trimgalore/fastqc/ directory.
FastQC gives general quality metrics about your sequenced reads. It provides information about the quality score distribution across your reads, per base sequence content (%A/T/G/C), adapter contamination and overrepresented sequences. For further reading and documentation see the FastQC help pages.



The FastQC plots displayed in the MultiQC report shows untrimmed reads. They may contain adapter sequence and potentially regions with low quality.
TrimGalore
Output files
trimgalore/*.fq.gz: If--save_trimmedis specified, FastQ files after adapter trimming will be placed in this directory.*_trimming_report.txt: Log file generated by Trim Galore!.
trimgalore/fastqc/*_fastqc.html: FastQC report containing quality metrics for read 1 (and read2 if paired-end) after adapter trimming.*_fastqc.zip: Zip archive containing the FastQC report, tab-delimited data file and plot images.
Trim Galore! is a wrapper tool around Cutadapt and FastQC to peform quality and adapter trimming on FastQ files. Trim Galore! will automatically detect and trim the appropriate adapter sequence. It is the default trimming tool used by this pipeline, however you can use fastp instead by specifying the --trimmer fastp parameter. You can specify additional options for Trim Galore! via the --extra_trimgalore_args parameters.
TrimGalore! will only run using multiple cores if you are able to use more than > 5 and > 6 CPUs for single- and paired-end data, respectively. The total cores available to TrimGalore! will also be capped at 4 (7 and 8 CPUs in total for single- and paired-end data, respectively) because there is no longer a run-time benefit. See release notes and discussion whilst adding this logic to the nf-core/atacseq pipeline.

Alignment and quantification
STAR and Salmon
Output files
star_salmon/*.Aligned.out.bam: If--save_align_intermedsis specified the original BAM file containing read alignments to the reference genome will be placed in this directory.*.Aligned.toTranscriptome.out.bam: If--save_align_intermedsis specified the original BAM file containing read alignments to the transcriptome will be placed in this directory.
star_salmon/log/*.SJ.out.tab: File containing filtered splice junctions detected after mapping the reads.*.Log.final.out: STAR alignment report containing the mapping results summary.*.Log.outand*.Log.progress.out: STAR log files containing detailed information about the run. Typically only useful for debugging purposes.
star_salmon/unmapped/*.fastq.gz: If--save_unalignedis specified, FastQ files containing unmapped reads will be placed in this directory.
STAR is a read aligner designed for splice aware mapping typical of RNA sequencing data. STAR stands for Spliced Transcripts Alignment to a Reference, and has been shown to have high accuracy and outperforms other aligners by more than a factor of 50 in mapping speed, but it is memory intensive. Using --aligner star_salmon is the default alignment and quantification option.
Salmon from Ocean Genomics is a tool for wicked-fast transcript quantification from RNA-seq data. It requires a set of target transcripts (either from a reference or de-novo assembly) in order to perform quantification. All you need to run Salmon is a FASTA file containing your reference transcripts and a set of FASTA/FASTQ/BAM file(s) containing your reads. The transcriptome-level BAM files generated by STAR are provided to Salmon for downstream quantification. You can of course also provide FASTQ files directly as input to Salmon in order to pseudo-align and quantify your data by providing the --pseudo_aligner salmon parameter. The results generated by the pipeline are exactly the same whether you provide BAM or FASTQ input so please see the Salmon results section for more details.
The STAR section of the MultiQC report shows a bar plot with alignment rates: good samples should have most reads as Uniquely mapped and few Unmapped reads.

featureCounts
Output files
subread/featurecounts/*featureCounts.txt: Counts of reads mapping to features.*featureCounts.txt.summary: Summary log file for MultiQC.
This workflow uses featureCounts following STAR alignment if users choose edgeR for differential exon usage with the --aligner star or --aligner star_salmon and --edger_exon parameters. featureCounts from the Subread package is a quantification tool used to summarise reads over genomic features. In this case we count the number of reads overlapping each exon for each each gene before using edgeR for differential exon usage.
DEXSeq Count (HTSeq)
Output files
dexseq_exon/counts/*.clean.count.txt: Counts of reads mapping to features.
This workflow uses DEXSeq count which under the hood uses some functionality from HTSeq following STAR alignment if users choose DEXSeq Exon for differential exon usage with the --aligner star or --aligner star_salmon and --dexseq_exon parameters. DEXSeq count is a python script shipped with the DEXSeq package which uses parts of the HTSeq Python package functionality to count the number of reads which overlap with exon counting bins.
Alignment post-processing
The pipeline has been written in a way where all the files generated downstream of the alignment are placed in the same directory as specified by --aligner e.g. if --aligner star_salmon is specified then all the downstream results will be placed in the star_salmon/ directory. If --aligner star is specified then all the downstream results will be placed in the star directory. And if --pseudo-aligner salmon is provided all tools downstream of Salmon will be placed in the salmon directory. This means that results won’t be overwritten if portions of the pipeline are specified which duplicate downstream analysis (e.g. if --aligner star_salmon and --pseudo-aligner salmon are both specified). The pipeline can therefore be used for benchmarking between alignment algorithms if required.
SAMtools
Output files
<ALIGNER>/<SAMPLE>.sorted.bam: If--save_align_intermedsis specified the original coordinate sorted BAM file containing read alignments will be placed in this directory.<SAMPLE>.sorted.bam.bai: If--save_align_intermedsis specified the BAI index file for the original coordinate sorted BAM file will be placed in this directory.<SAMPLE>.sorted.bam.csi: If--save_align_intermeds --bam_csi_indexis specified the CSI index file for the original coordinate sorted BAM file will be placed in this directory.
<ALIGNER>/samtools_stats/- SAMtools
<SAMPLE>.sorted.bam.flagstat,<SAMPLE>.sorted.bam.idxstatsand<SAMPLE>.sorted.bam.statsfiles generated from the alignment files.
- SAMtools
The original BAM files generated by the selected alignment algorithm are further processed with SAMtools to sort them by coordinate, for indexing, as well as to generate read mapping statistics.


Other steps
MISO
Output files
misopy/index/: Directory containing MISO index files.miso_data/: Directory containing MISO data files.sashimi/: Directory containing Sashimi plots.miso_settings.txt: Settings used to generate the Sashimi plots.
MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates the expression level of alternatively spliced genes from RNA-Seq data, and identifies differentially regulated isoforms or exons across samples. MISO comes with a built-in utility, sashimi_plot, for visualizing its output and for plotting raw RNA-Seq read densities along exons and junctions.
BEDTools and bedGraphToBigWig
Output files
<ALIGNER>/bigwig/*.forward.bigWig: bigWig coverage file relative to genes on the forward DNA strand.*.reverse.bigWig: bigWig coverage file relative to genes on the reverse DNA strand.
The bigWig format is an indexed binary format useful for displaying dense, continuous data in Genome Browsers such as the UCSC and IGV. This mitigates the need to load the much larger BAM files for data visualisation purposes which will be slower and result in memory issues. The bigWig format is also supported by various bioinformatics software for downstream processing such as meta-profile plotting.
Quality control
featureCounts
Output files
<ALIGNER>/featurecounts/*.featureCounts.txt: featureCounts biotype-level quantification results for each sample.*.featureCounts.txt.summary: featureCounts summary file containing overall statistics about the counts.*_mqc.tsv: MultiQC custom content files used to plot biotypes in report.
featureCounts from the Subread package is a quantification tool used to summarise the mapped read distribution over genomic features such as genes, exons, promotors, gene bodies, genomic bins and chromosomal locations. We can also use featureCounts to count overlaps with different classes of genomic features. This provides an additional QC to check which features are most abundant in the sample, and to highlight potential problems such as rRNA contamination.

RSeQC
Output files
<ALIGNER>/rseqc/infer_experiment/*.infer_experiment.txt: If--strand_checkis specified, or for a genome BAM sample set toauto, the fraction of reads explained by each strand, from RSeQC infer_experiment.py.
<ALIGNER>/rseqc/junction_saturation/*.junctionSaturation_plot.pdf: Unless--skip_junction_saturationis specified, the known, novel and all splice junctions RSeQC junction_saturation.py finds in growing subsets of the reads of each genome BAM file.*.junctionSaturation_plot.r: The R script that draws the plot, with its numbers, which MultiQC reads.
RSeQC infer_experiment.py samples reads from the genome BAM file and compares their orientation with the strand of the genes they overlap. With --strand_check, its result is compared with the strandedness each sample was analysed with, given in the samplesheet or inferred with Salmon for an auto sample, which is unstranded where Salmon could not call it. For a genome BAM sample set to auto the strandedness was inferred from this same report, so the table only shows whether it could be called. The comparison is shown in the Strandedness Checks table of the MultiQC report, where a fail means that the two disagree or that RSeQC could not determine the strandedness. An undetermined strandedness can be a sign of genomic DNA contamination.
MultiQC
Output files
multiqc/multiqc_report.html: a standalone HTML file that can be viewed in your web browser.multiqc_data/: directory containing parsed statistics from the different tools used in the pipeline.multiqc_plots/: directory containing static images from the report in various formats.
MultiQC is a visualization tool that generates a single HTML report summarising all samples in your project. Most of the pipeline QC results are visualised in the report and further statistics are available in the report data directory.
Results generated by MultiQC collate pipeline QC from supported tools e.g. FastQC. FastQC has separate sections for the raw and the trimmed reads, and the General Statistics table groups the two reads of a paired-end sample under the sample. The pipeline has special steps which also allow the software versions to be reported in the MultiQC output for future traceability. For more information about how to use MultiQC reports, see http://multiqc.info.
The splicing analyses write a row per event, intron, exon bin or transcript, which is too much for MultiQC to read, so the pipeline summarises their result tables itself. The summaries are in a Splicing section after the QC sections, followed by SUPPA2 and LeafCutter sections for the plots specific to those tools, and only the analyses that ran appear in them. Each part has a help panel on how to read it.
General Statistics gets these columns per sample:
- STAR “Annotated Splices”: the percentage of the splices STAR found that are annotated junctions. Below about 95% suggests the genome and annotation do not match.
- DEXSeq “Reads in Exon Bins”: the approximate percentage of the reads
dexseq_countcounted into exon bins. Low values usually mean the wrong strandedness or a mismatched annotation. - LeafCutter “Junction Reads”: the reads on the introns of the LeafCutter clusters, which
leafcutter_dscompares with--leafcutter_ds_min_coverage. - STAR “Spliced Reads”: the spliced reads of each sample, in millions. No validated minimum exists; the RSeQC Junction Saturation section shows whether junction detection has levelled off at the depth of each sample.
- Hidden columns: the SUPPA2 events with a PSI value, the LeafCutter introns detected, and the LeafCutter reads left without a strand in unstranded samples, highlighted above 5%.
The Splicing section has these parts, in this order:
- Design and Depth: one line with the samples per contrast, the limit on permutation checks with 2 vs 2 samples, any LeafCutter settings below its defaults and the spliced reads per sample, followed by the published evidence that applies to such a design, where there is any.
- Design Check: one row for each contrast and analysis that ran, with whether the analysis cannot run as configured, runs below the guidance in its documentation or published evaluations, or meets the tool requirements (which does not mean the contrast is adequately powered), what to change and the published evidence that applies.
- Differential Splicing: the features each analysis called significant in each contrast, one column per analysis, at gene level where the analysis has one. Counts are not comparable across columns. Feature-level counts, the second quantification route, the numbers tested and the median effect size of the significant calls (|log2 fold change|, |dPSI|, |IncLevelDifference| or |dIF|) are hidden columns. A contrast that tests the same comparison as another in reverse is marked, here and in the plots, as it is not an independent finding.
- Method Agreement: the genes called significant by at least two independent lines of evidence in each contrast, counting analyses built on the same quantification once (transcript abundances: DEXSeq DTU, IsoformSwitchAnalyzeR and SUPPA2; exon counts: DEXSeq DEU and edgeR; junction reads: rMATS and LeafCutter; and ASpli on its own), with the analyses that call them from both quantification routes. Reverse contrasts are left out.
- P-value Distributions (Diagnostic): the p-values of the features each analysis with at least 100 tested features tested, a check on the power and calibration of the tests. The description lists the analyses that are left out and why.
The SUPPA2 section has these parts:
- PSI Concordance: how closely the PSI values of each pair of samples agree. Samples of the same condition should agree most.
- Significant Events: the significant local events of each contrast by event type and by whether the PSI is higher or lower in the treatment, with a second tab of the percentage of the tested events of each type for the types with at least 10 significant events.
The LeafCutter section has one part:
- Cluster Test Outcomes: whether each intron cluster was tested, and if not why, with the LeafCutter settings the pipeline ran with.
The rMATS module of MultiQC, in versions that include it, shows the rMATS sections after the LeafCutter section.
The rMATS read outcomes of each BAM file and the summary of each contrast are passed to MultiQC for that module.
Pseudo-alignment and quantification
Salmon
Output files
salmon/tximport/salmon.merged.gene_counts.tsv: Matrix of gene-level raw counts across all samples.salmon.merged.gene_tpm.tsv: Matrix of gene-level TPM values across all samples.salmon.merged.gene_counts_scaled.tsv: Matrix of gene-level scaled counts across all samples.salmon.merged.gene_counts_length_scaled.tsv: Matrix of gene-level length-scaled counts across all samples.salmon.merged.gene_tpm_scaled.tsv: Matrix of gene-level scaled TPM across all samples.salmon.merged.gene_tpm_length_scaled.tsv: Matrix of gene-level length-scaled TPM across all samples.salmon.merged.transcript_counts.tsv: Matrix of isoform-level raw counts across all samples.salmon.merged.transcript_tpm.tsv: Matrix of isoform-level TPM values across all samples.salmon.merged.transcript_counts_scaled.tsv: Matrix of isoform-level scaled raw counts across all samples.salmon.merged.transcript_counts_length_scaled.tsv: Matrix of isoform-level length-scaled raw counts across all samples.salmon.merged.transcript_counts_dtu_scaled.tsv: Matrix of isoform-level dtu scaled raw counts across all samples.salmon.merged.transcript_tpm_scaled.tsv: Matrix of isoform-level scaled TPM values across all samples.salmon.merged.transcript_tpm_length_scaled.tsv: Matrix of isoform-level length-scaled TPM values across all samples.salmon.merged.transcript_tpm_dtu_scaled.tsv: Matrix of isoform-level dtu scaled TPM values across all samples.salmon.merged.gi.rds: Tximport R object following tximport::summarizeToGene with countsFromAbundance = “no”salmon.merged.gi.s.rds: Tximport R object following tximport::summarizeToGene with countsFromAbundance = “scaledTPM”salmon.merged.gi.ls.rds: Tximport R object following tximport::summarizeToGene with countsFromAbundance = “lengthScaledTPM”salmon.merged.txi.rds: Tximport R object following tximport::tximport with countsFromAbundance = “no”salmon.merged.txi.s.rds: Tximport R object following tximport::tximport with countsFromAbundance = “scaledTPM”salmon.merged.txi.ls.rds: Tximport R object following tximport::tximport with countsFromAbundance = “lengthScaledTPM”salmon.merged.txi.dtu.rds: Tximport R object following tximport::tximport with countsFromAbundance = “dtuScaledTPM”tximport.tx2gene.tsv: Filtered Tab-delimited file containing gene to transcripts ids mappings.suppa_tpm.txt: Tab-delimited file containing TPM normalised counts formatted for SUPPA downstream analysis
salmon/<SAMPLE>/aux_info/: Auxiliary info e.g. versions and number of mapped reads.cmd_info.json: Information about the Salmon quantification command, version and options.lib_format_counts.json: Number of fragments assigned, unassigned and incompatible.libParams/: Contains the fileflenDist.txtfor the fragment length distribution.logs/: Contains the filesalmon_quant.loggiving a record of Salmon’s quantification.quant.genes.sf: Salmon gene-level quantification of the sample, including feature length, effective length, TPM, and number of reads.quant.sf: Salmon transcript-level quantification of the sample, including feature length, effective length, TPM, and number of reads.
As described in the STAR and Salmon section, you can choose to pseudo-align and quantify your data with Salmon by providing the --pseudo_aligner salmon parameter.
To summarise Salmon results and produce gene and transcript level counts and normalised (TPM) values we use the tximport R package. Like the nf-core/rnaseq pipeline this workflow produces counts, as well as TPM normalised values at gene and transcript level, however it also provides scaled, length-scaled, and dtu-scaled values which may be used for downstream splicing analysis. In particular, scaled, and dtu-scaled TPMs (see the --dtu_txi dtuScaledTPM or --dtu_txi scaledTPM parameter) can be chosen by users for DTU analysis with DRIMSeq filtering and DEXSeq as seen in this workflow. These files can be accessed as TSVs or as their original R object for ease of use with additional downstream R analysis.
Although this workflow does not deal in differential gene expression we also produce gene level summarisations in TSV format, as well as R objects following tximport::summarizeToGene if users wish to progress to differential gene expression independently. Furthermore, the pipeline will produce a tximport.tx2gene.tsv file which has been filtered and matched with the incoming Salmon quant.sf files which can be used for any additional downstream analysis.
This workflow will also produce a suppa_tpm.txt which is a tab delimitated text file of TPM normalised counts formatted for SUPPA analysis.
As described by the nf-core/rnaseq pipeline: “The default Salmon parameters and a k-mer size of 31 are used to create the index. As documented here and discussed here, a k-mer size off 31 works well with reads that are 75bp or longer”.
As described by the nf-core/rnaseq pipeline: “Transcripts with large inferential uncertainty won’t be assigned the exact number of reads reproducibly, every time Salmon is run. Read more about this on the nf-core/rnaseq and salmon Github repos”.
Splicing quantification
Leafcutter
Output files
leafcutter: Leafcutter quantifies RNA splicing variation using short-read RNA-seq data. The core idea is to leverage spliced reads (reads that span an intron) to quantify (differential) intron usage across samples.*junc: all junctions found in each sample and their abundances. For an unstranded library the strand of each junction comes from the splice motif and the annotation rather than from an alignerXStag, which makes the clusters differ slightly from LeafCutter’s documented STAR route, see usage.*.strand_summary.tsv: for an unstranded library only, the number of junctions, and of the reads spanning them, that were already stranded by anXStag, were stranded from the splice motif or the annotation, or were left without a strand, which the clustering discards. The percentage of the reads left without a strand is shown per sample in the hidden “Reads Strandless” LeafCutter column of the MultiQC General Statistics table.*numers.counts.gz: Each column corresponds to a different sample (original bam file) and each row to an intron, which are identified as chromosome:intron_start:intron_end:cluster_id. This is the file to use for downstream analysis.*counts.gz: Same than before but with the ratio of that event.{contrast}_cluster_significance.txt: one row per cluster with the result of the differential splicing test between the two conditions of the contrast:status(Successor the reason the cluster was not tested), the log likelihood ratio, degrees of freedom, p-value, Benjamini-Hochberg adjusted p-value, and the genes whose exons the cluster overlaps.{contrast}_effect_sizes.txt: one row per intron with its effect size (logef_{treatment}), its estimated PSI in each condition, anddeltapsi_{treatment}, the PSI of the treatment minus that of the control.
The differential splicing outputs are written for each contrast in which both conditions have enough samples, see usage.
Differential Exon Usage (DEU)
DEXSeq
Output files
dexseq_exon/results/{contrast}.dexseq.dataset.rds: DEXSeqDataSet R object.{contrast}.dexseq.results.rds: DEXSeqResults R object following DEXSeq::DEXSeqResults containing results.{contrast}.dexseq.results.tsv: TSV results table of DEXSeq DEU analysis featuring log2foldchanges and p-values etc.{contrast}.dexseq.gene_qvalues.rds: DEXSeq R Object following DEXSeq::perGeneQValue containing q-values per gene.{contrast}.dexseq.gene_qvalues.tsv: TSV file of the q-values in{contrast}.dexseq.gene_qvalues.rds.{contrast}.dexseq.plots.pdf: PDF file of top N genes from DEXSeq results.{contrast}.dexseq.{results,gene_qvalues}.annotated.tsv: The same two tables with the gene name and biotype aftergroupID, see Gene annotation.
dexseq_exon/annotation/DEXSeq.gff: GFF file used for DEXSeq DEU analysis converted from GTF input.
dexseq_exon/counts/*.clean.count.txt: Counts of reads mapping to features. (See DEXSeq Count (HTSeq) section above)
DEXSeq is used to find differential exon usage. For each gene, DEXSeq fits a generalized linear model with the formula ~sample + exon + condition:exon and compares it to the smaller null model ~ sample + exon and this pipeline utilises these models as default. The {contrast}.dexseq.dataset.rds is a DEXSeqDataSet R object which contains slots with information regarding the tests DEXSeq performs internally for differential exon usage using these models. Please see this for further details. The {contrast}.dexseq.results.rds output is a DEXSeqResults R object which summarize the full results contained within the DEXSeqDataSet object. The {contrast}.dexseq.results.tsv output is the {contrast}.dexseq.results.rds object saved out in TSV format for ease of access. It is also sometimes useful to understand what the FDR is at the gene level as {contrast}.dexseq.results.tsv and {contrast}.dexseq.dataset.rds results output only contain p-values and q-values on a per-exon level. Situations where this may be useful are when you may need to know the number of genes with at least one differentially used exon whilst controlling for FDR. Please see this for further details regarding controlling FDR at the gene level. Users can therefore download {contrast}.dexseq.gene_qvalues.rds which is an R object of gene level q-values - aggregating evidence from multiple tests to a gene level. {contrast}.dexseq.gene_qvalues.tsv is this same {contrast}.dexseq.gene_qvalues.rds object in TSV format.
Users may also wish to inspect the GFF file that DEXSeq creates prior to running DEXSeq count. This is completed using a python script which is shipped with DEXSeq. This GFF file DEXSeq.gff is saved with the dexseq_exon/annotation/ folder.
Finally, as discussed above in the DEXSeq count section, users can inspect counts of reads mapping to features within the dexseq_exon/counts/ folder used downstream as input to DEXSeq.
edgeR
Output files
edger/DGEList.rds: DGEList R object following filtering, normalisation, and dispersion estimation.DGEGLM.rds: DGEGLM R object following edgeR::glmQLFitDGELRT.exprs.rds: DGELRT R object following differential exon expression analysis with edgeR::glmQLFTestDGELRT.usage.rds: DGELRT R object following differential exon usage analysis with edgeR::diffSpliceDGE{contrast}.usage.usage.csv: CSV file output of differential exon usage results per pairwise condition for top spliced results at the exon level.{contrast}.usage.gene.csv: CSV file output of differential exon usage results per pairwise condition for top spliced genes identified with F-tests.{contrast}.usage.simes.csv: CSV file output of differential exon usage results per pairwise condition for top spliced genes identified with the Simes method.{contrast}.exprs.csv: CSV file output of differential exon expression results per pairwise condition.{contrast}.*.annotated.csv: The same CSV files with the gene name and biotype afterGeneid, see Gene annotation.
edgeR is a bioconductor R package typically used for differential gene expression, however, it contains numerous additional functions which make it useful for splicing analysis. In particular, edgeR can perform differential exon usage analysis, and we leverage this functionality here. As output users can retrieve DGEList.rds, and DGEGLM.rds R objects which contain the first steps of the edgeR analysis. Users can also find DGELRT.exprs.rds and DGELRT.usage.rds R objects which provide R objects following differential exon expression and differential exon usage steps respectively. Results CSV files are also output per comparison as {contrast}.usage.usage.csv which contain the differential exon usage results, {contrast}.usage.gene.csv which contain results at a gene level identified with F-tests, and {contrast}.usage.simes.csv which contain results at a gene level using the Simes adjustment.
It was felt that users may wish to retrieve differential exon results at this point on top of differential exon usage results as edgeR is able to calculate them without difficulty. By default, this workflow will calculate all possible pairwise comparisons between conditions.
Differential Bin and Junction Usage
ASpli
Output files
aspli/counts/aspli.settings.tsv: Library type, strand mode, minimum read length (and whether it was given or estimated), the counting options and the order of the conditions the samples were counted with.aspli.{gene,bin,junction}_counts.tsv: Read counts of each sample over the genes, bins and junctions.aspli.{e1i,ie2}_counts.tsv: Read counts of each sample over the exon-intron (e1i) and intron-exon (ie2) boundaries of the intron bins.aspli.junctions.{pir,pju}.tsv: Percent intron retention (PIR) and percent junction usage (PJU) of each junction, per condition.aspli.ir.pir.tsv,aspli.{alt,es}.psi.tsv: PIR of the intron retention bins, and percent spliced in (PSI) of the alternative splice site and exon skipping bins, computed from junction counts.aspli.{features,gbcounts,jcounts}.rds: TheASpliFeatures,ASpliCountsandASpliASR objects.
aspli/{contrast}/{contrast}.genes_de.tsv: Differential gene expression.{contrast}.bins_du.tsv: Differential bin usage.{contrast}.{locale,anchor}_junctions.tsv,{contrast}.{locale,anchor}_clusters.tsv: Differential junction usage of junctions sharing a splice site (locale) and of junctions against their flanking intron (anchor), per junction and per cluster.{contrast}.{ir,es,alt}_junctions.tsv: Differential usage of the junctions supporting the intron retention, exon skipping and alternative splice site bins.{contrast}.splicing_report_{bins,locale,anchor}.tsv: The splicing report, which joins the bin, locale and anchor results with the junctions that support them.{contrast}.integrated_signals.tsv: The regions where the bin, junction and anchor signals that pass theintegrateSignalsfilters overlap.{contrast}_integrated_signals/integratedSignals.html: Interactive HTML table of the integrated signals. Open it from inside its folder, as it loads its libraries fromintegratedSignals_files/.{contrast}.aspli_du.rds: List of theASpliDU,ASpliJDU,ASpliSplicingReportandASpliIntegratedSignalsR objects.
The symbol column of the ASpli tables holds the gene name of each gene, from the gene annotation table, so it follows --gtf_extra_attributes as the annotated copies do. A gene with no name keeps its gene ID.
ASpli splits the genes of the GTF into exonic and intronic bins, counts reads over genes, bins and junctions, and tests each contrast for differential bin and junction usage with edgeR. It then integrates the bin and junction signals of each region. The reads are counted once for all the contrasts. Log fold changes are treatment over control, and dPIR is treatment minus control. dParticipation in the locale tables is the change in the junction with the highest participation, so its sign does not follow the contrast. See the ASpli vignette for a description of every column.
Differential Transcript Usage (DTU)
DRIMSeq
Output files
salmon/dexseq_dtu/filter/drimseq/dmDSdata.rds: A DRIMSeq R Object containing filtered normalised counts table used as input for DEXSeq analysis.
DRIMSeq is a standalone DTU analysis tool, however, we only use it as a filtering step within this workflow. It initially takes as input counts table from tximport, and returns a DRIMSeq R Object (following DRIMSeq::dmFilter function) containing filtered normalised counts table used as input for DEXSeq analysis.
DEXSeq
Output files
salmon/dexseq_dtu/results/dexseq/{contrast}.dexseq.dataset.rds: DEXSeqDataSet R object.{contrast}.dexseq.results.rds: DEXSeqResults R object following DEXSeq::DEXSeqResults containing results.{contrast}.dexseq.results.tsv: TSV results table of DEXSeq DTU analysis featuring log2foldchanges and p-values etc.{contrast}.dexseq.gene_qvalues.rds: DEXSeq R Object following DEXSeq::perGeneQValue containing q-values per gene.{contrast}.dexseq.gene_qvalues.tsv: TSV file of the q-values in{contrast}.dexseq.gene_qvalues.rds.{contrast}.dexseq.{results,gene_qvalues}.annotated.tsv: The same two tables with the gene name and biotype aftergroupID, see Gene annotation.
stager/stageRTx.{contrast}.rds: stageRTx R object.getAdjustedPValues.{contrast}.rds: R object following stageR::getAdjustedPValues - transcript and gene level adjusted p-values.getAdjustedPValues.{contrast}.tsv: TSV with transcript and gene level adjusted p-values.getAdjustedPValues.{contrast}.annotated.tsv: The same table with the gene name and biotype aftergeneID.
DEXSeq. As described above in the DEU section, DEXSeq is a tool created for differential exon usage. However, it can also be run on estimated transcript counts for differential transcript usage. This pipeline follows the following workflow which you can read for more details. As in the DEU DEXSeq we utilise the following default models: ~sample + exon + condition:exon comparing to the smaller null model ~ sample + exon. We use the word exon here as DEXSeq was designed originally for DEU, however users can read this instead as transcript for this DTU analysis.
The {contrast}.dexseq.dataset.rds is a DEXSeqDataSet R object which contains slots with information regarding the tests DEXSeq performs internally for differential transcript usage using these models. The {contrast}.dexseq.results.rds output is a DEXSeqResults R object which summarize the full results contained within the DEXSeqDataSet object. The {contrast}.dexseq.results.tsv output is the {contrast}.dexseq.results.rds object saved out in TSV format for ease of access. It is also sometimes useful to understand what the FDR is at the gene level as {contrast}.dexseq.results.tsv and {contrast}.dexseq.results.rds results output only contain p-values and q-values on a per-transcript level. Users can therefore download {contrast}.dexseq.gene_qvalues.rds which is an R object of gene level q-values - aggregating evidence from multiple tests to a gene level. {contrast}.dexseq.gene_qvalues.tsv is this same {contrast}.dexseq.gene_qvalues.rds object in TSV format.
Finally, this portion of the pipeline will run stageR, a tool for stage wise analysis of high throughput expression data, following DEXSeq. This allows us to answer a two stage set of questions - the first is “Which set of genes show some evidence of DTU?” which we ask by running the DEXSeq screening step and the second “Which transcripts in those identified genes participate in DTU?” a secondary confirmation step. Outputs for stageR include stageRTx.{contrast}.rds an stageRTx R object which has p-value correction with stageWiseAdjustment with 5% target Overall FDR (alpha=0.05) and method=“dtu” as default. The getAdjustedPValues.{contrast}.rds is an R object of results - a matrix with transcript and gene level adjusted p-values with gene and respective transcript level gene identifiers in the first two columns. getAdjustedPValues.{contrast}.tsv is a TSV file identical to getAdjustedPValues.{contrast}.rds. Finally, getAdjustedPValues.{contrast}.tsv, is the results from getAdjustedPValues.{contrast}.rds combined with the results from DEXSeq {contrast}.dexseq.results.tsv.
IsoformSwitchAnalyzeR
Output files
isoformswitchanalyzer/results/Condition1_vs_Condition2/01_switch_plot_gene1.pdf02_switch_plot_gene2.pdf03_switch_plot_gene3.pdf
Condition2_vs_Condition3/01_switch_plot_gene4.pdf02_switch_plot_gene5.pdf03_switch_plot_gene6.pdf
...common_switch_consequences.pdf
isoformswitchanalyzer_isoformfeatures.csvisoformswitchanalyzer_summary.csvswitchlist.rds
If IsoformSwitchAnalyzeR finds genes with isoform switches, it produces plots visualizing these switches. A separate set of switch plots is created for each contrast if that contrast contains significant switches, in a folder named {control}_vs_{treatment}, and common_switch_consequences.pdf summarises the consequences of the switches across all contrasts. Further two .csv files are created, a summary and the main results. In the main results, condition_1 is the control and condition_2 the treatment, so dIF and the log2 fold changes are treatment minus control. The .rds of the main R list is also returned.
Event-based analysis
rMATS
Output files
rmats/prep/{sample}.rmats: Splicing graph and candidate reads of each sample, the output of the rMATS prep step and the input of the post step.prep/{sample}_read_outcomes_by_bam.txt: Number of reads of each sample used by rMATS, and how many were dropped for each reason (clipped, not paired, unexpected length and so on).bamlist/{condition}_bamlist.txt: Comma separated list of the BAM files of each condition, as given to rMATS.{contrast}{_paired}/*: Folder containing the results of differential alternative splicing of the contrast in .txt files. A suffix_pairedis added to the folder name if the paired analysis option is used.{contrast}{_paired}.log: Log file of the rMATS post step of the contrast.
rMATS is a tool which runs differential alternative splicing analysis on RNA-seq data. We implement the tool from BAM files after STAR alignment. The prep step reads each BAM file once, then the post step of each contrast detects and counts the splicing events from the .rmats files of its samples and tests them for differential splicing. Further details regarding rMATS output can be found here, and these files are saved within the {contrast}/ folder. With a single condition the contrast is named {condition}_profiling and the events are only counted, not tested.
SUPPA2
Output files
salmon/suppa/generate_events/per_isoform/orgenerate_events/per_local_event/events.*: Shows the relationship between each event and the transcripts that define that particular event.events_*.*: Shows the relationship between each individual event type and the transcripts that define that particular event.
generate_events/per_local_event/merged_events/*.ioe: The local events of every type in a single file, as used for the PSI calculation.
psi_per_isoform/suppa_isoform.psi: Contains relative abundance value per sample for transcript isoforms.
psi_per_local_event/suppa_local.psi: Contains relative abundance value per sample for local events.
split_files/per_isoform/orsplit_files/per_local_event/-*.psi: Contains relative abundance value per sample for each event (split by condition)split_files/tpms/*.tpm: Contains normalised TPM per sample (split by condition)
diffsplice/per_isoform/ordiffsplice/per_local_event/{contrast}_*_diffsplice.dpsi: Contains the information about which events are significantly differentially spliced in each pairwise comparison. The dPSI is the PSI of the treatment minus that of the control. SUPPA names the column{level}_{control}-{level}_{treatment}_dPSI, after its first and second condition, where{level}islocalortranscript.{contrast}_*_diffsplice.psivec: Contains the PSI values for all samples, either per replicate or the average PSI value per condition, averaging over the replicates.{local,transcript}_{contrast}.annotated.tsv: The*.dpsitable with its first column namedevent_idand followed by the gene name and biotype, see Gene annotation.
clustergroups/{local,transcript}_{contrast}_groups.txt: The column ranges of the two conditions in the*.psivecfile of each contrast, as given to the clustering.
clusterevents/per_isoform/orclusterevents/per_local_event/{contrast}_*_cluster.clustvec: Contains the events, their mean psi values per condition, and the clusters association. If an event has no associated cluster, it will be assigned to -1.{contrast}_*_cluster_scores.log: Containing information of the clusters found.
SUPPA2 is a tool for studying splicing events at a local and transcript level. There are numerous outputs for SUPPA and these will be saved in the folder of the aligner or pseudo aligner setting used. If --pseudo_aligner salmon is used they will be saved in the salmon/suppa/ folder and if --aligner star_salmon has been used they will be saved in the star_salmon/suppa/ folder. The subsequent results are separated into folders depending on the stage and type of analysis. events.* output is saved within the generate_events/ folder under per_isoform/ or per_local_event/ depending on the type of analysis (transcript level or local). PSI values suppa_isoform.psi and suppa_local.psi are saved within psi_per_isoform/ and psi_per_local_event/ respectively. For more details on PSI calculation please see the SUPPA documentation. Split files used for differential splicing analysis (PSI and TPM files split by condition), can also be accessed as output in the following folders - split_files/per_isoform/ or split_files/per_local_event/ and split_files/tpms/. Output from differential splicing analysis at a transcript isoform and local level can also be accessed (*.dpsi, *.psivec) within diffsplice/per_isoform/ and diffsplice/per_local_event/ respectively. Finally, clustering analysis output (*.clustvec, *.log) can be accessed within clusterevents/per_isoform/ or clusterevents/per_local_event/ folders.
Workflow reporting and genomes
Gene annotation
Output files
annotation/{gtf}.gene_annotation.tsv: One row per gene of the GTF, with the columnsgene_id,gene_nameandgene_biotype.{gtf}.transcript_annotation.tsv: One row per transcript of the GTF, with the columnstranscript_id,gene_id,gene_nameandgene_biotype.
Most results tables identify genes by their ID only. The pipeline writes the gene name and biotype of every gene of the GTF to annotation/ on every run, and writes a copy of the DEXSeq (DEU and DTU), stageR, edgeR and SUPPA dPSI tables with the gene name and biotype right after the gene ID column. These copies end in .annotated.tsv, or .annotated.csv for the edgeR tables, and sit next to the tables they are made from, which are left as they are. The count, TPM and PSI matrices are not annotated, so that they keep one ID column.
The tables are made from the gffread transcript table of the GTF, the same one tximport uses. A gene with no gene_name in the GTF is named by its gene ID, and the biotype is read from gene_biotype (Ensembl) or gene_type (GENCODE). The attributes the gene ID and name are read from follow --gtf_group_features and --gtf_extra_attributes. In the annotated copies:
- Genes that DEXSeq aggregates (
ENSG00000147140+ENSG00000255591) or SUPPA pools (ENSG00000147140_and_ENSG00000255591) get their names joined with the same separator (NONO+AL590762.1,NONO_and_AL590762.1). - A gene ID that only differs from the GTF in its version suffix (
ENSG00000004961.15) still gets its name. - A gene that is not in the GTF gets
NA, and every row of the table is kept.
The rMATS, LeafCutter and IsoformSwitchAnalyzeR tables already have gene names, and the ASpli tables have them in their symbol column.
Reference genome files
Output files
genome/*.fa,*.gtf,*.gff: If the--save_referenceparameter is provided then all of the genome reference files will be placed in this directory.*.bed: If the--save_referenceparameter is provided together with--strand_check, or with a genome BAM samplesheet that has anautosample, the BED12 gene model RSeQC reads, made from the GTF. It is also made for the junction saturation unless--skip_junction_saturationis specified.
genome/index/star/: Directory containing STAR indices.salmon/: Directory containing Salmon indices.
A number of genome-specific files are generated by the pipeline because they are required for the downstream processing of the results. If the --save_reference parameter is provided then these will be saved in the genome/ directory. It is recommended to use the --save_reference parameter if you are using the pipeline to build new indices so that you can save them somewhere locally. The index building step can be quite a time-consuming process and it permits their reuse for future runs of the pipeline to save disk space.
Pipeline information
Output files
pipeline_info/- Reports generated by Nextflow:
execution_report.html,execution_timeline.html,execution_trace.txtandpipeline_dag.dot/pipeline_dag.svg. - Reports generated by the pipeline:
pipeline_report.html,pipeline_report.txtandnf_core_rnasplice_software_mqc_versions.yml. Thepipeline_report*files will only be present if the--email/--email_on_failparameters are used when running the pipeline. - Reformatted samplesheet files used as input to the pipeline:
samplesheet.valid.csv. - Parameters used by the pipeline run:
params.json.
- Reports generated by Nextflow:
Nextflow provides excellent functionality for generating various reports relevant to the running and execution of the pipeline. This will allow you to troubleshoot errors with the running of the pipeline, and also provide you with other information such as launch commands, run times and resource usage.