[ensembl-dev] Gene adaptor when the species is unknown]

Sébastien Moretti sebastien.moretti at unil.ch
Wed Jun 29 12:59:09 BST 2011


Thanks for this alternative method.

Nevertheless it seems I still need a species name somewhere:
- with the -species argument
- or with the -dbname argument that, I guess, should be the species
   core database name.

Isn't it ?

> Hi Sebastien,
>
> If you have a DBAdaptor you can then get a gene adaptor without
> mentioning the species.
>
> my $genedb = new Bio::EnsEMBL::DBSQL::DBAdaptor( -host => $gene_host,
> -user => $gene_user,
> -pass => $gene_pass,
> -port => $gene_port,
> -dbname => $gene_dbname);
>
>
> my $ga = $genedb->get_GeneAdaptor();
>
> Hope this helps.
>
> Regards,
> Susan.
>
>
> Sébastien Moretti wrote:
>> Hi,
>> I wonder if there is another way to create a gene adaptor.
>> I use that but it is linked to a particular species:
>> my $gene_adaptor = $reg->get_adaptor( 'Human', 'Core', 'Gene' );
>>
>>
>> I would like to get information about genes from ensembl gene
>> identifiers (stable_id) without knowing a priori the species.
>> I.e. what I have to put in the 'Human' place.
>>
>>
>> So, is there something more generic to create gene adaptor ?
>>
>> Best regards

-- 
Sébastien Moretti
Department of Ecology and Evolution,
Biophore, University of Lausanne,
CH-1015 Lausanne, Switzerland
Tel.: +41 (21) 692 4221/4079
http://bioinfo.unil.ch/




More information about the Dev mailing list