<div dir="ltr">Hello Meijun,<div><br></div><div>I recommend starting by parsing a known GenBank file, and looking at how the objects are setup. You will need to copy that.<div><br></div><div>Have you looked at chapter 4 of the Tutorial?<br></div><div><br></div><div><a href="http://biopython.org/DIST/docs/tutorial/Tutorial.html">http://biopython.org/DIST/docs/tutorial/Tutorial.html</a><br></div><div><br></div><div><div>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).<br></div><div><br></div></div><div>Peter</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 29, 2020 at 10:06 PM Meijun WU <<a href="mailto:meijun.wu@etu.uca.fr">meijun.wu@etu.uca.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FR"><div class="gmail-m_4925433204053206277WordSection1"><p class="MsoNormal">Hello, </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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. </p><p class="MsoNormal">I have tried to read the source code but it’s quite a lot and it have too many information … </p><p class="MsoNormal">Sorry to trouble and thanks in advance. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Cordialement, <u></u><u></u></p><p class="MsoNormal">Meijun Wu<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
Biopython mailing list  -  <a href="mailto:Biopython@mailman.open-bio.org" target="_blank">Biopython@mailman.open-bio.org</a><br>
<a href="https://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">https://mailman.open-bio.org/mailman/listinfo/biopython</a></blockquote></div>