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
39cbad54
Commit
39cbad54
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
fastqc to 1.0
parent
e286ef66
No related branches found
No related tags found
1 merge request
!34
Move all files to version 1.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fastqc.wdl
+43
-38
43 additions, 38 deletions
fastqc.wdl
with
43 additions
and
38 deletions
fastqc.wdl
+
43
−
38
View file @
39cbad54
version 1.0
task fastqc {
task fastqc {
File seqFile
input {
String outdirPath
File seqFile
String? preCommand
String outdirPath
Boolean? casava
String? preCommand
Boolean? nano
Boolean? casava
Boolean? noFilter
Boolean? nano
Boolean? extract = true
Boolean? noFilter
Boolean? nogroup
Boolean? extract = true
Int? minLength
Boolean? nogroup
String? format
Int? minLength
Int? threads = 1
String? format
File? contaminants
Int? threads = 1
File? adapters
File? contaminants
File? limits
File? adapters
Int? kmers
File? limits
String? dir
Int? kmers
String? dir
}
# Chops of the .gz extension if present.
# Chops of the .gz extension if present.
String name = sub(seqFile, "\\.gz$","")
String name = sub(seqFile, "\\.gz$","")
# This regex chops of the extension and replaces it with _fastqc for the reportdir.
# This regex chops of the extension and replaces it with _fastqc for the reportdir.
...
@@ -22,24 +26,24 @@ task fastqc {
...
@@ -22,24 +26,24 @@ task fastqc {
String reportDir = outdirPath + "/" + sub(basename(name), "\\.[^\\.]*$", "_fastqc")
String reportDir = outdirPath + "/" + sub(basename(name), "\\.[^\\.]*$", "_fastqc")
command {
command {
set -e -o pipefail
set -e -o pipefail
$
{preCommand}
~
{preCommand}
mkdir -p
$
{outdirPath}
mkdir -p
~
{outdirPath}
fastqc \
fastqc \
$
{"--outdir " + outdirPath} \
~
{"--outdir " + outdirPath} \
$
{true="--casava" false="" casava} \
~
{true="--casava" false="" casava} \
$
{true="--nano" false="" nano} \
~
{true="--nano" false="" nano} \
$
{true="--nofilter" false="" noFilter} \
~
{true="--nofilter" false="" noFilter} \
$
{true="--extract" false="" extract} \
~
{true="--extract" false="" extract} \
$
{true="--nogroup" false="" nogroup} \
~
{true="--nogroup" false="" nogroup} \
$
{"--min_length " + minLength } \
~
{"--min_length " + minLength } \
$
{"--format " + format} \
~
{"--format " + format} \
$
{"--threads " + threads} \
~
{"--threads " + threads} \
$
{"--contaminants " + contaminants} \
~
{"--contaminants " + contaminants} \
$
{"--adapters " + adapters} \
~
{"--adapters " + adapters} \
$
{"--limits " + limits} \
~
{"--limits " + limits} \
$
{"--kmers " + kmers} \
~
{"--kmers " + kmers} \
$
{"--dir " + dir} \
~
{"--dir " + dir} \
$
{seqFile}
~
{seqFile}
}
}
...
@@ -56,13 +60,14 @@ task fastqc {
...
@@ -56,13 +60,14 @@ task fastqc {
}
}
task getConfiguration {
task getConfiguration {
String? preCommand
input {
String? fastqcDirFile = "fastqcDir.txt"
String? preCommand
String? fastqcDirFile = "fastqcDir.txt"
}
command {
command {
set -e -o pipefail
set -e -o pipefail
$
{preCommand}
~
{preCommand}
echo $(dirname $(readlink -f $(which fastqc))) >
$
{fastqcDirFile}
echo $(dirname $(readlink -f $(which fastqc))) >
~
{fastqcDirFile}
}
}
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