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
8bb2dc43
Commit
8bb2dc43
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
star to 1.0
parent
a77e313b
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
star.wdl
+36
-31
36 additions, 31 deletions
star.wdl
with
36 additions
and
31 deletions
star.wdl
+
36
−
31
View file @
8bb2dc43
version 1.0
task Star {
task Star {
String? preCommand
input {
String? preCommand
Array[File] inputR1
Array[File] inputR1
Array[File]? inputR2
Array[File]? inputR2
String genomeDir
String genomeDir
String outFileNamePrefix
String outFileNamePrefix
String? outSAMtype
String? outSAMtype
String? readFilesCommand
String? readFilesCommand
Int? runThreadN
Int? runThreadN
String? outStd
String? outStd
String? twopassMode
String? twopassMode
Array[String]? outSAMattrRGline
Array[String]? outSAMattrRGline
Int? limitBAMsortRAM
Int? limitBAMsortRAM
Int? memory
Int? memory
}
#TODO needs to be extended for all possible output extensions
#TODO needs to be extended for all possible output extensions
Map[String, String] samOutputNames = {"BAM SortedByCoordinate": "sortedByCoord.out.bam"}
Map[String, String] samOutputNames = {"BAM SortedByCoordinate": "sortedByCoord.out.bam"}
...
@@ -24,19 +28,19 @@ task Star {
...
@@ -24,19 +28,19 @@ task Star {
command {
command {
set -e -o pipefail
set -e -o pipefail
mkdir -p
$
{sub(outFileNamePrefix, basename(outFileNamePrefix) + "$", "")}
mkdir -p
~
{sub(outFileNamePrefix, basename(outFileNamePrefix) + "$", "")}
$
{preCommand}
~
{preCommand}
STAR \
STAR \
--readFilesIn
$
{sep=',' inputR1}
$
{sep="," inputR2} \
--readFilesIn
~
{sep=',' inputR1}
~
{sep="," inputR2} \
--outFileNamePrefix
$
{outFileNamePrefix} \
--outFileNamePrefix
~
{outFileNamePrefix} \
--genomeDir
$
{genomeDir} \
--genomeDir
~
{genomeDir} \
--outSAMtype
$
{default="BAM SortedByCoordinate" outSAMtype} \
--outSAMtype
~
{default="BAM SortedByCoordinate" outSAMtype} \
--readFilesCommand
$
{default="zcat" readFilesCommand} \
--readFilesCommand
~
{default="zcat" readFilesCommand} \
$
{"--runThreadN " + runThreadN} \
~
{"--runThreadN " + runThreadN} \
$
{"--outStd " + outStd} \
~
{"--outStd " + outStd} \
$
{"--twopassMode " + twopassMode} \
~
{"--twopassMode " + twopassMode} \
$
{"--limitBAMsortRAM " + limitBAMsortRAM} \
~
{"--limitBAMsortRAM " + limitBAMsortRAM} \
$
{true="--outSAMattrRGline " false="" defined(outSAMattrRGline)}
$
{sep=" , " outSAMattrRGline}
~
{true="--outSAMattrRGline " false="" defined(outSAMattrRGline)}
~
{sep=" , " outSAMattrRGline}
}
}
output {
output {
...
@@ -50,13 +54,14 @@ task Star {
...
@@ -50,13 +54,14 @@ task Star {
}
}
task makeStarRGline {
task makeStarRGline {
String sample
input {
String library
String sample
String? platform
String library
String readgroup
String? platform
String readgroup
}
command {
command {
printf '"ID:
$
{readgroup}" "LB:
$
{library}" "PL:
$
{default="ILLUMINA" platform}" "SM:
$
{sample}"'
printf '"ID:
~
{readgroup}" "LB:
~
{library}" "PL:
~
{default="ILLUMINA" platform}" "SM:
~
{sample}"'
}
}
output {
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