Hi
I am using the following script to extract the data from NCBI database. I have a set of EST ids in a word document and I am extracting the data using the following code.
perl extract.pl estid.txt >> extracteddata.t xt
I am able to exract the data using the above code. The problem is for example if I have 5 ids in estid.txt, then every time I run the above command the downloaded data differs and for example sometimes it downloads 5 set of data and sometimes 4 set of data... Why is it varying and what could be the problem and how to resolve it as I can not afford to miss any data. All ids are valid. Thanks.
I am using the following script to extract the data from NCBI database. I have a set of EST ids in a word document and I am extracting the data using the following code.
Code:
#!usr/bin/perl -w
use LWP::Simple;
my $url = 'http://www.ncbi.nlm.nih.gov/sites/entrez?db=nucest&cmd=search&term=';
while(<>) {
chomp $_;
@v = split(/\t/,$_);
$id = $v[0]; #EST id
$myURL = $url.$id;
$record = get($myURL);
print $record;
}
I am able to exract the data using the above code. The problem is for example if I have 5 ids in estid.txt, then every time I run the above command the downloaded data differs and for example sometimes it downloads 5 set of data and sometimes 4 set of data... Why is it varying and what could be the problem and how to resolve it as I can not afford to miss any data. All ids are valid. Thanks.
Comment