Skip to content
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

Adding an RNA sequence class? #29

Open
kathyxchen opened this issue Apr 25, 2018 · 1 comment
Open

Adding an RNA sequence class? #29

kathyxchen opened this issue Apr 25, 2018 · 1 comment
Labels

Comments

@kathyxchen
Copy link
Collaborator

kathyxchen commented Apr 25, 2018

This is something I'd like to consider implementing, in the hopes that it would be used in one of the examples for the paper. It might not be necessary, but I do want to discuss it. @evancofer what do you think we'd need to train a model on RNA data? Only w.r.t a potential RNA Sequence class for now. (When you have coordinates data, do you also get the full sequence from a FASTA file?)

@evancofer
Copy link
Collaborator

This differs slightly depending on whether we want mRNA, pre-mRNA, and so on. However, as long as we use transcript or gene coordinates, things are simple. If we want mRNAs then the simplest solution is to just use a distinct FASTA file that just lists transcripts with "transcript" instead of "chrom", and uses coordinates within the transcript. This doesn't really require altering the genome type significantly. If we wanted pre-mRNA, we just include intronic regions in the FASTA file of genes.

The real difficulty occurs when we want to use genomic coordinates and not just gene coordinates. In this case, we have to keep the gene definitions as well as the genome in memory. We then transform the genomic coordinates into gene coordinates on the fly. This seems like it would require a fast coordinate or interval map, so that we can randomly access a coordinate or region and pull out the gene definition required.

@kathyxchen kathyxchen changed the title Add RNA sequence class Adding an RNA sequence class? May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants