Skip to content
Snippets Groups Projects
Select Git revision
  • b0127d746dca5aae3e4d84ac9c92c8160366fda9
  • master default protected
  • rednatco-v2
  • base-pairs-ladder
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

uniform.ts

Blame
  • common.ts 1.24 KiB
    /**
     * Copyright (c) 2018-2019 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';
    
    export type EntitySubtype = (
        mmCIF_Schema['entity_poly']['type']['T'] |
        mmCIF_Schema['pdbx_entity_branch']['type']['T']
    )
    export const EntitySubtype = Column.Schema.Aliased<EntitySubtype>(Column.Schema.Str(''))
    
    export interface Entities {
        data: mmCIF_Database['entity'],
        subtype: Column<EntitySubtype>,
        getEntityIndex(id: string): EntityIndex
    }
    
    export type ChemicalComponent = Table.Row<mmCIF_Schema['chem_comp']>
    export type ChemicalComponentMap = ReadonlyMap<string, ChemicalComponent>
    
    export 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
    }