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
a5d69668
Commit
a5d69668
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
added bwa index and samtools fastq
parent
b3545b27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!9
Changes for virus assembly pipeline
,
!10
Extra tasks required for assembly.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bwa.wdl
+34
-0
34 additions, 0 deletions
bwa.wdl
samtools.wdl
+5
-0
5 additions, 0 deletions
samtools.wdl
with
39 additions
and
0 deletions
bwa.wdl
+
34
−
0
View file @
a5d69668
...
...
@@ -3,6 +3,7 @@ task BwaMem {
File inputR1
File? inputR2
String referenceFasta
Array[File] indexFiles # These indexFiles need to be added, otherwise cromwell will not find them.
String outputPath
String? readgroup
...
...
@@ -26,3 +27,36 @@ task BwaMem {
memory: if defined(memory) then memory else 8
}
}
task index {
File fasta
String? preCommand
String? constructionAlgorithm
Int? blockSize
String? outputDir
String fastaFilename = basename(fasta)
command {
set -e -o pipefail
${"mkdir -p " + outputDir}
${preCommand}
ln -sf ${fasta} ${outputDir + "/"}${fastaFilename}
bwa index \
${"-a " + constructionAlgorithm} \
${"-b" + blockSize} \
${outputDir + "/"}${fastaFilename}
}
output {
File indexBase = if (defined(outputDir)) then select_first([outputDir]) + "/" + fastaFilename else fastaFilename
File indexedFasta = indexBase
Array[File] indexFiles = [indexBase + ".bwt",indexBase + ".pac",indexBase + ".sa",indexBase + ".amb",indexBase + ".ann"]
}
parameter_meta {
fasta: "Fasta file to be indexed"
constructionAlgorithm: "-a STR BWT construction algorithm: bwtsw, is or rb2 [auto]"
blockSize: "-b INT block size for the bwtsw algorithm (effective with -a bwtsw) [10000000]"
outputDir: "index will be created in this output directory"
}
}
This diff is collapsed.
Click to expand it.
samtools.wdl
+
5
−
0
View file @
a5d69668
...
...
@@ -97,6 +97,11 @@ task fastq {
${"--threads " + totalThreads} \
}
output {
File read1 = outputRead1
File? read2 = outputRead2
File? read0 = outputRead0
}
runtime {
cpu: totalThreads
memory: select_first([memory, 1])
...
...
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