[Bioperl-l] Bio::Biblio find method proxy problem

barani at avesthagen.com barani at avesthagen.com
Thu May 20 11:27:04 UTC 2010


Hi,

Our lab is behind firewall. I am using FC10 Linux. I have set the
httpproxy in /etc/bash_profile.

I am searching for research articles using Bio::Biblio "find" method as
shown in the following PERL code.This program executes well, when I run it
in the command line. But when i use the same code in PERL CGI, it does not
work.(Says "couldn't retrieve results from
http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"). Is there anyway
that I can set the proxy within the codes as argument  and make it
executable ?

It will be very useful if you guys can help me.

#####################################################
#!/usr/bin/perl
use Bio::Biblio;
use Bio::Biblio::IO;

my $search="ABySS[title] AND (Simpson[Author]) AND 2009[dp]";

my $biblio = Bio::Biblio->new(-access=> 'eutils');
$biblio->find($search)->has_next;
while(my $xml = $biblio->get_next){
  my $io = Bio::Biblio::IO->new( -data => $xml,
                                   -format => 'medlinexml' );
  my $article = $io->next_bibref();
>>>>>>>>>>>>>>> XML Parser >>>>>>>>>>>>
<<<<<<<<<<<<<<< XML Parser <<<<<<<<<<<<
}
###############################################################

Best Regards

barani

-----------------------------------
Baranidharan P
Project Head
Bioinformatics - Genomics Group
Avesthagen Ltd
Ground floor, Innovator Building
International Tech Park Bangalore
Whitefield
Bangalore - 560066
Ph. 09900727597
Mail Off .barani at avesthagen.com
Per. baranidharanp at gmail.com
-------------------------------------




More information about the Bioperl-l mailing list