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
3c7c7a38
Commit
3c7c7a38
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
samtools to 1.0
parent
6b79eb1d
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
samtools.wdl
+82
-70
82 additions, 70 deletions
samtools.wdl
with
82 additions
and
70 deletions
samtools.wdl
+
82
−
70
View file @
3c7c7a38
task Index {
String? preCommand
File bamFilePath
String? bamIndexPath
version 1.0
task Index {
input {
String? preCommand
File bamFilePath
String? bamIndexPath
}
command {
set -e -o pipefail
$
{preCommand}
samtools index
$
{bamFilePath}
$
{bamIndexPath}
~
{preCommand}
samtools index
~
{bamFilePath}
~
{bamIndexPath}
}
output {
...
...
@@ -15,14 +18,15 @@ task Index {
}
task Merge {
String? preCommand
Array[File]+ bamFiles
String outputBamPath
input {
String? preCommand
Array[File]+ bamFiles
String outputBamPath
}
command {
set -e -o pipefail
$
{preCommand}
samtools merge
$
{outputBamPath}
$
{sep=' ' bamFiles}
~
{preCommand}
samtools merge
~
{outputBamPath}
~
{sep=' ' bamFiles}
}
output {
...
...
@@ -31,14 +35,16 @@ task Merge {
}
task Markdup {
String? preCommand
File inputBam
String outputBamPath
input {
String? preCommand
File inputBam
String outputBamPath
}
command {
set -e -o pipefail
$
{preCommand}
samtools markdup
$
{inputBam}
$
{outputBamPath}
~
{preCommand}
samtools markdup
~
{inputBam}
~
{outputBamPath}
}
output {
...
...
@@ -47,15 +53,17 @@ task Markdup {
}
task Flagstat {
String? preCommand
File inputBam
String outputPath
input {
String? preCommand
File inputBam
String outputPath
}
command {
set -e -o pipefail
$
{preCommand}
mkdir -p $(dirname
$
{outputPath})
samtools flagstat
$
{inputBam} >
$
{outputPath}
~
{preCommand}
mkdir -p $(dirname
~
{outputPath})
samtools flagstat
~
{inputBam} >
~
{outputPath}
}
output {
...
...
@@ -64,35 +72,37 @@ task Flagstat {
}
task fastq {
String? preCommand
File inputBam
String outputRead1
String? outputRead2
String? outputRead0
Int? includeFilter
Int? excludeFilter
Int? excludeSpecificFilter
Boolean? appendReadNumber
Boolean? outputQuality
Int? compressionLevel
Int? threads
Int? memory
Int totalThreads = select_first([threads, 1])
input {
String? preCommand
File inputBam
String outputRead1
String? outputRead2
String? outputRead0
Int? includeFilter
Int? excludeFilter
Int? excludeSpecificFilter
Boolean? appendReadNumber
Boolean? outputQuality
Int? compressionLevel
Int? threads
Int? memory
Int totalThreads = select_first([threads, 1])
}
command {
$
{preCommand}
~
{preCommand}
samtools fastq \
$
{true="-1" false="-s" defined(outputRead2)}
$
{outputRead1} \
$
{"-2 " + outputRead2} \
$
{"-0 " + outputRead0} \
$
{"-f " + includeFilter} \
$
{"-F " + excludeFilter} \
$
{"-G " + excludeSpecificFilter} \
$
{true="-N" false="-n" appendReadNumber} \
$
{true="-O" false="" outputQuality} \
$
{"-c " + compressionLevel} \
$
{"--threads " + totalThreads} \
$
{inputBam}
~
{true="-1" false="-s" defined(outputRead2)}
~
{outputRead1} \
~
{"-2 " + outputRead2} \
~
{"-0 " + outputRead0} \
~
{"-f " + includeFilter} \
~
{"-F " + excludeFilter} \
~
{"-G " + excludeSpecificFilter} \
~
{true="-N" false="-n" appendReadNumber} \
~
{true="-O" false="" outputQuality} \
~
{"-c " + compressionLevel} \
~
{"--threads " + totalThreads} \
~
{inputBam}
}
output {
File read1 = outputRead1
...
...
@@ -116,31 +126,33 @@ task fastq {
}
task view {
String? preCommand
File inFile
File? referenceFasta
String outputFileName
Boolean? outputBam
Boolean? uncompressedBamOutput
Int? includeFilter
Int? excludeFilter
Int? excludeSpecificFilter
Int? threads
Int? memory
input {
String? preCommand
File inFile
File? referenceFasta
String outputFileName
Boolean? outputBam
Boolean? uncompressedBamOutput
Int? includeFilter
Int? excludeFilter
Int? excludeSpecificFilter
Int? threads
Int? memory
}
command {
set -e -o pipefail
$
{preCommand}
~
{preCommand}
samtools view \
$
{"-T " + referenceFasta} \
$
{"-o " + outputFileName} \
$
{true="-b " false="" outputBam} \
$
{true="-u " false="" uncompressedBamOutput} \
$
{"-f " + includeFilter} \
$
{"-F " + excludeFilter} \
$
{"-G " + excludeSpecificFilter} \
$
{"--threads " + threads - 1} \
$
{inFile}
~
{"-T " + referenceFasta} \
~
{"-o " + outputFileName} \
~
{true="-b " false="" outputBam} \
~
{true="-u " false="" uncompressedBamOutput} \
~
{"-f " + includeFilter} \
~
{"-F " + excludeFilter} \
~
{"-G " + excludeSpecificFilter} \
~
{"--threads " + threads - 1} \
~
{inFile}
}
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