Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def _read_dr(record, value):
  2. cols = value.rstrip(".").split('; ')
  3. record.cross_references.append(tuple(cols))
  4.  
  5. for record in SeqIO.parse(filename, "swiss"):
  6. print(record.cross_references) #does not work, should return a list of DR rows
  7. print(record.features) #works, returns a list of parsed FT rows
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement