Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Samuilov-2018-BOU-PSP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HHU Plant Biochemistry
Samuilov-2018-BOU-PSP
Commits
12ee9429
Commit
12ee9429
authored
1 year ago
by
Dominik Brilhaus
Browse files
Options
Downloads
Patches
Plain Diff
add kallisto pe workflow
parent
00ff36d4
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Re build rnaseq
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
runs/kallisto_quant-pe/run.cwl
+45
-0
45 additions, 0 deletions
runs/kallisto_quant-pe/run.cwl
runs/kallisto_quant-pe/run.yml
+13
-0
13 additions, 0 deletions
runs/kallisto_quant-pe/run.yml
workflows/kallisto_quant-pe/kallisto_quant-pe.sh
+46
-0
46 additions, 0 deletions
workflows/kallisto_quant-pe/kallisto_quant-pe.sh
with
104 additions
and
0 deletions
runs/kallisto_quant-pe/run.cwl
0 → 100644
+
45
−
0
View file @
12ee9429
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: quay.io/biocontainers/kallisto:0.43.0--hdf51.8.17_2
inputs:
- id: sh_script
type: File
inputBinding:
position: 0
- id: out_folder
type: string
inputBinding:
position: 1
- id: in_kallisto_index
type: File
inputBinding:
position: 2
- id: in_fastq_dir
type: Directory
inputBinding:
position: 3
- id: kallisto_bootstrap
type: int
inputBinding:
position: 4
- id: kallisto_threads
type: int
inputBinding:
position: 5
outputs:
- id: outdir
type:
type: array
items: Directory
outputBinding:
glob: $(runtime.outdir)/$(inputs.out_folder)
baseCommand:
- bash
This diff is collapsed.
Click to expand it.
runs/kallisto_quant-pe/run.yml
0 → 100644
+
13
−
0
View file @
12ee9429
cores
:
4
sh_script
:
class
:
File
path
:
../../workflows/kallisto_quant-pe/kallisto_quant-pe.sh
out_folder
:
./out
in_kallisto_index
:
class
:
File
path
:
../kallisto_index/out/kallisto_index
in_fastq_dir
:
class
:
Directory
path
:
../../assays/rna-seq/dataset
kallisto_bootstrap
:
30
kallisto_threads
:
4
This diff is collapsed.
Click to expand it.
workflows/kallisto_quant-pe/kallisto_quant-pe.sh
0 → 100644
+
46
−
0
View file @
12ee9429
#!/usr/bin/env bash
### Map RNASeq reads via kallisto
### Note, this is written for paired-end mode only
### And this assumes that there's exactly 2 fastq files for each sample with
## forward = ${sample}_R1_001.fastq.gz
## reverse = ${sample}_R2_001.fastq.gz
################################################
#### Read arguments from CLI
################################################
out_folder
=
$1
in_kallisto_index
=
$2
in_fastq_folder
=
$3
kallisto_bootstrap
=
$4
kallisto_threads
=
$5
################################################
#### If it does not exist, create out dir
################################################
mkdir
-p
"
$out_folder
"
################################################
#### Store fastq files in variable
################################################
fastq_files
=
$(
ls
"
${
in_fastq_folder
}
"
/50
*
fastq
*
|
sed
's/_R[1-2]_001.fastq.gz//g'
|
uniq
)
################################################
#### Loop over fastq files and quantify reads
################################################
for
j
in
$fastq_files
;
do
sampleName
=
$(
basename
$j
)
echo
$sampleName
kallisto quant
-b
$kallisto_bootstrap
-t
$kallisto_threads
-i
"
$in_kallisto_index
"
-o
"
$out_folder
/
$sampleName
"
"
$j
"
_R1_001.fastq.gz
"
$j
"
_R2_001.fastq.gz
echo
'Kallisto done'
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment