Biopython have SeqIO write a circular annotation to Genbank header
While writing a new sequence to a genbank file . I am using code like
_seqrecord = SeqRecord.SeqRecord(Seq.Seq(seq,generic_dna),name=name, id=seqID, description=self.description)
SeqIO.write(_seqrecord,handle=outfile ,format="genbank")
Is there a way to set the topology of the sequence to circular ?
I could see something in the source code about setting topology in a FeatureConsumer, but am still confused as to how I can set the topology or residue type to circular DNA during output of a seqrecord.
• 1,961 views
•
link
1 answer
I figured it out immediately after posting.
_seqrecord.annotations["topology"]="circular"
Sets the topology to circular.
• 0 views
•
link
Log in to answer this question.