Workflow for Spliced RNAseq data Steps:
-
workflow_quality.cwl:
- FastQC (Read Quality Control)
- fastp (Read Trimming)
- STAR (Read mapping)
- featurecounts (transcript read counts)
- kallisto (transcript [pseudo]counts)
Code Snippets
53 54 55 56 57 58 59 60 61 62 63 64 65 66 | baseCommand: [ /unlock/infrastructure/binaries/BBMap/BBMap_v38.95/bbduk.sh ] arguments: - prefix: "-Xmx" separate: false valueFrom: $(inputs.memory)M - prefix: "out=" separate: false valueFrom: $(inputs.identifier)_1.fq.gz - prefix: "out2=" separate: false valueFrom: $(inputs.identifier)_2.fq.gz - prefix: "stats=" separate: false valueFrom: $(inputs.identifier)_bbduk-stats.txt |
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | baseCommand: [/unlock/infrastructure/binaries/BBMap/BBMap_v38.95/bbmap.sh] arguments: - "-Xmx$(inputs.memory)M" - "printunmappedcount" - "overwrite=true" - "bloom=t" - "statsfile=$(inputs.identifier)_BBMap_stats.txt" - "covstats=$(inputs.identifier)_BBMap_covstats.txt" - | ${ if (inputs.output_mapped){ return 'outm1='+inputs.identifier+'_filtered_1.fq.gz \ outm2='+inputs.identifier+'_filtered_2.fq.gz'; } else { return 'outu1='+inputs.identifier+'_filtered_1.fq.gz \ outu2='+inputs.identifier+'_filtered_2.fq.gz'; } } # - "fast" # - "minratio=0.9" # - "maxindel=3" # - "bwr=0.16" # - "bw=12" # - "minhits=2" # - "qtrim=r" # - "trimq=10" # - "untrim" # - "idtag" # - "kfilter=25" # - "maxsites=1" # - "k=14" # - "nodisk=t" # - "out=$(inputs.identifier)_BBMap.sam" # - "rpkm=$(inputs.identifier).rpkm" |
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | arguments: - prefix: --out1 valueFrom: $(inputs.identifier)_fastp_1.fq.gz - | ${ if (inputs.reverse_reads){ return '--out2'; } else { return ''; } } - | ${ if (inputs.reverse_reads){ return inputs.identifier + "_fastp_2.fq.gz"; } else { return ''; } } - | ${ if (inputs.merge_reads){ return '--merged_out'; } else { return ''; } } - | ${ if (inputs.merge_reads){ return inputs.identifier + "merged_fastp.fq.gz"; } else { return ''; } } - prefix: "-h" valueFrom: $(inputs.identifier)_fastp.html - prefix: "-j" valueFrom: $(inputs.identifier)_fastp.json baseCommand: [/unlock/infrastructure/binaries/fastp/fastp-v0.23.2/fastp] |
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | baseCommand: [ /unlock/infrastructure/binaries/FastQC/FastQC_v0.11.9/fastqc ] label: "FASTQC" doc: | Performs quality control on FASTQ files requirements: - class: InlineJavascriptRequirement - class: InitialWorkDirRequirement listing: - entry: "$({class: 'Directory', listing: []})" entryname: "FASTQC" writable: true arguments: ["--outdir", "FASTQC"] inputs: nanopore: type: File? doc: FastQ files list label: FASTQ files list inputBinding: position: 101 prefix: --nano fastq: type: File[]? doc: FastQ file list label: FASTQ file list inputBinding: position: 100 fastq_path: # type: File[]? type: string[]? doc: FastQ file path list label: FastQ file paths inputBinding: position: 102 threads: type: int? default: 1 inputBinding: prefix: --threads |
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | baseCommand: [ /unlock/infrastructure/binaries/kraken2-2.0.9-beta/kraken2 ] label: "Kraken2 metagenomics read classification" doc: | Kraken2 metagenomics read classification. Updated databases available at: https://benlangmead.github.io/aws-indexes/k2 (e.g. PlusPF-8) Original db: https://ccb.jhu.edu/software/kraken2/index.shtml?t=downloads requirements: - class: InlineJavascriptRequirement arguments: - valueFrom: $(inputs.identifier)_$(inputs.database.split( '/' ).pop())_kraken2.txt prefix: --output - valueFrom: $(inputs.identifier)_$(inputs.database.split( '/' ).pop())_kraken2_report.txt prefix: --report - "--report-zero-counts" - "--use-names" inputs: threads: type: int? default: 1 inputBinding: prefix: --threads identifier: type: string doc: Identifier for this dataset used in this workflow label: identifier used database: type: string doc: database location of kraken2 inputBinding: prefix: --db # Short reads forward_reads: type: File? inputBinding: position: 100 reverse_reads: type: File? inputBinding: position: 101 paired_end: type: - "null" - boolean doc: "data paired end (separate files)" inputBinding: position: 2 prefix: "--paired" default: false # Long reads nanopore: # Oxford Nanopore Technologies reads in FASTQ type: File? inputBinding: position: 102 gzip: type: - "null" - boolean doc: "input data is gzip compressed" inputBinding: position: 3 prefix: '--gzip-compressed' default: false bzip2: type: - "null" - boolean doc: "input data is gzip compressed" inputBinding: position: 3 prefix: '--bzip2-compressed' default: false |
13 | baseCommand: ["bash", "script.sh"] |
27 28 29 30 31 32 33 | - entryname: script.sh entry: |- #!/bin/bash source /root/miniconda/bin/activate conda init bash conda activate /unlock/infrastructure/conda/krona_v2.8.1 ktImportTaxonomy -t 5 -m 3 $@ |
33 34 35 36 37 | arguments: - prefix: "-o" valueFrom: $(inputs.prefix)_FeatureCounts.txt baseCommand: [/unlock/infrastructure/binaries/subread-2.0.1/bin/featureCounts] |
148 149 150 151 152 153 | arguments: - prefix: "--output-dir=" separate: false valueFrom: $(inputs.prefix)_kallisto baseCommand: [/unlock/infrastructure/binaries/kallisto/kallisto_v0.46.1/kallisto, quant] |
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | baseCommand: [/unlock/infrastructure/binaries/STAR-2.7.3a/bin/Linux_x86_64/STAR, --runMode, alignReads] inputs: genomeDir: type: Directory inputBinding: prefix: "--genomeDir" forward_reads: type: - File - File[] inputBinding: prefix: "--readFilesIn " separate: false itemSeparator: "," position: 1 reverse_reads: type: - "null" - File - File[] inputBinding: prefix: "" separate: false itemSeparator: "," position: 2 # Optional Inputs threads: type: int? inputBinding: prefix: "--runThreadN" OutFileNamePrefix: type: string? inputBinding: prefix: "--outFileNamePrefix" quantMode: type: - "null" - type: enum symbols: - None - TranscriptomeSAM - GeneCounts doc: Run with get gene quantification inputBinding: prefix: "--quantMode" sjdbGTFfile: type: File? inputBinding: prefix: "--sjdbGTFfile" Overhang: type: int? inputBinding: prefix: "--sjdbOverhang" sjdbGTFtagExonParentGene: type: string? doc: GTF attribute name for parent gene ID (default gene_id) inputBinding: prefix: "--sjdbGTFtagExonParentGene" sjdbGTFtagExonParentGeneName: type: string? doc: GTF attrbute name for parent gene name inputBinding: prefix: "--sjdbGTFtagExonParentGeneName" sjdbGTFtagExonParentGeneType: type: string? doc: GTF attrbute name for parent gene type inputBinding: prefix: "--sjdbGTFtagExonParentGeneType" OutFilterType: type: - "null" - type: enum symbols: - Normal - BySJout inputBinding: prefix: "--outFilterType" OutFilterIntronMotifs: type: - "null" - type: enum symbols: - None - RemoveNoncanonical - RemoveNoncanonicalUnannotated inputBinding: prefix: "--outFilterIntronMotifs" outSAMtype: type: type: array items: string default: [BAM, SortedByCoordinate] inputBinding: prefix: --outSAMtype doc: | strings: type of SAM/BAM output 1st word: BAM ... output BAM without sorting SAM ... output SAM without sorting None ... no SAM/BAM output 2nd, 3rd: Unsorted ... standard unsorted SortedByCoordinate ... sorted by coordinate. This option will allocate extra memory for sorting which can be specified by --limitBAMsortRAM. ReadFilesCommand: type: string? inputBinding: prefix: "--readFilesCommand" default: zcat AlignIntronMin: type: int? inputBinding: prefix: "--alignIntronMin" AlignIntronMax: type: int? inputBinding: prefix: "--alignIntronMax" AlignMatesGapMax: type: int? inputBinding: prefix: "--alignMatesGapMax" AlignSJoverhangMin: type: int? inputBinding: prefix: "--alignSJoverhangMin" AlignSJDBoverhangMin: type: int? inputBinding: prefix: "--alignSJDBoverhangMin" SeedSearchStartLmax: type: int? inputBinding: prefix: "--seedSearchStartLmax" ChimOutType: type: - "null" - type: enum symbols: - Junctions - SeparateSAMold - WithinBAM - "WithinBAM HardClip" - "WithinBAM SoftClip" ChimSegmentMin: type: int? inputBinding: prefix: "--chimSegmentMin" ChimJunctionOverhangMin: type: int? inputBinding: prefix: "--chimJunctionOverhangMin" OutFilterMultimapNmax: type: int? inputBinding: prefix: "--outFilterMultimapNmax" OutFilterMismatchNmax: type: int? inputBinding: prefix: "--outFilterMismatchNmax" OutFilterMismatchNoverLmax: type: double? inputBinding: prefix: "--outFilterMismatchNoverLmax" OutReadsUnmapped: type: - "null" - type: enum symbols: - None - Fastx inputBinding: prefix: "--outReadsUnmapped" OutSAMstrandField: type: - "null" - type: enum symbols: - None - intronMotif inputBinding: prefix: "--outSAMstrandField" OutSAMunmapped: type: - "null" - type: enum symbols: - None - Within - "Within KeepPairs" inputBinding: prefix: "--outSAMunmapped" OutSAMmapqUnique: type: int? inputBinding: prefix: "--outSAMmapqUnique" OutSamMode: type: - "null" - type: enum symbols: - None - Full - NoQS inputBinding: prefix: "--outSAMmode" LimitOutSAMoneReadBytes: type: int? inputBinding: prefix: "--limitOutSAMoneReadBytes" GenomeLoad: type: - "null" - type: enum symbols: - LoadAndKeep - LoadAndRemove - LoadAndExit - Remove - NoSharedMemory inputBinding: prefix: "--genomeLoad" |
Support
Do you know this workflow well? If so, you can
request seller status , and start supporting this workflow.
Created: 1yr ago
Updated: 1yr ago
Maitainers:
public
URL:
https://git.wur.nl/unlock/cwl/-/blob/master/cwl/workflows/workflow_RNAseq_Spliced.cwl
Name:
spliced-rnaseq-workflow
Version:
Version 1
Downloaded:
0
Copyright:
Public Domain
License:
None
Keywords:
- Future updates
Related Workflows

ENCODE pipeline for histone marks developed for the psychENCODE project
psychip pipeline is an improved version of the ENCODE pipeline for histone marks developed for the psychENCODE project.
The o...

Near-real time tracking of SARS-CoV-2 in Connecticut
Repository containing scripts to perform near-real time tracking of SARS-CoV-2 in Connecticut using genomic data. This pipeli...

snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...

ATLAS - Three commands to start analyzing your metagenome data
Metagenome-atlas is a easy-to-use metagenomic pipeline based on snakemake. It handles all steps from QC, Assembly, Binning, t...
raw sequence reads
Genome assembly
Annotation track
checkm2
gunc
prodigal
snakemake-wrapper-utils
MEGAHIT
Atlas
BBMap
Biopython
BioRuby
Bwa-mem2
cd-hit
CheckM
DAS
Diamond
eggNOG-mapper v2
MetaBAT 2
Minimap2
MMseqs
MultiQC
Pandas
Picard
pyfastx
SAMtools
SemiBin
Snakemake
SPAdes
SqueezeMeta
TADpole
VAMB
CONCOCT
ete3
gtdbtk
h5py
networkx
numpy
plotly
psutil
utils
metagenomics

RNA-seq workflow using STAR and DESeq2
This workflow performs a differential gene expression analysis with STAR and Deseq2. The usage of this workflow is described ...

This Snakemake pipeline implements the GATK best-practices workflow
This Snakemake pipeline implements the GATK best-practices workflow for calling small germline variants. The usage of thi...