[ensembl-dev] Error when using variation set adaptor
Anja Thormann
anja at ebi.ac.uk
Thu Dec 4 13:15:01 GMT 2014
Hello Naz,
we just had a new ensembl release 78. So either you have to update your APIs to release 78 or you need to specify in the registry that you want to use version 77:
$registry->load_registry_from_db(
-host => 'ensembldb.ensembl.org',
-user => 'anonymous',
-DB_VERSION => 77,
);
Best regards,
Anja
On 4 Dec 2014, at 13:08, Nazmiye Uzun wrote:
> Dear developers
>
> I am trying to test below code snippet provided on the variation_tutorial page to display attributes of the variations in a particular variation set. Here's a section of the code from the following page;
>
> http://www.ensembl.org/info/docs/api/variation/variation_tutorial.html#variation_sets
>
>
>
> my $vs_adaptor = $registry->get_adaptor('human','variation','variationset');
> my $vs = $vs_adaptor->fetch_by_short_name('ph_variants');
>
> my $limit = 10;
> my $fetched = 0;
> my $it = $vs->get_Variation_Iterator();
>
> # Get the first 10 examples and print some data from them
> while ($fetched < $limit && $it->has_next()) {
>
> # Print the name of the variation
> my $var = $it->next();
> printf("\t\%s has been found to be associated with:\n",$var->name());
>
> #
> # Do more
> #
>
> $fetched++;
> }
>
>
> However, I receive the following error:
> DBD::mysql::st execute failed: Unknown column 'v.display' in 'where clause' at -----/src/ensembl-variation/modules/Bio/EnsEMBL/Variation/DBSQL/VariationAdaptor.pm line 1173.
>
> The version of the API I'm using is 77.
>
> I appreciate any input. Thanks for the help in advance.
>
> Regards
> Naz
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> 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/20141204/563762ee/attachment.html>
More information about the Dev
mailing list