[Biopython] AC lines with multiple accession numbers in Swissprot files

Peter Cock p.j.a.cock at googlemail.com
Wed May 29 09:21:30 UTC 2019


Well done - you just beat me to it.

We needed a simple entry as the record's .id to work well in the
SeqIO system, so I picked the first accession.

If you are doing a lot of UniProt specific work, you might also
consider using the XML parser (format "uniprot-xml" in SeqIO).

Peter

On Wed, May 29, 2019 at 10:18 AM Adam Sjøgren <asjo at koldfront.dk> wrote:
>
> Adam writes:
>
> > How can I access the other value, 'Q7LWA9'?
>
> Here they are:
>
>   >>> r.annotations["accessions"]
>   ['Q12558', 'Q7LWA9']
>
>
>   Best regards,
>
>     Adam
>
> --
>  "Everything needs to change.                                 Adam Sjøgren
>   And it has to start today."                            asjo at koldfront.dk
>
> _______________________________________________
> Biopython mailing list  -  Biopython at mailman.open-bio.org
> https://mailman.open-bio.org/mailman/listinfo/biopython



More information about the Biopython mailing list