preprocess.ts 515 B

123456789101112131415161718
  1. #!/usr/bin/env node
  2. /**
  3. * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
  4. *
  5. * @author David Sehnal <david.sehnal@gmail.com>
  6. */
  7. import cluster from 'cluster';
  8. import { runChild } from './preprocess/parallel';
  9. if (cluster.isPrimary) {
  10. require('./preprocess/master');
  11. } else {
  12. runChild();
  13. }
  14. // example:
  15. // node build\node_modules\servers\model\preprocess -i e:\test\Quick\1cbs_updated.cif -oc e:\test\mol-star\model\1cbs.cif -ob e:\test\mol-star\model\1cbs.bcif