OESequenceMetadataToJson
Attention
This API is currently available in C++ and Python.
OESequenceMetadataToJson(metadata: OESequenceMetadata,
prettyPrint: bool = True) -> str
Serializes an OESequenceMetadata object to a JSON-formatted string.
The resulting JSON object contains the following fields:
Field |
Type |
Description |
|---|---|---|
|
string |
Chain identifier for this sequence segment. |
|
integer |
Residue number of the first residue in the sequence segment. |
|
string (single character) |
Insertion code of the first residue in the sequence segment. |
|
integer |
Residue number of the last residue in the sequence segment. |
|
string (single character) |
Insertion code of the last residue in the sequence segment. |
|
string |
One-letter amino acid sequence for this segment. |
The prettyPrint argument controls formatting: when true (the default) the JSON is
indented for readability; when false a compact single-line representation is produced.
See also
OESequenceMetadataFromJsonfunctionOESequenceMetadataclass