[ensembl-dev] Ensembl versions and genome builds
mag
mr6 at ebi.ac.uk
Tue Oct 7 09:27:53 BST 2014
Hi Michael,
Most of this information is available via the meta table.
The API will allow you to fetch this information with the following queries:
my $meta_container = $registry->get_adaptor('human', 'core',
'MetaContainer');
my $api_version = $meta_container->get_schema_version();
my $genebuild_version = $meta_container->get_genebuild();
my $coord_system_adaptor = $registry->get_adaptor('human', 'core',
'CoordSystem');
my $genome_version = $coord_system_adaptor->fetch_top_level();
It is however not possible to retrieve information about previous builds
from the current database.
To do this, you would need to check the genebuild_version, which
indicates when the genebuild was last updated.
Based on the data, find the archive prior to that date.
It is also possible to retrieve this information from the REST API.
http://rest.ensembl.org/info/software?content-type=application/json
will return the current Ensembl version
http://rest.ensembl.org/info/assembly/homo_sapiens?content-type=application/json
will return basic information about the current genebuild and assembly
for a given species.
Regards,
Magali
On 06/10/2014 19:14, Michael Yourshaw wrote:
> Is there a programatic way to get:
> 1. The version number of the current Ensembl?
> 2. The genome build for a species in the current version?
> 3. The genome build for a species in any specified version number?
> 4. The most recent version for a given species/genome build?
> Solutions with either mysql or the perl API will do.
>
> Thanks,
>
>
> ?
>
> Michael Yourshaw, PhD
>
> UCLA Geffen School of Medicine
> Department of Pediatrics
> 695 Charles E Young Drive S
> Gonda 5554
>
> Los Angeles CA 90095-8348 USA
>
> myourshaw at ucla.edu <mailto:myourshaw at ucla.edu>
>
> 970.691.8299
>
> This message (including any attachments) is intended only for the use
> of the addressee(s) and may contain information that is PRIVILEGED and
> CONFIDENTIAL, and/or may constitute ATTORNEY WORK PRODUCT. If you are
> not an intended recipient, you are hereby notified that any
> dissemination of this communication is strictly prohibited. If you
> have received this message in error, please do not read, copy, or
> forward this message or any attachments. Please permanently delete all
> copies of the message and any attachments and notify the sender
> immediately by sending an email to myourshaw at yourshaw.org
> <mailto:myourshaw at yourshaw.org>. Thank you. As part of our
> commitment to the environment, this message was manufactured with 100%
> recycled electrons.
>
>
>
>
>
>
>
> _______________________________________________
> Dev mailing list Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20141007/adcbdfab/attachment.html>
More information about the Dev
mailing list