GTF to Refflat tool for use with CollectRnaSeqMetrics
See original GitHub issueSince most folks use GTFs for RNASeq, but CollectRnaSeqMetrics
uses a refflat file, it would be nice to have a tool that can convert GTF to refflat, and then we can update CollectRnaSeqMetrics
to take in either a refflat or GTF file.
This an example method (requires Jim Kent’s tools):
gtfToGenePred \
-genePredExt \
-geneNameAsName2 \
-ignoreGroupsWithoutExons \
!{params.gtf} \
/dev/stdout | \
awk 'BEGIN { OFS="\t"} {print $12, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10}'
Also, it wouldn’t be hard to pull out the records with gene_type
equal to rRNA
to create the requisite ribosomal intervals.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to convert GTF to RefFlat? - SEQanswers
So now I would like to convert GTF to RefFlat format. There is, apparently, a tool called gtfToGenePred which is supposed to do...
Read more >Picard CollectRnaSeqMetrics error - Biostars
I have a gtf file which is downloaded from http://genome.ucsc.edu/cgi-bin/hgTables. I use this as refFlat. head of gtf: 1 hg19_refFlat exon 11874 12227...
Read more >CollectRnaSeqMetrics (Picard) - GATK - Broad Institute
This tool takes a SAM/BAM file containing the aligned reads from an RNAseq ... For an example refFlat file for GRCh38, see refFlat.txt.gz...
Read more >GtftoRefflat
Manual. GtftoRefflat converts a GTF file to a refflat file. It can optionally use a reference FASTA file to check if all contigs...
Read more >Picard 'CollectRnaSeqMetrics' run on hg19 Tophat BAM in ...
Support for GTF and GFF3 have been merged just a while ago (https://github.com/galaxyproject/tools-devteam/pull/395).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sooheelee yes, making
CollectRnaSeqMetrics
accept a refflat file would be great; I think I mentioned that above: “then we can update CollectRnaSeqMetrics to take in either a refflat or GTF file.” Nonetheless, if we are going to support a GTF as input toCollectRnaSeqMetrics
, then 95% of the work would be done, and we could also have a really useful tool.Why not just make CollectRnaSeqMetrics accept a GTF?