Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tasks
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
Container Registry
Model registry
Operate
Environments
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
biowdl
tasks
Commits
3ec3f6b1
Commit
3ec3f6b1
authored
5 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
2d5d02f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bowtie.wdl
+2
-2
2 additions, 2 deletions
bowtie.wdl
cutadapt.wdl
+2
-2
2 additions, 2 deletions
cutadapt.wdl
picard.wdl
+12
-10
12 additions, 10 deletions
picard.wdl
samtools.wdl
+2
-2
2 additions, 2 deletions
samtools.wdl
with
18 additions
and
16 deletions
bowtie.wdl
+
2
−
2
View file @
3ec3f6b1
...
...
@@ -25,7 +25,7 @@ version 1.0
task Bowtie {
input {
Array[File]+ readsUpstream
Array[File]
+?
readsDownstream
Array[File] readsDownstream
= []
String outputPath = "mapped.bam"
Array[File]+ indexFiles
Int? seedmms
...
...
@@ -59,7 +59,7 @@ task Bowtie {
~{"--sam-RG '" + samRG}~{true="'" false="" defined(samRG)} \
~{sub(indexFiles[0], "(\.rev)?\.[0-9]\.ebwt$", "")} \
~{true="-1" false="" defined(readsDownstream)} ~{sep="," readsUpstream} \
~{true="-2" false=""
defined
(readsDownstream)} ~{sep="," readsDownstream} \
~{true="-2" false=""
length
(readsDownstream)
> 0
} ~{sep="," readsDownstream} \
| picard -Xmx~{picardMemory}G SortSam \
INPUT=/dev/stdin \
OUTPUT=~{outputPath} \
...
...
This diff is collapsed.
Click to expand it.
cutadapt.wdl
+
2
−
2
View file @
3ec3f6b1
...
...
@@ -4,8 +4,8 @@ task Cutadapt {
input {
File read1
File? read2
String read1output
String? read2output
String read1output
= "cut_r1.fq.gz"
String? read2output
= if defined(read2) then "cut_r2.fq.gz" else read2
String? format
Array[String]+? adapter
Array[String]+? front
...
...
This diff is collapsed.
Click to expand it.
picard.wdl
+
12
−
10
View file @
3ec3f6b1
...
...
@@ -362,34 +362,36 @@ task MergeVCFs {
task SamToFastq {
input {
File inputBam
File inputBamIndex
String outputRead1
String? outputRead2
String? outputUnpaired
Boolean paired = true
Int memory = 16 # High memory default to avoid crashes.
Float memoryMultiplier = 3.0
String dockerTag = "2.18.26--0"
String dockerImage = "quay.io/biocontainers/picard:2.18.26--0"
File? NONE
}
String outputRead1 = basename(inputBam, "\.[bs]am") + "_R1.fastq.gz"
String outputRead2 = basename(inputBam, "\.[bs]am") + "_R2.fastq.gz"
String outputUnpaired = basename(inputBam, "\.[bs]am") + "_unpaired.fastq.gz"
command {
set -e
picard -Xmx~{memory}G \
SamToFastq \
I=~{inputBam} \
~{"FASTQ=" + outputRead1} \
~{"SECOND_END_FASTQ=" + outputRead2} \
~{"UNPAIRED_FASTQ=" + outputUnpaired}
~{
if paired then
"SECOND_END_FASTQ=" + outputRead2
else ""
} \
~{
if paired then
"UNPAIRED_FASTQ=" + outputUnpaired
else ""
}
}
output {
File read1 = outputRead1
File? read2 = outputRead2
File? unpairedRead = outputUnpaired
File? read2 =
if paired then
outputRead2
else NONE
File? unpairedRead =
if paired then
outputUnpaired
else NONE
}
runtime {
docker:
"quay.io/biocontainers/picard:" +
docker
T
ag
docker: docker
Im
ag
e
memory: ceil(memory * memoryMultiplier)
}
}
...
...
This diff is collapsed.
Click to expand it.
samtools.wdl
+
2
−
2
View file @
3ec3f6b1
...
...
@@ -208,8 +208,8 @@ task View {
input {
File inFile
File? referenceFasta
String outputFileName
Boolean
?
outputBam
String outputFileName
= if outputBam then "view.bam" else "view.sam"
Boolean outputBam
= true
Boolean? uncompressedBamOutput
Int? includeFilter
Int? excludeFilter
...
...
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