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

readme

parent 17f53418
Branches
No related tags found
No related merge requests found
...@@ -122,6 +122,12 @@ Run the image ...@@ -122,6 +122,12 @@ Run the image
export NODE_PATH="build/src"; node build/state-docs 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 ## Contributing
Just open an issue or make a pull request. All contributions are welcome. 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 ...@@ -26,6 +26,7 @@ cmdParser.addArgument(['--folderNumProcesses', '-fp'], { help: 'Convert folder n
interface CmdArgs { interface CmdArgs {
// bulk?: string, // bulk?: string,
help?: any,
cfg?: string, cfg?: string,
input?: string, input?: string,
outCIF?: string, outCIF?: string,
...@@ -36,6 +37,7 @@ interface CmdArgs { ...@@ -36,6 +37,7 @@ interface CmdArgs {
folderNumProcesses?: string folderNumProcesses?: string
} }
export interface PreprocessConfig { export interface PreprocessConfig {
numProcesses?: number, numProcesses?: number,
customProperties?: ModelPropertyProviderConfig | string customProperties?: ModelPropertyProviderConfig | string
...@@ -43,6 +45,11 @@ export interface PreprocessConfig { ...@@ -43,6 +45,11 @@ export interface PreprocessConfig {
const cmdArgs = cmdParser.parseArgs() as CmdArgs; 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 entries: PreprocessEntry[] = []
let config: PreprocessConfig = { numProcesses: 1, customProperties: void 0 } let config: PreprocessConfig = { numProcesses: 1, customProperties: void 0 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment