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

format.ts

Blame
  • format.ts 734 B
    /**
     * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
     *
     * @author David Sehnal <david.sehnal@gmail.com>
     */
    
    // import { File as GroFile } from 'mol-io/reader/gro/schema'
    import { mmCIF_Database } from 'mol-io/reader/cif/schema/mmcif'
    import CIF, { CifFrame } from 'mol-io/reader/cif';
    
    type Format =
        // | Format.gro
        | Format.mmCIF
    
    namespace Format {
        // export interface gro { kind: 'gro', data: GroFile }
        export interface mmCIF { kind: 'mmCIF', data: mmCIF_Database, frame: CifFrame }
    
        export function mmCIF(frame: CifFrame, data?: mmCIF_Database): mmCIF {
            return { kind: 'mmCIF', data: data || CIF.schema.mmCIF(frame), frame };
        }
    }
    
    export default Format