[Biopython] Serialize SeqRecord to JSON?

Peter Cock p.j.a.cock at googlemail.com
Mon May 23 11:01:51 UTC 2011


On Fri, May 20, 2011 at 10:14 PM, Uri Laserson <laserson at mit.edu> wrote:
> Does anyone know of a solution for this?
>
> Thanks!
> Uri

I thought JSON was more suited to holding simple data structures,
rather than serialising arbitrary complex objects.

Which bits of data do you need? The basics like the
id/name/description and sequence could be presented like a tuple and
encoded in JSON. Annotations begins to get complicated - but a
dictionary of basic types should be fine. I suspect the biggest hurdle
would be trying to encode any features.

Peter



More information about the Biopython mailing list