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
6af3ca35
Unverified
Commit
6af3ca35
authored
5 years ago
by
Cats
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #147 from biowdl/bwakit
Add bwakit task
parents
690aedb5
71b8929e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
bwa.wdl
+93
-0
93 additions, 0 deletions
bwa.wdl
with
94 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
6af3ca35
...
...
@@ -11,6 +11,7 @@ that users understand how the changes affect the new version.
version 1.1.0-dev
---------------------------
+
Added bwakit task
+
Minimap2: Add the option for --MD tag
+
TALON: Update average memory needs for main TALON process
...
...
This diff is collapsed.
Click to expand it.
bwa.wdl
+
93
−
0
View file @
6af3ca35
...
...
@@ -44,6 +44,99 @@ task Mem {
}
}
task Kit {
input {
File read1
File? read2
BwaIndex bwaIndex
String outputPrefix
String? readgroup
Boolean sixtyFour = false
Int threads = 2
Int sortThreads = 2
Int memory = 10
String dockerImage = "biocontainers/bwakit:v0.7.15_cv1"
}
command {
set -e
bwa mem \
-t ~{threads} \
~{"-R '" + readgroup}~{true="'" false="" defined(readgroup)} \
~{bwaIndex.fastaFile} \
~{read1} \
~{read2} \
2> ~{outputPrefix}.log.bwamem | \
k8 /opt/conda/bin/bwa-postalt.js \
-p ~{outputPrefix}.hla \
~{bwaIndex.fastaFile}~{true=".64.alt" false=".alt" sixtyFour} | \
samtools sort \
-@ ~{sortThreads} \
-m1G \
- \
-o ~{outputPrefix}.aln.bam
samtools index ~{outputPrefix}.aln.bam ~{outputPrefix}.aln.bai
}
output {
File outputBam = outputPrefix + ".aln.bam"
File outputBamIndex = outputPrefix + ".aln.bai"
}
runtime {
cpu: threads + sortThreads
memory: memory
docker: dockerImage
}
parameter_meta {
read1: {
description: "The first-end fastq file.",
category: "required"
}
read2: {
description: "The second-end fastq file.",
category: "common"
}
bwaIndex: {
description: "The BWA index, including a .alt file.",
category: "required"
}
outputPrefix: {
description: "The prefix of the output files, including any parent directories",
category: "required"
}
readgroup: {
description: "A readgroup identifier.",
category: "common"
}
sixtyFour: {
description: "Whether or not the index uses the '.64' suffixes.",
category: "common"
}
threads: {
description: "The number of threads to use for alignment.",
category: "advanced"
}
sortThreads: {
description: "The number of threads to use for sorting.",
category: "advanced"
}
memory: {
description: "The amount of memory this job will use.",
category: "advanced"
}
dockerImage: {
description: "The docker image used for this task. Changing this may result in errors which the developers may chose not to address.",
category: "advanced"
}
outputBam: "The produced BAM file."
outputBamIndex: "The index of the produced BAM file."
}
}
struct BwaIndex {
File fastaFile
Array[File] indexFiles
...
...
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