Becky has asked for the wisdom of the Perl Monks concerning the following question:
However, this no longer works as the NCBI have started using javascript. If you copy in the url above and view the page source you'll see what I mean - the sequence is no longer visible in the page source. The sequence should startuse LWP; use HTTP::Request::Common; my $ua = new LWP::UserAgent; my $result = $ua->request(GET "http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&qty=1&start +=1&list_uids=148261691&dopt=fasta"); if($result->is_success){ $fasta = $result->content; } # then parse $fasta to get out just my protein sequence
>gi|148261691|ref|YP_001235818.1| CheA signal transduction histidine kinase Acidiphilium cryptum JF-5 MTGGGSMDPMAEIRETFFQECEEQLAELESGLMRMEAGETDSETVNAVFRAVHSIKGGAGAFGLEDLVHF
Can anyone tell me how to get my sequences now? Thanks, Becky
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting data from NCBI
by derby (Abbot) on Apr 30, 2009 at 12:27 UTC | |
by jpearl (Scribe) on Apr 30, 2009 at 17:34 UTC | |
by Becky (Beadle) on Apr 30, 2009 at 12:49 UTC | |
|
Re: Getting data from NCBI
by frieduck (Hermit) on Apr 30, 2009 at 14:29 UTC |