Adam Sjøgren | 29 Jul 20:54 2013
X-Face
Picon

Re: Question about retrieving sequences from swissprot database

cacaucenturion2 <cacaucenturion2 <at> gmail.com> writes:

> I met a problem when trying to retrieve sequences from SWISSPROT. I
> tried the following script

> perl -e 'use Bio::Perl; $seq_object = get_sequence('swissprot',"Q197F7");' 

> However I was told that 

> ------------- EXCEPTION: Bio::Root::Exception -------------
> MSG: acc Q197F7 does not exist

Your one-liner works for me:

  $ perl -E 'use Bio::Perl; $seq_object = get_sequence('swissprot',"Q197F7"); say $seq_object->seq' 
  MYQAINPCPQSWYGSPQLEREIVCKMSGAPHYPNYYPVHPNALGGAWFDTSLNARSLTTTPSLTTCTPPSLAACTPPTSLGMVDSPPHINPPRRIGTLCFDFGSAKSPQRCECVASDRPSTTSNTAPDTYRLLITNSKTRKNNYGTCRLEPLTYGI
  $ 

Maybe you are behind a firewall, or somehow blocked?

  Best regards,

    Adam

--

-- 
 "den der noget klæge symfoniske letmetal-blanding af         Adam Sjøgren
  Beatles, Zeppelin, Kansas og Thin Lizzy var sgu ikke   asjo <at> koldfront.dk
  lige min kop te"

Gmane