Skip to content
Snippets Groups Projects
Commit 68c17471 authored by Dominik Brilhaus's avatar Dominik Brilhaus
Browse files

restructure kallisto pipeline

parent 163979ff
No related branches found
No related tags found
1 merge request!1Cwl
...@@ -13,3 +13,9 @@ kallisto_bootstrap: 100 ...@@ -13,3 +13,9 @@ kallisto_bootstrap: 100
kallisto_threads: 4 kallisto_threads: 4
kallisto_fragmentLength: 200 kallisto_fragmentLength: 200
kallisto_stdDev: 20 kallisto_stdDev: 20
in_genome_ref:
class: File
path: ../../studies/TalinumGenomeDraft/resources/Talinum.gm.CDS.nt.fa
\ No newline at end of file
cores: 1
sh_script:
class: File
path: ../../workflows/kallisto_index/kallisto_index.sh
in_genome_ref:
class: File
path: ../../studies/TalinumGenomeDraft/resources/Talinum.gm.CDS.nt.fa
out_folder: ./out
# Kallisto
CWL adapted from: https://github.com/common-workflow-library/bio-cwl-tools/commit/91c42fb809ce18eafe16155cca0abf362270c0fe
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: quay.io/biocontainers/kallisto:0.46.2--h4f7b962_1
SoftwareRequirement:
packages:
kallisto:
version: [ "0.46.0" ]
specs: [ https://identifiers.org/biotools/kallisto ]
requirements:
- class: InlineJavascriptRequirement
- class: InitialWorkDirRequirement
listing:
- entry: "$({class: 'Directory', listing: []})"
entryname: $(inputs.IndexOutfolder)
writable: true
inputs:
InputFiles:
type: File[]
format: edam:format_1929 # FASTA
inputBinding:
position: 200
IndexOutfolder:
type: string
IndexName:
type: string
inputBinding:
prefix: "--index="
separate: false
#Optional arguments
kmerSize:
type: int?
inputBinding:
prefix: "--kmer-size="
separate: false
makeUnique:
type: boolean?
inputBinding:
prefix: "--make-unique"
baseCommand: [kallisto, index]
outputs:
index:
type: Directory
outputBinding:
glob: $(runtime.outdir)/$(inputs.IndexOutfolder)
$namespaces:
edam: http://edamontology.org/
$schemas:
- https://edamontology.org/EDAM_1.18.owl
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: quay.io/biocontainers/kallisto:0.46.2--h4f7b962_1
SoftwareRequirement:
packages:
kallisto:
version: [ "0.46.0" ]
specs: [ https://identifiers.org/biotools/kallisto ]
inputs:
InputReads:
type: File[]
format: edam:format_1930 # FASTA
inputBinding:
position: 200
QuantOutfolder:
type: string
Index:
type: File
inputBinding:
position: 1
prefix: "--index"
isSingle:
type: boolean
inputBinding:
position: 2
prefix: "--single"
#Optional Inputs
isBias:
type: boolean?
inputBinding:
prefix: "--bias"
isFusion:
type: boolean?
inputBinding:
prefix: "--fusion"
isSingleOverhang:
type: boolean?
inputBinding:
prefix: "--single-overhang"
FragmentLength:
type: double?
inputBinding:
separate: false
prefix: "--fragment-length="
StandardDeviation:
type: double?
inputBinding:
prefix: "--sd"
BootstrapSamples:
type: int?
inputBinding:
separate: false
prefix: "--bootstrap-samples="
Seed:
type: int?
inputBinding:
prefix: "--seed"
#Using record inputs to create mutually exclusive inputs
Strand:
type:
- "null"
- type: record
name: forward
fields:
forward:
type: boolean
inputBinding:
prefix: "--fr-stranded"
- type: record
name: reverse
fields:
reverse:
type: boolean
inputBinding:
prefix: "--rf-stranded"
PseudoBam:
type: boolean?
inputBinding:
prefix: "--pseudobam"
#Using record inputs to create dependent inputs
GenomeBam:
type:
- "null"
- type: record
name: genome_bam
fields:
genomebam:
type: boolean
inputBinding:
prefix: "--genomebam"
gtf:
type: File
inputBinding:
prefix: "--gtf"
chromosomes:
type: File
inputBinding:
prefix: "--chromosomes"
baseCommand: [ kallisto, quant ]
arguments: [ "--output-dir", $(inputs.QuantOutfolder) ]
outputs:
outFolder:
type: Directory
outputBinding:
glob: $(runtime.outdir)/$(inputs.QuantOutfolder)
$namespaces:
edam: http://edamontology.org/
$schemas:
- https://edamontology.org/EDAM_1.18.owl
cwlVersion: v1.2
class: Workflow
requirements:
ScatterFeatureRequirement: {}
inputs:
parentDir: Directory
dirNamePattern: string
collectedOut: string
Index: File
isSingle: boolean
FragmentLength: double?
StandardDeviation: double?
BootstrapSamples: int?
steps:
quant:
run: kallisto-quant.cwl
scatter:
- InputReads
- QuantOutfolder
scatterMethod: dotproduct
in:
InputReads: listFiles/inDirFiles
QuantOutfolder: listFiles/inDirBasename
Index: Index
isSingle: isSingle
FragmentLength: FragmentLength
StandardDeviation: StandardDeviation
BootstrapSamples: BootstrapSamples
out: [outFolder]
collect:
run: ../_aux-tools/yield-dirInDestination.cwl
scatter: inDir
in:
inDir: quant/outFolder
destinationDir: collectedOut
out: [outDir]
outputs:
finalOut:
type: Directory[]
outputSource: collect/outDir
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment