|
@@ -54,7 +54,7 @@ function createHierarchyData(data: mmCIF, bounds: Interval, offsets: { residues:
|
|
|
auth_atom_id: Column.window(atom_site.auth_atom_id, start, end),
|
|
|
label_alt_id: Column.window(atom_site.label_alt_id, start, end),
|
|
|
pdbx_formal_charge: Column.window(atom_site.pdbx_formal_charge, start, end)
|
|
|
- } as any);
|
|
|
+ });
|
|
|
const residues = Table.view(atom_site, Hierarchy.ResiduesSchema, offsets.residues);
|
|
|
// Optimize the numeric columns
|
|
|
Table.columnToArray(residues, 'label_seq_id', Int32Array);
|
|
@@ -104,7 +104,7 @@ function createModel(raw: RawData, data: mmCIF, bounds: Interval, previous?: Mod
|
|
|
return {
|
|
|
id: newUUID(),
|
|
|
sourceData: raw,
|
|
|
- model_num: data.atom_site.pdbx_PDB_model_num.value(Interval.start(bounds)),
|
|
|
+ modelNum: data.atom_site.pdbx_PDB_model_num.value(Interval.start(bounds)),
|
|
|
hierarchy: { ...hierarchyData, ...hierarchyKeys, ...hierarchySegments },
|
|
|
conformation: getConformation(data, bounds),
|
|
|
atomCount: Interval.size(bounds)
|