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
1c1f8955
Commit
1c1f8955
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
bwa.wdl to 1.0
parent
2de46d0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!34
Move all files to version 1.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bwa.wdl
+33
-27
33 additions, 27 deletions
bwa.wdl
with
33 additions
and
27 deletions
bwa.wdl
+
33
−
27
View file @
1c1f8955
task mem {
String? preCommand
File inputR1
File? inputR2
File referenceFasta
Array[File] indexFiles # These indexFiles need to be added, otherwise cromwell will not find them.
String outputPath
String? readgroup
version 1.0
Int? threads
Int? memory
task mem {
input {
String? preCommand
File inputR1
File? inputR2
File referenceFasta
Array[File] indexFiles # These indexFiles need to be added, otherwise cromwell will not find them.
String outputPath
String? readgroup
Int? threads
Int? memory
}
command {
set -e -o pipefail
mkdir -p $(dirname
$
{outputPath})
$
{preCommand}
bwa mem
$
{"-t " + threads} \
$
{"-R '" + readgroup + "'"} \
$
{referenceFasta}
$
{inputR1}
$
{inputR2} | samtools sort --output-fmt BAM - >
$
{outputPath}
mkdir -p $(dirname
~
{outputPath})
~
{preCommand}
bwa mem
~
{"-t " + threads} \
~
{"-R '" + readgroup + "'"} \
~
{referenceFasta}
~
{inputR1}
~
{inputR2} | samtools sort --output-fmt BAM - >
~
{outputPath}
}
output {
...
...
@@ -30,26 +33,29 @@ task mem {
}
task index {
File fasta
String? preCommand
String? constructionAlgorithm
Int? blockSize
String? outputDir
input {
File fasta
String? preCommand
String? constructionAlgorithm
Int? blockSize
String? outputDir
}
String fastaFilename = basename(fasta)
String outputFile = if (defined(outputDir)) then outputDir + "/" + fastaFilename else fasta
command {
set -e -o pipefail
$
{"mkdir -p " + outputDir}
$
{preCommand}
if [[ ! '
$
{outputDir}' = '' ]]
~
{"mkdir -p " + outputDir}
~
{preCommand}
if [[ ! '
~
{outputDir}' = '' ]]
then
ln -sf
$
{fasta}
$
{outputDir + "/"}
$
{fastaFilename}
ln -sf
~
{fasta}
~
{outputDir + "/"}
~
{fastaFilename}
fi
bwa index \
$
{"-a " + constructionAlgorithm} \
$
{"-b" + blockSize} \
$
{outputFile}
~
{"-a " + constructionAlgorithm} \
~
{"-b" + blockSize} \
~
{outputFile}
}
output {
...
...
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