-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readTranscriptFeatures with GTF #192
Comments
Hi @igordot ,
Hope it helps, |
My concern with that approach is that it gives you different results than the BED file. I assume "chr21.refseq.hg19.bed" and "chr21.refseq.hg19.gtf" should be comparable. |
I am not sure what exactly are you asking me about. Are you asking me why a gtf and a bed file look differently? There are two different file formats, but they should be comparable, I don't know the details. If you are interested in annotating your regions of interest with exons, introns, and promoters (output regions of |
I understand that the BED and GTF files are different. I wanted to see if there was a way to achieve the same annotation results from both. It sounds like it is possible, but requires a few extra steps, such as |
I think following Kasia's suggestion would work. I personally do not have
the code to do that. But the idea is you need to re-create a GRangesList
object returned by the readTranscriptFeatures() using a bed file. You need
to parse the GTF with the rtracklayer and/or genomicFeatures package
functions. Extract exon, intron and promoter coordinates and arrange them
in a GRangesList object that is similar to the object returned by our own
function.
Best,
Altuna
…On Mon, Jun 15, 2020 at 7:11 PM igor ***@***.***> wrote:
I understand that the BED and GTF files are different. I wanted to see if
there was a way to achieve the same annotation results from both.
It sounds like it is possible, but requires a few extra steps, such as
rtracklayer::exonsBy and rtracklayer::intronsByTranscript.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE32EP52VQEL72QV54OSXLRWZI33ANCNFSM4N22SQPQ>
.
|
Thanks for clarifying. I was hoping all or some parts were already included in the package. It would be a nice feature to have. |
readTranscriptFeatures()
reads a BED file. Gene features are commonly stored as a GTF file. Is there a way to import a GTF file in the proper format forannotateWithGeneParts()
? There is a convenientgffToGRanges()
function, but you still need to convert the resulting GRanges object to a GRangesList. Is there already a function for that?The text was updated successfully, but these errors were encountered: