Re: [Biopython] AC lines with multiple accession numbers in Swissprot files
Peter Cock <[email protected]>
| Newsgroups | gmane.comp.python.bio.general |
|---|---|
| Message-ID | <CAKVJ-_4Q2gqjvQL5j6Q9iN9=+_+=ycb4aMo7OombVaFtzn5nPg@mail.gmail.com> |
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 <[email protected]> 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." [email protected] > > _______________________________________________ > Biopython mailing list - [email protected] > https://mailman.open-bio.org/mailman/listinfo/biopython _______________________________________________ Biopython mailing list - [email protected] https://mailman.open-bio.org/mailman/listinfo/biopython