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
457f64ce
Unverified
Commit
457f64ce
authored
2 years ago
by
Ruben Vorderman
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #310 from biowdl/BIOWDL-602
Add target file input to samtools view
parents
e1abb7dc
90580dc0
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
+2
-0
2 additions, 0 deletions
CHANGELOG.md
samtools.wdl
+13
-10
13 additions, 10 deletions
samtools.wdl
with
15 additions
and
10 deletions
CHANGELOG.md
+
2
−
0
View file @
457f64ce
...
...
@@ -9,6 +9,8 @@ that users understand how the changes affect the new version.
-->
version 5.1.0-dev
---------------------------
+
Update samtools image to version 1.16.
+
Add targetsFile input for samtools View.
+
Mateclever's runtime attribute defaults were changed to:
+
memory:
`"250GiB"`
+
timeMinutes:
`2880`
...
...
This diff is collapsed.
Click to expand it.
samtools.wdl
+
13
−
10
View file @
457f64ce
...
...
@@ -72,7 +72,7 @@ task DictAndFaidx {
String javaXmx = "2G"
String memory = "3GiB"
Int timeMinutes = 5 + ceil(size(inputFile, "GiB") * 5)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
String outputFile = basename(inputFile)
...
...
@@ -119,7 +119,7 @@ task Faidx {
String outputDir
String memory = "2GiB"
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
command {
...
...
@@ -168,7 +168,7 @@ task Fastq {
Int threads = 1
String memory = "1GiB"
Int timeMinutes = 1 + ceil(size(inputBam) * 2)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
command {
...
...
@@ -232,7 +232,7 @@ task FilterShortReadsBam {
String memory = "1GiB"
Int timeMinutes = 1 + ceil(size(bamFile, "GiB") * 8)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
String outputPathBamIndex = sub(outputPathBam, "\.bam$", ".bai")
...
...
@@ -278,7 +278,7 @@ task Flagstat {
String memory = "256MiB" # Only 40.5 MiB used for 150G bam file.
Int timeMinutes = 1 + ceil(size(inputBam, "G"))
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
command {
...
...
@@ -318,7 +318,7 @@ task Index {
String memory = "2GiB"
Int timeMinutes = 1 + ceil(size(bamFile, "GiB") * 4)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
# Select_first is needed, otherwise womtool validate fails.
...
...
@@ -369,7 +369,7 @@ task Markdup {
String outputBamPath
Int timeMinutes = 1 + ceil(size(inputBam, "GiB") * 2)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
command {
...
...
@@ -408,7 +408,7 @@ task Merge {
Int threads = 1
String memory = "4GiB"
Int timeMinutes = 1 + ceil(size(bamFiles, "GiB") * 2)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
String indexPath = sub(outputBamPath, "\.bam$",".bai")
...
...
@@ -463,7 +463,7 @@ task Sort {
Int threads = 1
Int memoryGb = 1 + threads * memoryPerThreadGb
Int timeMinutes = 1 + ceil(size(inputBam, "GiB") * 3)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
# Select first needed as outputPath is optional input (bug in cromwell).
...
...
@@ -571,11 +571,12 @@ task View {
Int? excludeFilter
Int? excludeSpecificFilter
Int? MAPQthreshold
File? targetFile
Int threads = 1
String memory = "1GiB"
Int timeMinutes = 1 + ceil(size(inFile, "GiB") * 5)
String dockerImage = "quay.io/biocontainers/samtools:1.11--h6
270b1f_0
"
String dockerImage = "quay.io/biocontainers/samtools:1.1
6.
1--h6
899075_1
"
}
String outputIndexPath = basename(outputFileName) + ".bai"
...
...
@@ -593,6 +594,7 @@ task View {
~{"-G " + excludeSpecificFilter} \
~{"-q " + MAPQthreshold} \
~{"--threads " + (threads - 1)} \
~{"--target-file " + targetFile} \
~{inFile}
samtools index ~{outputFileName} ~{outputIndexPath}
}
...
...
@@ -619,6 +621,7 @@ task View {
excludeFilter: {description: "Equivalent to samtools view's `-F` option.", category: "advanced"}
excludeSpecificFilter: {description: "Equivalent to samtools view's `-G` option.", category: "advanced"}
MAPQthreshold: {description: "Equivalent to samtools view's `-q` option.", category: "advanced"}
targetFile: {description: "A BED file with regions to include", caegory: "advanced"}
threads: {description: "The number of threads to use.", category: "advanced"}
memory: {description: "The amount of memory this job will use.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
...
...
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