cif.ts 607 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author David Sehnal <david.sehnal@gmail.com>
  5. */
  6. import parseText from './cif/text/parser'
  7. import parseBinary from './cif/binary/parser'
  8. import { Frame } from './cif/data-model'
  9. import { toDatabase } from './cif/schema'
  10. import { mmCIF_Schema, mmCIF_Database } from './cif/schema/mmcif'
  11. export default {
  12. parseText,
  13. parseBinary,
  14. toDatabase,
  15. schema: {
  16. mmCIF: (frame: Frame) => toDatabase<mmCIF_Schema, mmCIF_Database>(mmCIF_Schema, frame)
  17. }
  18. }
  19. export * from './cif/data-model'