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
1ea50377
Unverified
Commit
1ea50377
authored
5 years ago
by
Jasper Boom
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #160 from biowdl/BIOWDL-354
Update TALON to version 4.4
parents
452d7a50
c0cb0012
Branches
BIOWDL-450
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
scripts
+1
-1
1 addition, 1 deletion
scripts
talon.wdl
+280
-114
280 additions, 114 deletions
talon.wdl
with
282 additions
and
115 deletions
CHANGELOG.md
+
1
−
0
View file @
1ea50377
...
...
@@ -11,6 +11,7 @@ that users understand how the changes affect the new version.
version 2.1.0-dev
---------------------------
+
Updated TALON to version 4.4
+
Added parameter_meta sections to the following tools:
+
htseq
+
cutadapt
...
...
This diff is collapsed.
Click to expand it.
scripts
@
e00dc247
Compare
aa44abaa
...
e00dc247
Subproject commit
aa44abaa6b5d1e1cd0cbe175b4ebc72c7bb1eaa4
Subproject commit
e00dc247dac8f4aa91a77d6d307f928cc8449527
This diff is collapsed.
Click to expand it.
talon.wdl
+
280
−
114
View file @
1ea50377
...
...
@@ -23,28 +23,28 @@ version 1.0
task CreateAbundanceFileFromDatabase {
input {
File databaseFile
String outputPrefix
String genomeBuild
String annotationVersion
Boolean filterTranscripts = false
String genomeBuild
String outputPrefix
File? filterPairingsFile
File? whitelistFile
File? datasetsFile
Int cores = 1
String memory = "4G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
create
_abundance
_file_from_database
\
talon
_abundance \
~{"--db=" + databaseFile} \
~{"--o=" + outputPrefix} \
~{"-b " + genomeBuild} \
~{"-a " + annotationVersion} \
~{true="--filter" false="" filterTranscripts} \
~{"-p " + filterPairingsFile}
~{"-b " + genomeBuild} \
~{"--o=" + outputPrefix} \
~{"--whitelist=" + whitelistFile} \
~{"-d " + datasetsFile}
}
output {
...
...
@@ -58,47 +58,68 @@ task CreateAbundanceFileFromDatabase {
}
parameter_meta {
databaseFile: "TALON database."
outputPrefix: "Output directory path + output file prefix."
genomeBuild: "Genome build to use."
annotationVersion: "Which annotation version to use."
filterTranscripts: "The transcripts in the database will be filtered prior to GTF creation."
filterPairingsFile: "A file indicating which datasets should be considered together."
outputAbundanceFile: "Abundance for each transcript in the TALON database across datasets."
databaseFile: {
description: "TALON database.",
category: "required"
}
annotationVersion: {
description: "Which annotation version to use.",
category: "required"
}
genomeBuild: {
description: "Genome build to use.",
category: "required"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
whitelistFile: {
description: "Whitelist file of transcripts to include in the output.",
category: "advanced"
}
datasetsFile: {
description: "A file indicating which datasets should be included.",
category: "advanced"
}
outputAbundanceFile: {
description: "Abundance for each transcript in the TALON database across datasets.",
category: "required"
}
}
}
task CreateGtf
Abundance
FromDatabase {
task CreateGtfFromDatabase {
input {
File databaseFile
String outputPrefix
String genomeBuild
String annotationVersion
Boolean filterTranscripts = false
String outputPrefix
Boolean observedInDataset = false
File? filterPairingsFile
File? whitelistFile
File? datasetFile
Int cores = 1
String memory = "4G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
create_GTF
_abundance_from_database
\
talon_
create_GTF \
~{"--db=" + databaseFile} \
~{"--o=" + outputPrefix} \
~{"-b " + genomeBuild} \
~{"-a " + annotationVersion} \
~{true="--filter" false="" filterTranscripts} \
~{"-p " + filterPairingsFile}
~{"--o=" + outputPrefix} \
~{"--whitelist=" + whitelistFile} \
~{true="--observed" false="" observedInDataset} \
~{"-d " + datasetFile}
}
output {
File outputGTFfile = outputPrefix + "_talon_observedOnly.gtf"
File outputAbundanceFile = outputPrefix + "_talon_abundance.tsv"
File outputGTFfile = outputPrefix + "_talon.gtf"
}
runtime {
...
...
@@ -108,49 +129,66 @@ task CreateGtfAbundanceFromDatabase {
}
parameter_meta {
databaseFile: "TALON database."
outputPrefix: "Output directory path + output file prefix."
genomeBuild: "Genome build to use."
annotationVersion: "Which annotation version to use."
filterTranscripts: "The transcripts in the database will be filtered prior to GTF creation."
filterPairingsFile: "A file indicating which datasets should be considered together."
outputGTFfile: "The genes, transcripts, and exons stored a TALON database in GTF format."
outputAbundanceFile: "Abundance for each transcript in the TALON database across datasets."
databaseFile: {
description: "TALON database.",
category: "required"
}
genomeBuild: {
description: "Genome build to use.",
category: "required"
}
annotationVersion: {
description: "Which annotation version to use.",
category: "required"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
observedInDataset: {
description: "The output will only include transcripts that were observed at least once.",
category: "advanced"
}
whitelistFile: {
description: "Whitelist file of transcripts to include in the output.",
category: "advanced"
}
datasetFile: {
description: "A file indicating which datasets should be included.",
category: "advanced"
}
outputGTFfile: {
description: "The genes, transcripts, and exons stored a TALON database in GTF format.",
category: "required"
}
}
}
task
CreateGtfFromDatabase
{
task
FilterTalonTranscripts
{
input {
File databaseFile
String outputPrefix
String genomeBuild
String annotationVersion
Boolean observedInDataset = false
String outputPrefix
File? whitelistFile
File? datasetFile
File? pairingsFile
Int cores = 1
String memory = "4G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
create_GTF_from_database
\
talon_filter_transcripts
\
~{"--db=" + databaseFile} \
~{"--o=" + outputPrefix} \
~{"-b " + genomeBuild} \
~{"-a " + annotationVersion} \
~{"--whitelist=" + whitelistFile} \
~{true="--observed" false="" observedInDataset} \
~{"-d " + datasetFile}
~{"--o=" + outputPrefix + "_whitelist.csv"} \
~{"-p " + pairingsFile}
}
output {
File output
GTFfile
= outputPrefix + "_
talon.gtf
"
File output
TranscriptWhitelist
= outputPrefix + "_
whitelist.csv
"
}
runtime {
...
...
@@ -160,46 +198,110 @@ task CreateGtfFromDatabase {
}
parameter_meta {
databaseFile: "TALON database."
outputPrefix: "Output directory path + output file prefix."
genomeBuild: "Genome build to use."
annotationVersion: "Which annotation version to use."
observedInDataset: "Output only includes transcripts that were observed at least once."
whitelistFile: "Whitelist file of transcripts to include in the output."
datasetFile: "A file indicating which datasets should be included."
databaseFile: {
description: "TALON database.",
category: "required"
}
annotationVersion: {
description: "Which annotation version to use.",
category: "required"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
pairingsFile: {
description: "A file indicating which datasets should be considered together.",
category: "advanced"
}
}
}
task GetReadAnnotations {
input {
File databaseFile
String genomeBuild
String outputPrefix
outputGTFfile: "The genes, transcripts, and exons stored a TALON database in GTF format."
File? datasetFile
Int cores = 1
String memory = "4G"
String dockerImage = "biocontainers/talon:v4.4_cv1"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
talon_fetch_reads \
~{"--db " + databaseFile} \
~{"--build " + genomeBuild} \
~{"--o " + outputPrefix} \
~{"--datasets " + datasetFile}
}
output {
File outputAnnotation = outputPrefix + "_talon_read_annot.tsv"
}
runtime {
cpu: cores
memory: memory
docker: dockerImage
}
parameter_meta {
databaseFile: {
description: "TALON database.",
category: "required"
}
genomeBuild: {
description: "Genome build to use.",
category: "required"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
datasetFile: {
description: "A file indicating which datasets should be included.",
category: "advanced"
}
outputAnnotation: {
description: "Read-specific annotation information from a TALON database.",
category: "required"
}
}
}
task InitializeTalonDatabase {
input {
File GTFfile
String outputPrefix
String genomeBuild
String annotationVersion
Int minimumLength = 300
String novelIDprefix = "TALON"
Int cutoff5p = 500
Int cutoff3p = 300
String outputPrefix
Int cores = 1
String memory = "10G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
initialize_
talon_
database \
talon_
initialize_database \
~{"--f=" + GTFfile} \
~{"--o=" + outputPrefix} \
~{"--g=" + genomeBuild} \
~{"--a=" + annotationVersion} \
~{"--l=" + minimumLength} \
~{"--idprefix=" + novelIDprefix} \
~{"--5p=" + cutoff5p} \
~{"--3p=" + cutoff3p}
~{"--3p=" + cutoff3p} \
~{"--o=" + outputPrefix}
}
output {
...
...
@@ -213,41 +315,62 @@ task InitializeTalonDatabase {
}
parameter_meta {
GTFfile: "GTF annotation containing genes, transcripts, and edges."
outputPrefix: "Output directory path + output file prefix."
genomeBuild: "Name of genome build that the GTF file is based on (ie hg38)."
annotationVersion: "Name of supplied annotation (will be used to label data)."
minimumLength: "Minimum required transcript length."
novelIDprefix: "Prefix for naming novel discoveries in eventual TALON runs."
cutoff5p: "Maximum allowable distance (bp) at the 5' end during annotation."
cutoff3p: "Maximum allowable distance (bp) at the 3' end during annotation."
outputDatabase: "TALON database."
GTFfile: {
description: "GTF annotation containing genes, transcripts, and edges.",
category: "required"
}
genomeBuild: {
description: "Name of genome build that the GTF file is based on (ie hg38).",
category: "required"
}
annotationVersion: {
description: "Name of supplied annotation (will be used to label data).",
category: "required"
}
minimumLength: {
description: "Minimum required transcript length.",
category: "common"
}
novelIDprefix: {
description: "Prefix for naming novel discoveries in eventual TALON runs.",
category: "common"
}
cutoff5p: {
description: "Maximum allowable distance (bp) at the 5' end during annotation.",
category: "advanced"
}
cutoff3p: {
description: "Maximum allowable distance (bp) at the 3' end during annotation.",
category: "advanced"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
outputDatabase: {
description: "TALON database.",
category: "required"
}
}
}
task
MapAntisenseGenesToSense
{
task
ReformatGtf
{
input {
File databaseFile
String outputPrefix
String annotationVersion
File GTFfile
Int cores = 1
String memory = "4G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
map_antisense_genes_to_sense \
~{"--db=" + databaseFile} \
~{"--o=" + outputPrefix} \
~{"-a " + annotationVersion}
talon_reformat_gtf \
~{"-gtf " + GTFfile}
}
output {
File output
AntisenseMapFile = outputPrefix + "_antisense_mapping.gtf"
File output
ReformattedGTF = GTFfile
}
runtime {
...
...
@@ -257,31 +380,32 @@ task MapAntisenseGenesToSense {
}
parameter_meta {
databaseFile: "TALON database."
outputPrefix: "Output directory path + output file prefix."
annotationVersion: "Which annotation version to use."
outputAntisenseMapFile: "IDs of the sense gene for every antisense gene in the database."
GTFfile: {
description: "GTF annotation containing genes, transcripts, and edges.",
category: "required"
}
}
}
task SummarizeDatasets {
input {
File databaseFile
Boolean setVerbose = false
String outputPrefix
File? datasetGroupsCSV
Int cores = 1
String memory = "4G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
set -e
mkdir -p $(dirname ~{outputPrefix})
summarize
_datasets
\
talon_
summarize \
~{"--db " + databaseFile} \
~{true="--verbose" false="" setVerbose} \
~{"--o " + outputPrefix} \
~{"--groups " + datasetGroupsCSV}
}
...
...
@@ -297,11 +421,26 @@ task SummarizeDatasets {
}
parameter_meta {
databaseFile: "TALON database."
outputPrefix: "Output directory path + output file prefix."
datasetGroupsCSV: "File of comma-delimited dataset groups to process together."
outputSummaryFile: "Tab-delimited file of gene and transcript counts for each dataset."
databaseFile: {
description: "TALON database.",
category: "required"
}
setVerbose: {
description: "Print out the counts in terminal.",
category: "advanced"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
datasetGroupsCSV: {
description: "File of comma-delimited dataset groups to process together.",
category: "advanced"
}
outputSummaryFile: {
description: "Tab-delimited file of gene and transcript counts for each dataset.",
category: "required"
}
}
}
...
...
@@ -310,16 +449,16 @@ task Talon {
File SAMfile
File configFile
File databaseFile
String outputPrefix
String genomeBuild
String configFileName = basename(configFile)
String SAMfileName = basename(SAMfile)
Float minimumCoverage = 0.9
Int minimumIdentity = 0
String outputPrefix
String configFileName = basename(configFile)
String SAMfileName = basename(SAMfile)
Int cores = 1
String memory = "20G"
String dockerImage = "biocontainers/talon:v4.
2
_cv
2
"
String dockerImage = "biocontainers/talon:v4.
4
_cv
1
"
}
command {
...
...
@@ -330,10 +469,11 @@ task Talon {
talon \
~{"--f " + configFileName} \
~{"--db " + databaseFile} \
~{"--o " + outputPrefix} \
~{"--build " + genomeBuild} \
~{"--threads " + cores} \
~{"--cov " + minimumCoverage} \
~{"--identity " + minimumIdentity}
~{"--identity " + minimumIdentity} \
~{"--o " + outputPrefix}
}
output {
...
...
@@ -348,15 +488,41 @@ task Talon {
}
parameter_meta {
SAMfile: "Input SAM file, same one as described in configFile."
configFile: "Dataset config file."
databaseFile: "TALON database. Created using initialize_talon_database.py."
outputPrefix: "Output directory path + output file prefix."
genomeBuild: "Genome build (i.e. hg38) to use."
minimumCoverage: "Minimum alignment coverage in order to use a SAM entry."
minimumIdentity: "Minimum alignment identity in order to use a SAM entry."
outputUpdatedDatabase: "Updated TALON database."
outputLog: "Log file from TALON run."
SAMfile: {
description: "Input SAM file, same one as described in configFile.",
category: "required"
}
configFile: {
description: "Dataset config file (comma-delimited).",
category: "required"
}
databaseFile: {
description: "TALON database. Created using initialize_talon_database.py.",
category: "required"
}
genomeBuild: {
description: "Genome build (i.e. hg38) to use.",
category: "required"
}
minimumCoverage: {
description: "Minimum alignment coverage in order to use a SAM entry.",
category: "common"
}
minimumIdentity: {
description: "Minimum alignment identity in order to use a SAM entry.",
category: "common"
}
outputPrefix: {
description: "Output directory path + output file prefix.",
category: "required"
}
outputUpdatedDatabase: {
description: "Updated TALON database.",
category: "required"
}
outputLog: {
description: "Log file from TALON run.",
category: "required"
}
}
}
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