[BioSQL-l] extract data with BioQuery

Gerben Menschaert Gerben.Menschaert at devgen.com
Wed Jul 23 12:13:01 EDT 2003


Hello,

I'm trying to extract all data out of BioSQL for a given ncbi_taxon_id.

I got the right ncbi_taxon_id with: 

my $query = Bio::DB::Query::BioQuery->new(
                              -datacollections => ["Bio::Species tax"],
                              -where           => ["tax.binomial =  $species
"]);
my $result = $seqadaptor1->find_by_query($query);
while(my $tax = $result->next_object()) {
print $tax->binomial,"\t",$tax->ncbi_taxid,"\t","\n";

Now I tought to also use BioQuery for Bio::SeqI, giving the taxonomy id as
where clause. But I noticed that tax_oid is not mapped...

Am I correct? If so, any alternatives...


Thanks,
Gerben


More information about the BioSQL-l mailing list