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
2c2bed96
Commit
2c2bed96
authored
6 years ago
by
Cats
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into BIOWDL-78
parents
5de99d71
ef6db0ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!74
add SomaticSeq
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bwa.wdl
+41
-6
41 additions, 6 deletions
bwa.wdl
centrifuge.wdl
+1
-1
1 addition, 1 deletion
centrifuge.wdl
seqtk.wdl
+1
-1
1 addition, 1 deletion
seqtk.wdl
spades.wdl
+3
-2
3 additions, 2 deletions
spades.wdl
with
46 additions
and
10 deletions
bwa.wdl
+
41
−
6
View file @
2c2bed96
version 1.0
import "common.wdl" as common
task Mem {
input {
String? preCommand
...
...
@@ -9,29 +11,59 @@ task Mem {
String outputPath
String? readgroup
String? picardJar
Int threads = 1
Int memory = 8
Int picardMemory = 4
}
String picardPrefix = if defined(picardJar)
then "java -Xmx" + picardMemory + "G -jar " + picardJar
else "picard -Xmx" + picardMemory + "G"
# Post alt script from bwa
String altCommand = if (defined(bwaIndex.altIndex)) then "| bwa-postalt " + bwaIndex.altIndex else ""
# setNmMdAndUqTags is only required if alt sequences are added
String setNmMdAndUqTagsCommand = picardPrefix + " SetNmMdAndUqTags " +
" INPUT=/dev/stdin OUTPUT=" + outputPath +
" CREATE_INDEX=true" +
" R=" + bwaIndex.fastaFile
String sortSamCommand = picardPrefix + " SortSam " +
" INPUT=/dev/stdin SORT_ORDER=coordinate " +
if(defined(bwaIndex.altIndex)) then " OUTPUT=/dev/stdout "
else " OUTPUT=" + outputPath + " CREATE_INDEX=true "
String picardCommand = if (defined(bwaIndex.altIndex)) then sortSamCommand + " | " + setNmMdAndUqTagsCommand
else sortSamCommand
String readgroupArg = if (defined(readgroup)) then "-R '" + readgroup + "'" else ""
command {
set -e -o pipefail
mkdir -p $(dirname ~{outputPath})
~{preCommand}
bwa mem ~{"-t " + threads} \
~{
"-R '" +
readgroup
+ "'"
} \
~{readgroup
Arg
} \
~{bwaIndex.fastaFile} \
~{inputR1} \
~{inputR2} \
| samtools sort --output-fmt BAM - > ~{outputPath}
~{altCommand} \
| ~{picardCommand}
}
output {
File bamFile = outputPath
IndexedBamFile bamFile = object {
file: outputPath,
index: sub(outputPath, ".bam$", ".bai")
}
}
runtime{
cpu: threads
memory: memory
memory: memory
+ picardMemory + picardMemory
}
}
...
...
@@ -62,8 +94,10 @@ task Index {
}
output {
File indexedFasta = outputFile
Array[File] indexFiles = [outputFile + ".bwt",outputFile + ".pac",outputFile + ".sa",outputFile + ".amb",outputFile + ".ann"]
BwaIndex outputIndex = object {
fastaFile: outputFile,
indexFiles: [outputFile + ".bwt",outputFile + ".pac",outputFile + ".sa",outputFile + ".amb",outputFile + ".ann"]
}
}
parameter_meta {
...
...
@@ -77,4 +111,5 @@ task Index {
struct BwaIndex {
File fastaFile
Array[File] indexFiles
File? altIndex
}
This diff is collapsed.
Click to expand it.
centrifuge.wdl
+
1
−
1
View file @
2c2bed96
...
...
@@ -197,7 +197,7 @@ task Kreport {
String suffix = "kreport"
String prefix = "centrifuge"
String indexPrefix
Boolean? onlyUnique
Boolean? onlyUnique
## removed in 1.0.4
Boolean? showZeros
Boolean? isCountTable
Int? minScore
...
...
This diff is collapsed.
Click to expand it.
seqtk.wdl
+
1
−
1
View file @
2c2bed96
...
...
@@ -6,7 +6,7 @@ task Sample {
String outFilePath = "subsampledReads.fq.gz"
String? preCommand
Int? seed
Boolean twoPassMode
Boolean twoPassMode
= false
Float? fraction
Int? number
Boolean zip = true
...
...
This diff is collapsed.
Click to expand it.
spades.wdl
+
3
−
2
View file @
2c2bed96
...
...
@@ -32,7 +32,8 @@ task Spades {
Int? phredOffset
}
Int clusterMemory = ceil(memoryGb / threads)
Int clusterMemory = ceil(memoryGb / threads * 1.2)
Int memoryArg = ceil(memoryGb)
command {
set -e -o pipefail
...
...
@@ -60,7 +61,7 @@ task Spades {
~{true="--disable-rr" false="" disableRepeatResolution} \
~{"--dataset " + dataset} \
~{"--threads " + threads} \
~{"--memory " + memory
Gb
} \
~{"--memory " + memory
Arg
} \
~{"-k " + k} \
~{"--cov-cutoff " + covCutoff} \
~{"--phred-offset " + phredOffset}
...
...
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