Skip to content
Snippets Groups Projects
Commit 8a88cd14 authored by David Sehnal's avatar David Sehnal
Browse files

readme

parent 17f53418
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,12 @@ Run the image
export NODE_PATH="build/src"; node build/state-docs
**Convert any CIF to BinaryCIF**
node build/model-server/preprocess -i file.cif -ob file.bcif
To see all available commands, use ``node build/model-server/preprocess -h``.
## Contributing
Just open an issue or make a pull request. All contributions are welcome.
......
......@@ -26,6 +26,7 @@ cmdParser.addArgument(['--folderNumProcesses', '-fp'], { help: 'Convert folder n
interface CmdArgs {
// bulk?: string,
help?: any,
cfg?: string,
input?: string,
outCIF?: string,
......@@ -36,6 +37,7 @@ interface CmdArgs {
folderNumProcesses?: string
}
export interface PreprocessConfig {
numProcesses?: number,
customProperties?: ModelPropertyProviderConfig | string
......@@ -43,6 +45,11 @@ export interface PreprocessConfig {
const cmdArgs = cmdParser.parseArgs() as CmdArgs;
if (Object.keys(cmdArgs).filter(k => (cmdArgs as any)[k] !== null).length === 0 || typeof cmdArgs.help !== 'undefined') {
cmdParser.printHelp();
process.exit(0);
}
let entries: PreprocessEntry[] = []
let config: PreprocessConfig = { numProcesses: 1, customProperties: void 0 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment