|
@@ -8,7 +8,7 @@
|
|
import { Column, Table } from 'mol-data/db'
|
|
import { Column, Table } from 'mol-data/db'
|
|
import { Segmentation } from 'mol-data/int'
|
|
import { Segmentation } from 'mol-data/int'
|
|
import { mmCIF_Schema as mmCIF } from 'mol-io/reader/cif/schema/mmcif'
|
|
import { mmCIF_Schema as mmCIF } from 'mol-io/reader/cif/schema/mmcif'
|
|
-import { ElementSymbol } from '../../types'
|
|
|
|
|
|
+import { ElementSymbol, MoleculeType } from '../../types'
|
|
import { ChainIndex, EntityIndex, ResidueIndex, ElementIndex } from '../../indexing';
|
|
import { ChainIndex, EntityIndex, ResidueIndex, ElementIndex } from '../../indexing';
|
|
import SortedRanges from 'mol-data/int/sorted-ranges';
|
|
import SortedRanges from 'mol-data/int/sorted-ranges';
|
|
|
|
|
|
@@ -103,6 +103,14 @@ export interface AtomicData {
|
|
chains: Chains
|
|
chains: Chains
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+export interface AtomicDerivedData {
|
|
|
|
+ readonly residue: {
|
|
|
|
+ readonly traceElementIndex: ArrayLike<ElementIndex>
|
|
|
|
+ readonly directionElementIndex: ArrayLike<ElementIndex>
|
|
|
|
+ readonly moleculeType: ArrayLike<MoleculeType>
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
export interface AtomicSegments {
|
|
export interface AtomicSegments {
|
|
/** Maps residueIndex to a range of atoms [segments[rI], segments[rI + 1]) */
|
|
/** Maps residueIndex to a range of atoms [segments[rI], segments[rI + 1]) */
|
|
residueAtomSegments: Segmentation<ElementIndex, ResidueIndex>,
|
|
residueAtomSegments: Segmentation<ElementIndex, ResidueIndex>,
|
|
@@ -204,6 +212,7 @@ export interface AtomicRanges {
|
|
type _Hierarchy = AtomicData & AtomicSegments & AtomicRanges
|
|
type _Hierarchy = AtomicData & AtomicSegments & AtomicRanges
|
|
export interface AtomicHierarchy extends _Hierarchy {
|
|
export interface AtomicHierarchy extends _Hierarchy {
|
|
index: AtomicIndex
|
|
index: AtomicIndex
|
|
|
|
+ derived: AtomicDerivedData
|
|
}
|
|
}
|
|
|
|
|
|
export namespace AtomicHierarchy {
|
|
export namespace AtomicHierarchy {
|