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
0f8d23d7
Unverified
Commit
0f8d23d7
authored
6 years ago
by
Ruben Vorderman
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #31 from biowdl/BIOWDL-42
add validatevcf and validateannotation
parents
9081f0d7
e1991bae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biopet.wdl
+84
-21
84 additions, 21 deletions
biopet.wdl
with
84 additions
and
21 deletions
biopet.wdl
+
84
−
21
View file @
0f8d23d7
# PLEASE ADD TASKS IN ALPHABETIC ORDER.
# This makes searching a lot easier.
task BaseCounter {
task BaseCounter {
String? preCommand
String? preCommand
File? toolJar
File? toolJar
...
@@ -15,8 +12,8 @@ task BaseCounter {
...
@@ -15,8 +12,8 @@ task BaseCounter {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-basecounter -Xmx" + mem + "G"
else "biopet-basecounter -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
...
@@ -89,8 +86,8 @@ task ExtractAdaptersFastqc {
...
@@ -89,8 +86,8 @@ task ExtractAdaptersFastqc {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-extractadaptersfastqc -Xmx" + mem + "G"
else "biopet-extractadaptersfastqc -Xmx" + mem + "G"
command {
command {
set -e
set -e
...
@@ -119,7 +116,6 @@ task ExtractAdaptersFastqc {
...
@@ -119,7 +116,6 @@ task ExtractAdaptersFastqc {
}
}
}
}
task FastqSplitter {
task FastqSplitter {
String? preCommand
String? preCommand
File inputFastq
File inputFastq
...
@@ -131,8 +127,8 @@ task FastqSplitter {
...
@@ -131,8 +127,8 @@ task FastqSplitter {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-fastqsplitter -Xmx" + mem + "G"
else "biopet-fastqsplitter -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
...
@@ -171,8 +167,8 @@ task FastqSync {
...
@@ -171,8 +167,8 @@ task FastqSync {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-fastqsync -Xmx" + mem + "G"
else "biopet-fastqsync -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
...
@@ -213,8 +209,8 @@ task SampleConfig {
...
@@ -213,8 +209,8 @@ task SampleConfig {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-sampleconfig -Xmx" + mem + "G"
else "biopet-sampleconfig -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
...
@@ -255,8 +251,8 @@ task ScatterRegions {
...
@@ -255,8 +251,8 @@ task ScatterRegions {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-scatterregions -Xmx" + mem + "G"
else "biopet-scatterregions -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
...
@@ -288,8 +284,8 @@ task Seqstat {
...
@@ -288,8 +284,8 @@ task Seqstat {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " + toolJar
then "java -Xmx" + mem + "G -jar " + toolJar
else "biopet-seqstat -Xmx" + mem + "G"
else "biopet-seqstat -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
...
@@ -299,9 +295,44 @@ task Seqstat {
...
@@ -299,9 +295,44 @@ task Seqstat {
--fastq ${fastq} \
--fastq ${fastq} \
--output ${outputFile}
--output ${outputFile}
}
}
output {
output {
File json = outputFile
File json = outputFile
}
}
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
}
}
task ValidateAnnotation {
String? preCommand
File? toolJar
File? refRefflat
File? gtfFile
File refFasta
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " + toolJar
else "biopet-validateannotation -Xmx" + mem + "G"
command {
set -e -o pipefail
${preCommand}
${toolCommand} \
${"-r" + refRefflat} \
${"-g" + gtfFile} \
-R ${refFasta}
}
output {
File stderr = stderr()
}
runtime {
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
}
}
...
@@ -318,21 +349,53 @@ task ValidateFastq {
...
@@ -318,21 +349,53 @@ task ValidateFastq {
Int mem = ceil(select_first([memory, 4.0]))
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " + toolJar
then "java -Xmx" + mem + "G -jar " + toolJar
else "biopet-validatefastq -Xmx" + mem + "G"
else "biopet-validatefastq -Xmx" + mem + "G"
command {
command {
set -e -o pipefail
set -e -o pipefail
${preCommand}
${preCommand}
biopet-validatefastq
\
${toolCommand}
\
--fastq1 ${fastq1} \
--fastq1 ${fastq1} \
${"--fastq2 " + fastq2}
${"--fastq2 " + fastq2}
}
}
output {
output {
File stderr = stderr()
File stderr = stderr()
}
}
runtime {
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
}
}
}
}
task ValidateVcf {
String? preCommand
File? toolJar
File vcfFile
File refFasta
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " + toolJar
else "biopet-validatevcf -Xmx" + mem + "G"
command {
set -e -o pipefail
${preCommand}
${toolCommand}\
-i ${vcfFile} \
-R ${refFasta}
}
output {
File stderr = stderr()
}
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
}
}
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