Bio.SeqIO.XdnaIO module

Bio.SeqIO support for the “xdna” file format.

The Xdna binary format is generated by Christian Marck’s DNA Strider program and also used by Serial Cloner.

Bio.SeqIO.XdnaIO.XdnaIterator(handle)

Parse a Xdna file and return a SeqRecord object.

Note that this is an “iterator” in name only since a Xdna file always contain a single sequence.

class Bio.SeqIO.XdnaIO.XdnaWriter(handle)

Bases: Bio.SeqIO.Interfaces.SequenceWriter

Write files in the Xdna format.

write_file(self, records)

Write the specified record to a Xdna file.

Note that the function expects a list of records as per the SequenceWriter interface, but the list should contain only one record as the Xdna format is a mono-record format.