Re: [Biopython] [help] Write Genbank File
Peter Cock <[email protected]> Sun, 1 Mar 2020 16:18:06 +0000
| Newsgroups | gmane.comp.python.bio.general |
|---|---|
| Message-ID | <CAKVJ-_6PwFYvjNqODhzcUJgXu7Nij25gocjNJY1kggechDi=iA@mail.gmail.com> |
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 <[email protected]> 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 - [email protected] > https://mailman.open-bio.org/mailman/listinfo/biopython _______________________________________________ Biopython mailing list - [email protected] https://mailman.open-bio.org/mailman/listinfo/biopython