Skip to content
Snippets Groups Projects
Select Git revision
  • 088e61bccffe4cad07fbaa01c8f85399eb649048
  • 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

dic.ts

Blame
  • user avatar
    David Sehnal authored
    088e61bc
    History
    dic.ts 1.35 KiB
    /**
     * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
     *
     * @author Alexander Rose <alexander.rose@weirdbyte.de>
     */
    
    import { Database, Column } from 'mol-base/collections/database'
    
    import Schema = Column.Schema
    import FP = Schema.FP
    
    const str = Schema.str;
    const float = Schema.float;
    
    const datablock = {
        id: str,
        description: str
    }
    
    const dictionary = {
        title: str,
        datablock_id: str,
        version: str
    }
    
    const dictionary_history = {
        version: str,
        update: str,
        revision: str
    }
    
    const sub_category = {
        id: str,
        description: str
    }
    
    const category_group_list = {
        id: str,
        parent_id: str,
        description: str
    }
    
    const item_type_list = {
        code: str,
        primitive_code: str,
        construct: str,
        detail: str
    }
    
    const item_units_list = {
        code: str,
        detail: str
    }
    
    const item_units_conversion = {
        from_code: str,
        to_code: str,
        operator: str,
        factor: float(FP(6, 6, 6))
    }
    
    // TODO save frame dic schema
    
    export const CIFDictionary_Schema = {
        datablock,
        dictionary,
        dictionary_history,
        sub_category,
        category_group_list,
        item_type_list,
        item_units_list,
        item_units_conversion
    }
    
    export type CIFDictionary_Schema = typeof CIFDictionary_Schema;
    export interface CIFDictionary_Database extends Database.Tables<CIFDictionary_Schema> { }