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
5db2a1f9
Commit
5db2a1f9
authored
4 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
add markdup task
parent
ddae5764
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sambamba.wdl
+43
-0
43 additions, 0 deletions
sambamba.wdl
with
43 additions
and
0 deletions
sambamba.wdl
+
43
−
0
View file @
5db2a1f9
...
...
@@ -20,6 +20,49 @@ version 1.0
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
task Markdup {
input {
Array[File] inputBams
String outputPath
Int threads = 1
Int compressionLevel = 1
Int? hashTableSize
Int? overFlowListSize
Int? sortBufferSize
Int? ioBufferSize
Boolean removeDuplicates = false
# According to the manual sambamba markdup uses about 2G per 100 million reads.
Int memoryGb = 1 + ceil(size(inputBams, 'G') / 8)
String dockerImage = "quay.io/biocontainers/sambamba:0.7.1--h148d290_2"
Int timeMinutes = 1 + ceil(size(inputBams, "G") * 8)
}
String bamIndexPath = sub(outputPath, "\.bam$", ".bai")
command {
set -e
mkdir -p "$(dirname ~{outputPath})"
sambamba markdup \
--nthreads ~{threads} \
-l ~{compressionLevel} \
~{true="-r" false="" removeDuplicates} \
~{"--hash-table-size " + hashTableSize} \
~{"--overflow-list-size " + overFlowListSize} \
~{"--sort-buffer-size " + sortBufferSize} \
~{"--io-buffer-size " + ioBufferSize} \
~{sep=' ' inputBams} ~{outputPath}
sambamba index ~{outputPath} ~{bamIndexPath}
}
runtime {
memory: "~{memoryGb}G"
cpu: threads
time_minutes: timeMinutes
docker: dockerImage
}
}
task Sort {
input {
File inputBam
...
...
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