[Bioperl-l] Appending efetch results to a file

Mark A. Jensen maj at fortinbras.us
Fri May 8 09:42:59 EDT 2009


> I need to request 100's of records, and to avoid stress the Entrez  
> server I do my fetching inside a loop that increments the -retstart  
> parameter in the factory. 

This raises a question in my mind: should EUtilities use Bio::WebAgent rather
than LWP::UserAgent directly, and doesn't Bio::WebAgent have
magical properties that ease the server burden without having to 
build it into the user code directly? 

----- Original Message ----- 
From: "Warren Gallin" <wgallin at ualberta.ca>
To: "BioPerl List" <Bioperl-l at lists.open-bio.org>
Sent: Thursday, May 07, 2009 4:01 PM
Subject: [Bioperl-l] Appending efetch results to a file


> Hi,
> 
> I am having trouble with a script that was working a few months ago,  
> but has started giving unexpected results.
> 
> I need to request 100's of records, and to avoid stress the Entrez  
> server I do my fetching inside a loop that increments the -retstart  
> parameter in the factory.  This should append the fetched records to  
> the file that I am using to collect all the records, but instead it is  
> replacing the file.  How can I make the get_Response append to an  
> existing file instead of overwriting it?
> 
> Warren Gallin
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
> 
>


More information about the Bioperl-l mailing list