biotite.sequence.io.genbank.set_locus

biotite.sequence.io.genbank.set_locus(gb_file, name, length, mol_type=None, is_circular=False, division=None, date=None)[source]

Set the LOCUS field of a GenBank file.

Parameters
gb_fileGenBankFile

The GenBank file to be edited.

namestr

The locus name.

lengthint

Sequence length.

mol_typestr, optional

The molecule type. Usually one of 'DNA', 'RNA', 'Protein' or ''.

is_circularbool, optional

True, if the sequence is circular, false otherwise.

divisionstr, optional

The GenBank division to which the file belongs.

datestr, optional

The date of last modification.