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
bd611a3b
Unverified
Commit
bd611a3b
authored
6 years ago
by
Peter van 't Hof
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into mergeCounts
parents
8a800556
fddfd687
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
add merge counts
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
biopet.wdl
+57
-0
57 additions, 0 deletions
biopet.wdl
htseq.wdl
+25
-0
25 additions, 0 deletions
htseq.wdl
stringtie.wdl
+33
-0
33 additions, 0 deletions
stringtie.wdl
with
115 additions
and
0 deletions
biopet.wdl
+
57
−
0
View file @
bd611a3b
...
...
@@ -78,3 +78,60 @@ task SampleConfig {
Object values = if (defined(tsvOutput) && size(tsvOutput) > 0) then read_map(tsvOutput) else { "": "" }
}
}
task BaseCounter {
String? preCommand
String tool_jar #Should this be of type File?
File bam
File refFlat
String outputDir
String prefix
command {
set -e -o pipefail
${preCommand}
mkdir -p ${outputDir}
java -jar ${tool_jar} \
-b ${bam} \
-r ${refFlat} \
-o ${outputDir} \
-p ${prefix}
}
output {
File exonAntisense = outputDir + "/" + prefix + ".base.exon.antisense.counts"
File exon = outputDir + "/" + prefix + ".base.exon.counts"
File exonMergeAntisense = outputDir + "/" + prefix + ".base.exon.merge.antisense.counts"
File exonMerge = outputDir + "/" + prefix + ".base.exon.merge.counts"
File exonMergeSense = outputDir + "/" + prefix + ".base.exon.merge.sense.counts"
File exonSense = outputDir + "/" + prefix + ".base.exon.sense.counts"
File geneAntisense = outputDir + "/" + prefix + ".base.gene.antisense.counts"
File gene = outputDir + "/" + prefix + ".base.gene.counts"
File geneExonicAntisense = outputDir + "/" + prefix + ".base.gene.exonic.antisense.counts"
File geneExonic = outputDir + "/" + prefix + ".base.gene.exonic.counts"
File geneExonicSense = outputDir + "/" + prefix + ".base.gene.exonic.sense.counts"
File geneIntronicAntisense = outputDir + "/" + prefix + ".base.gene.intronic.antisense.counts"
File geneIntronic = outputDir + "/" + prefix + ".base.gene.intronic.counts"
File geneIntronicSense = outputDir + "/" + prefix + ".base.gene.intronic.sense.counts"
File geneSense = outputDir + "/" + prefix + ".base.gene.sense.counts"
File intronAntisense = outputDir + "/" + prefix + ".base.intron.antisense.counts"
File intron = outputDir + "/" + prefix + ".base.intron.counts"
File intronMergeAntisense = outputDir + "/" + prefix + ".base.intron.merge.antisense.counts"
File intronMerge = outputDir + "/" + prefix + ".base.intron.merge.counts"
File intronMergeSense = outputDir + "/" + prefix + ".base.intron.merge.sense.counts"
File intronSense = outputDir + "/" + prefix + ".base.intron.sense.counts"
File metaExonsNonStranded = outputDir + "/" + prefix + ".base.metaexons.non_stranded.counts"
File metaExonsStrandedAntisense = outputDir + "/" + prefix + ".base.metaexons.stranded.antisense.counts"
File metaExonsStranded = outputDir + "/" + prefix + ".base.metaexons.stranded.counts"
File metaExonsStrandedSense = outputDir + "/" + prefix + ".base.metaexons.stranded.sense.counts"
File transcriptAntisense = outputDir + "/" + prefix + ".base.transcript.antisense.counts"
File transcript = outputDir + "/" + prefix + ".base.transcript.counts"
File transcriptExonicAntisense = outputDir + "/" + prefix + ".base.transcript.exonic.antisense.counts"
File transcriptExonic = outputDir + "/" + prefix + ".base.transcript.exonic.counts"
File transcriptExonicSense = outputDir + "/" + prefix + ".base.transcript.exonic.sense.counts"
File transcriptIntronicAntisense = outputDir + "/" + prefix + ".base.transcript.intronic.antisense.counts"
File transcriptIntronic = outputDir + "/" + prefix + ".base.transcript.intronic.counts"
File transcriptIntronicSense = outputDir + "/" + prefix + ".base.transcript.intronic.sense.counts"
File transcriptSense = outputDir + "/" + prefix + ".base.transcript.sense.counts"
}
}
This diff is collapsed.
Click to expand it.
htseq.wdl
0 → 100644
+
25
−
0
View file @
bd611a3b
task HTSeqCount {
String? preCommand
Array[File] alignmentFiles
File gffFile
String outputTable
String? format
String? order
String? stranded
command {
set -e -o pipefail
${preCommand}
htseq-count \
-f ${default="bam" format} \
-r ${default="pos" order} \
-s ${default="no" stranded} \
${sep=" " alignmentFiles} \
${gffFile} \
> ${outputTable}
}
output {
File counts = outputTable
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
stringtie.wdl
0 → 100644
+
33
−
0
View file @
bd611a3b
task Stringtie {
String? preCommand
File alignedReads
File? referenceGFF
Int? threads
String assembledTranscriptsFile
Boolean? firstStranded
Boolean? secondStranded
String? geneAbundanceFile
command {
set -e -o pipefail
${preCommand}
stringtie \
${"-p " + threads} \
${"-G " + referenceGFF} \
${true="--rf" false="" firstStranded} \
${true="fr" false="" secondStranded} \
-o ${assembledTranscriptsFile} \
${"-A " + geneAbundanceFile} \
${alignedReads} \
}
output {
File assembledTranscripts = assembledTranscriptsFile
File? geneAbundance = geneAbundanceFile
}
runtime {
threads: threads
}
}
\ 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