m3triq 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -23,7 +23,7 @@ const program = new Command();
23
23
  program
24
24
  .name('m3t')
25
25
  .description('M3TRIQ — protein-ligand analysis from the terminal')
26
- .version('0.2.4')
26
+ .version('0.2.5')
27
27
  .option('--json', 'Output as JSON (machine-readable)')
28
28
  .hook('preAction', (thisCommand) => {
29
29
  const opts = thisCommand.optsWithGlobals();
@@ -11,8 +11,8 @@ export function registerMdCommands(program) {
11
11
  md
12
12
  .command('run')
13
13
  .option('--protein <pdb>', 'Protein PDB ID or path to .pdb file')
14
- .option('--ligand-sdf <sdf>', 'Ligand SDF content or path to .sdf file')
15
- .option('--ligand-smiles <smiles>', 'Ligand SMILES (fallback if no SDF)')
14
+ .option('--ligand-sdf <sdf>', 'Ligand SDF content or path to .sdf file (omit for apo simulation)')
15
+ .option('--ligand-smiles <smiles>', 'Ligand SMILES (omit for apo simulation)')
16
16
  .option('--diffdock-job <id>', 'DiffDock job ID (auto-fetches protein + ligand)')
17
17
  .option('--mode <mode>', 'Simulation mode: quick (10ns ~1hr) or standard (50ns ~5hrs)', 'quick')
18
18
  .option('--ns <n>', 'Override simulation duration in nanoseconds (1-100)')
@@ -42,7 +42,7 @@ export function registerMdCommands(program) {
42
42
  else {
43
43
  params.protein_pdb = opts.protein;
44
44
  }
45
- // Resolve ligand
45
+ // Resolve ligand (optional — omit for apo / protein-only MD)
46
46
  if (opts.ligandSdf) {
47
47
  if (fs.existsSync(opts.ligandSdf)) {
48
48
  params.ligand_sdf = fs.readFileSync(opts.ligandSdf, 'utf-8');
@@ -55,8 +55,7 @@ export function registerMdCommands(program) {
55
55
  params.ligand_smiles = opts.ligandSmiles;
56
56
  }
57
57
  else {
58
- process.stderr.write('Error: Provide --ligand-sdf or --ligand-smiles\n');
59
- process.exit(1);
58
+ process.stderr.write('Running protein-only (apo) MD — no ligand specified.\n');
60
59
  }
61
60
  }
62
61
  if (opts.ns)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m3triq",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "M3TRIQ — protein-ligand analysis from the terminal",
5
5
  "type": "module",
6
6
  "bin": {