question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GTF to Refflat tool for use with CollectRnaSeqMetrics

See original GitHub issue

Since 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:open
  • Created 6 years ago
  • Reactions:4
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nh13commented, Apr 27, 2017

@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 to CollectRnaSeqMetrics, then 95% of the work would be done, and we could also have a really useful tool.

1reaction
sooheeleecommented, Apr 27, 2017

Why not just make CollectRnaSeqMetrics accept a GTF?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found