[ensembl-dev] difference behaviour of fetch_by_region in GRCh37 and GRCH38
mag
mr6 at ebi.ac.uk
Thu Mar 24 10:55:43 GMT 2016
Hi Duarte,
The API still relies on the information being in the database.
For GRCh38, we have stored entries in the seq_region_synonym table for
'chr22' and the like.
For GRCh37, these entries are not stored, hence the API does not know
what chr22 means.
I suggest using real chromosome names :-)
Regards,
Magali
On 24/03/2016 10:49, Duarte Molha wrote:
> Hi Devs
>
> I was just wondering why a strange behavior is different between the
> GRCH37 database and GRCh38 using the same API
>
> I am currently using APIv83 and when I connect to my local GRCh37
> database, the method:
>
> my $slice_targeted = $slice_adaptor->fetch_by_region( 'chromosome',
> $chr, $start, $end, $strand);
>
> fails if $chr contains the prefix "chr" like in chr22
> but it works fine against my also local GRCh38 database
>
> since they are both using the same api should the behavior not be the
> same?
>
> Best regards
>
> Duarte
>
>
> _______________________________________________
> 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/20160324/ad51ad62/attachment.html>
More information about the Dev
mailing list