-
Notifications
You must be signed in to change notification settings - Fork 78
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
Map transcript coordinates to genome coordinates #203
Comments
Interesting, I agree this would be useful, but such magic does not currently exist in this package! I think the first missing piece would be to handle splicing properly, I don't really have data structures in place for that so it wouldn't be trivial. If you do end up getting something working and can provide some example code, it would be great to include in gffutils. |
Thanks for getting in touch so quickly. For now I have this horrible implementation:
Using toy data from above:
One would need to fill in the source column, the attributes, strand, etc but that's relatively easy and it depends on context. |
I'd be really glad to have a clean |
I have the coordinates of domains mapped to transcripts so that the coordinates are relative to transcripts. Now I would like to transfer these transcript-coordinates to genome-coordinates. I wonder if there is some magic in gffutils that makes this reasonably easy. Hopefully an example will clarify:
Say my genome gff file contains this transcript with 3 exons:
Which would look like this as text ideogram:
I have a domain that in transcript coordinates start at position 7 and ends at position 10. So it would look like this:
I would like a function that given the transcript ID and the domain coordinates in transcript-space returns the coordinates in genome-space:
Before I bang my head on it, I wonder if an easy solution already exists. Thanks!
The text was updated successfully, but these errors were encountered: