GenBankRecord#
- class biotite.sequence.io.genbank.GenBankRecord(name: str, content: list[str], subfields: dict[str, list[str]] = <factory>)[source]#
Bases:
objectA field of a GenBank file, comprising the field name, the content lines and the optional subfields.
- Attributes:
- namestr
The field name, e.g.
'DEFINITION'.- contentlist of str
The content lines of the field. While the content of metadata fields starts at the standard GenBank indentation of 12, the content of the FEATURES (contains the annotation) and ORIGIN (contains the sequence) fields starts without indentation.
- subfieldsdict of str -> list of str, optional
The subfields of the field. The dictionary maps subfield names to the content lines of the respective subfield. The FEATURES and ORIGIN fields have no subfields.