[Bioperl-l] Question about retrieving sequences from swissprot database

Adam Sjøgren asjo at koldfront.dk
Mon Jul 29 18:54:15 UTC 2013


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"




More information about the Bioperl-l mailing list