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

Update Question #14

Open
thompj27 opened this issue Aug 30, 2018 · 3 comments
Open

Update Question #14

thompj27 opened this issue Aug 30, 2018 · 3 comments

Comments

@thompj27
Copy link

If I want to update annotables for a build more recent than your git hub, is it simply a matter of cloning and building the annotables package? In other words, does building the package automatically go to the latest ensembl build? If yes, where do I change the code to reflect the current version so ensembl_version returns the correct value.

I did clone and build the package successfully, but ensembl_version still reports ensembl 91 and it would be work to compare to a known older version. I'm not so familiar with these data packages and I'm having trouble dissecting the package to find the source code that's hitting ensembl to answer the versioning question myself.

Thanks,
John Thompson

@stephenturner
Copy link
Owner

stephenturner commented Aug 30, 2018 via email

@thompj27
Copy link
Author

Thanks for the quick response! So if I build it today without specifying an archived version I should be getting R92 which is current as of today.

It looks like you encode the Ensembl release number as the last bit of the package version. I can set that in the DESCRIPTION file. But where to I update the version so that the ensembl_version flag reports the correct updated version?

@stephenturner
Copy link
Owner

So I'm looking at the code and it's the ensembl_version object that's created during the build process that's recording the actual version.

ensembl_version <- listMarts() %>%
    filter(biomart == "ENSEMBL_MART_ENSEMBL") %>%
    pull(version)
save_data(ensembl_version, name = "ensembl_version")

The version in the DESCRIPTION is just something I put in manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants