[Biopython] [help] Write Genbank File
Peter Cock
p.j.a.cock at googlemail.com
Sun Mar 1 16:18:06 UTC 2020
Hello Meijun,
I recommend starting by parsing a known GenBank file, and looking at how
the objects are setup. You will need to copy that.
Have you looked at chapter 4 of the Tutorial?
http://biopython.org/DIST/docs/tutorial/Tutorial.html
Once you have a SeqRecord, the .features attribute is just a list of
SeqFeature objects. The feature annotation is in the .qualifiers
dictionary, the values should generally be lists of strings (match what the
GenBank parser gives you on a known example).
Peter
On Sat, Feb 29, 2020 at 10:06 PM Meijun WU <meijun.wu at etu.uca.fr> wrote:
> Hello,
>
>
>
> I have been struggle a while to write a genbank file with biopython, i
> have sucedded, but i can’t find any information about adding the feature
> sequence into the feature section.
>
> I have tried to read the source code but it’s quite a lot and it have too
> many information …
>
> Sorry to trouble and thanks in advance.
>
>
>
> Cordialement,
>
> Meijun Wu
>
>
> _______________________________________________
> Biopython mailing list - Biopython at mailman.open-bio.org
> https://mailman.open-bio.org/mailman/listinfo/biopython
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20200301/db475a04/attachment.htm>
More information about the Biopython
mailing list