[Bioperl-l] How (from where) to retrieve FieldInfo objects?
Carnë Draug
carandraug+dev at gmail.com
Wed Jun 29 23:39:00 UTC 2011
On 29 June 2011 23:30, Smithies, Russell
<Russell.Smithies at agresearch.co.nz> wrote:
> How about just returning ASN.1 then parsing that?
> There's far more data in that format than any of the others.
>
> my $factory = Bio::DB::EUtilities->new(-eutil => 'esearch',
> -term => 'h2afx[sym] AND human[organism]',
> -db => 'gene',
> -usehistory => 'y');
>
>
> my $hist = $factory->next_History || die "No history data returned";
>
> $factory->set_parameters(-eutil => 'efetch',-history => $hist);
>
> print Dumper $factory->get_Response;
When I do this, I get a XML with the ASN.1 inside the tag pre. Is is
supposed to be this way? Should I extract it myself? Shouldn't the
method do this? It's nice that I can get so many information but
wouldn't it be lighter on the NCBI server if I could ask only for the
info that I need rather than the whole record?
Also, I still can't understand what's the point of the einfo and
when/why get the FieldInfo objects from a search.
Carnë
More information about the Bioperl-l
mailing list