Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: convert gtf to gene pred output (#477)
* Allow to convert output depending on param * Added conversion check Co-authored-by: Johannes Köster <johannes.koester@uni-due.de> * Fixed default conversion Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
- Loading branch information
1 parent
42696c2
commit 4672e5b
Showing
5 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
name: gtfToGenePred | ||
description: | | ||
Convert a GTF file to genePred format (see https://genome.ucsc.edu/FAQ/FAQformat.html#format9) | ||
url: https://hgdownload.cse.ucsc.edu/admin/exe/ | ||
authors: | ||
- Brett Copeland | ||
- Filipe G. Vieira | ||
input: | ||
- GTF file | ||
output: | ||
- genePred table | ||
notes: | | ||
* The `extra` param allows for additional program arguments. | ||
* The `convert_out` param allows to apply some conversions to the `refFlat` output. For example, if set to `PicardCollectRnaSeqMetrics` it makes it compatible with `Picard CollectRnaSeqMetrics` (this one also requires `extra` to be set to `-genePredExt -geneNameAsName2`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
rule gtfToGenePred: | ||
input: | ||
# annotations containing gene, transcript, exon, etc. data in GTF format | ||
"annotation.gtf" | ||
"annotation.gtf", | ||
output: | ||
"annotation.genePred" | ||
"annotation.genePred", | ||
log: | ||
"logs/gtfToGenePred.log" | ||
"logs/gtfToGenePred.log", | ||
params: | ||
extra="-genePredExt" # optional parameters to pass to gtfToGenePred | ||
extra="-genePredExt", # optional parameters to pass to gtfToGenePred | ||
wrapper: | ||
"master/bio/ucsc/gtfToGenePred" | ||
|
||
|
||
rule gtfToGenePred_CollectRnaSeqMetrics: | ||
input: | ||
# annotations containing gene, transcript, exon, etc. data in GTF format | ||
"annotation.gtf", | ||
output: | ||
"annotation.PicardCollectRnaSeqMetrics.genePred", | ||
log: | ||
"logs/gtfToGenePred.PicardCollectRnaSeqMetrics.log", | ||
params: | ||
convert_out="PicardCollectRnaSeqMetrics", | ||
extra="-genePredExt -geneNameAsName2", # optional parameters to pass to gtfToGenePred | ||
wrapper: | ||
"master/bio/ucsc/gtfToGenePred" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters