molstar
Version:
A comprehensive macromolecular library.
31 lines (30 loc) • 1.66 kB
TypeScript
/**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { mmCIF_Database, mmCIF_Schema } from '../../../../mol-io/reader/cif/schema/mmcif';
import { Table, Column } from '../../../../mol-data/db';
import { EntityIndex } from '../indexing';
import { mmCIF_chemComp_schema } from '../../../../mol-io/reader/cif/schema/mmcif-extras';
export declare type EntitySubtype = (mmCIF_Schema['entity_poly']['type']['T'] | mmCIF_Schema['pdbx_entity_branch']['type']['T'] | 'ion' | 'lipid' | 'peptide-like');
export declare const EntitySubtype: Column.Schema.Aliased<EntitySubtype>;
export interface Entities {
data: mmCIF_Database['entity'];
subtype: Column<EntitySubtype>;
prd_id: Column<string>;
getEntityIndex(id: string): EntityIndex;
}
export declare type ChemicalComponent = Table.Row<mmCIF_chemComp_schema>;
export declare type ChemicalComponentMap = ReadonlyMap<string, ChemicalComponent>;
export declare type MissingResidue = Table.Row<Pick<mmCIF_Schema['pdbx_unobs_or_zero_occ_residues'], 'polymer_flag' | 'occupancy_flag'>>;
export interface MissingResidues {
has(model_num: number, asym_id: string, seq_id: number): boolean;
get(model_num: number, asym_id: string, seq_id: number): MissingResidue | undefined;
readonly size: number;
}
export declare type StructAsym = Table.Row<Pick<mmCIF_Schema['struct_asym'], 'id' | 'entity_id'> & {
auth_id: Column.Schema.Str;
}>;
export declare type StructAsymMap = ReadonlyMap<string, StructAsym>;