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

Is genome assembly important enough to become first class citizen? #20

Open
HenrikBengtsson opened this issue May 8, 2015 · 0 comments

Comments

@HenrikBengtsson
Copy link
Owner

When it comes to annotation data, in addition to a formal organism label, should the genome assembly label becomes a first class citizen, e.g.

annotationData/organisms/Homo_sapiens/GRCh36/
annotationData/organisms/Homo_sapiens/GRCh37/
annotationData/organisms/Homo_sapiens/GRCh38/
annotationData/organisms/Mus_musculus/GRCm37/
annotationData/organisms/Mus_musculus/GRCm38/

? Then one could lookup annotation data as:

fa <- FastaReferenceFile(organism="Homo_sapiens", assembly="GRCh38")

Note that it should be allowed to have tags in assembly directory names, e.g.

annotationData/organisms/Homo_sapiens/GRCh37,hg19/

and still have the above lookup find it. It's only the GRC label that needs to be unique.

It might be that one has multiple sub alternatives, e.g.

annotationData/organisms/Homo_sapiens/GRCh37,hg19/Ensembl/71/
annotationData/organisms/Homo_sapiens/GRCh37,hg19/Ensembl/75/

Then the following request is ambigous (unless one defines some unique ordering and picks the "most recent" one:

gtf <- GtfDataFile(organism="Homo_sapiens", assembly="GRCh37")
# Or equivalently
gtf <- GtfDataFile(organism=organism(fa), assembly=assembly(fa))
# Or short
gtf <- GtfDataFile(organism=fa)

To specify Ensembl release 71, then one could use:

gtf <- GtfDataFile(organism="Homo_sapiens", assembly="GRCh37", sub=c("Ensembl", "75"))
# Or equivalently
gtf <- GtfDataFile(organism=fa, sub=c("Ensembl", "75"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant