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
85cdcf20
Commit
85cdcf20
authored
7 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
remove pipeline specific command from samtools.wdl
parent
05a55103
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
+1
-1
1 addition, 1 deletion
bwa.wdl
samtools.wdl
+0
-28
0 additions, 28 deletions
samtools.wdl
with
1 addition
and
29 deletions
bwa.wdl
+
1
−
1
View file @
85cdcf20
...
...
@@ -83,7 +83,7 @@ task mem {
INPUT=/dev/stdin OUTPUT=${outputFile}
}
output {
File
sam
File = select_first([outputFile])
File
aligned
File = select_first([outputFile])
}
runtime {
cpu: select_first([threads])
...
...
This diff is collapsed.
Click to expand it.
samtools.wdl
+
0
−
28
View file @
85cdcf20
task getContigMostCoverage {
String? preCommand
File bamFile
String? outputFilePath = "mostCoveredContig.bam"
command <<<
set -e -o pipefail
${preCommand}
samtools view -hb wgs1.bam $( \
samtools idxstats wgs1.bam \
| grep -ve "^\*" \
| awk '{ print $1"\t"($3/$2)}' \
| sort -rnk2 \
| head -n 1 \
| cut -f1) \
> ${outputFilePath}
samtools index ${outputFilePath}
>>>
output {
File contig = outputFilePath
}
parameter_meta {
preCommand: "This command is run before running the samtools command. Can be used to set up environments such as conda."
bamFile: "Must be a sorted BAM file with an index"
outputFilePath: "where the output file is stored"
}
}
\ No newline at end of file
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