@genobank/biofs 3.20.5 → 3.20.7

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/index.js CHANGED
@@ -91,6 +91,7 @@ const characterize_1 = require("./commands/imaging/characterize");
91
91
  const enrich_1 = require("./commands/imaging/enrich");
92
92
  const compare_1 = require("./commands/imaging/compare");
93
93
  const reconcile_1 = require("./commands/imaging/reconcile");
94
+ const register_2 = require("./commands/imaging/register");
94
95
  const submit_3 = require("./commands/methyl/submit");
95
96
  const exec_1 = require("./commands/methyl/exec");
96
97
  const submit_4 = require("./commands/align-shard/submit");
@@ -184,10 +185,12 @@ const cohort_pipeline_1 = require("./commands/cohort-pipeline");
184
185
  const dedup_1 = require("./commands/dedup");
185
186
  const claim_1 = require("./commands/claim");
186
187
  const fingerprint_1 = require("./commands/fingerprint");
187
- const register_2 = require("./commands/researcher/register");
188
+ const register_3 = require("./commands/researcher/register");
188
189
  const status_9 = require("./commands/researcher/status");
189
190
  const passport_1 = require("./commands/researcher/passport");
190
191
  const errorReporter_1 = require("./utils/errorReporter");
192
+ // CARBONX_VERB_20261023: Carbon-X variant pathogenicity screen through biofs-node
193
+ const carbonx_1 = require("./commands/carbonx");
191
194
  const logger_1 = require("./lib/utils/logger");
192
195
  const errorReporter_2 = require("./utils/errorReporter");
193
196
  const credentials_1 = require("./lib/auth/credentials");
@@ -1345,6 +1348,45 @@ imagingCmd
1345
1348
  process.exit(1);
1346
1349
  }
1347
1350
  });
1351
+ // imaging register — staged 3D registration of N CT timepoints into one reference
1352
+ // frame with a quality gate (rigid on bone -> affine -> SyN, QC per stage, transitivity),
1353
+ // on the GPU executor via biofs-node.
1354
+ const collect = (v, prev) => prev.concat([v]);
1355
+ imagingCmd
1356
+ .command('register')
1357
+ .description('Register CT timepoints into one reference frame with a quality gate (GPU via biofs-node)')
1358
+ .requiredOption('--tp <label=study>', 'timepoint as label=StudyInstanceUID or label=dicom biocid, in time order (repeat)', collect, [])
1359
+ .option('--series <label=series>', 'override the series biofs-node picks for one timepoint (repeat)', collect, [])
1360
+ .option('--reference <label>', 'timepoint whose frame the others are registered into (default: the first)')
1361
+ .option('--anatomy <name>', 'chest | abdomen', 'chest')
1362
+ .option('--protocol-mode <mode>', 'auto | same | cross (auto compares the acquisitions)', 'auto')
1363
+ .option('--wait', 'Wait for the GPU job and print the gate')
1364
+ .option('--quiet', 'Suppress progress output')
1365
+ .option('--json', 'Output as JSON')
1366
+ .action(async (options) => {
1367
+ try {
1368
+ await (0, register_2.imagingRegisterCommand)(options);
1369
+ }
1370
+ catch (error) {
1371
+ logger_1.Logger.error(`imaging register failed: ${error}`);
1372
+ process.exit(1);
1373
+ }
1374
+ });
1375
+ imagingCmd
1376
+ .command('register-status <registerJobId>')
1377
+ .description('Status and quality gate of an imaging register job')
1378
+ .option('--wait', 'Wait until the job finishes')
1379
+ .option('--quiet', 'Suppress progress output')
1380
+ .option('--json', 'Output as JSON')
1381
+ .action(async (registerJobId, options) => {
1382
+ try {
1383
+ await (0, register_2.imagingRegisterStatusCommand)(registerJobId, options);
1384
+ }
1385
+ catch (error) {
1386
+ logger_1.Logger.error(`imaging register-status failed: ${error}`);
1387
+ process.exit(1);
1388
+ }
1389
+ });
1348
1390
  // Workspace commands — the shared intra-LLM case workspace (append-only,
1349
1391
  // hash-chained log that Claude Code + Grok Build co-edit via biofs-node).
1350
1392
  const workspaceCmd = program
@@ -3062,7 +3104,7 @@ researcherCmd
3062
3104
  .option('--provider <provider>', 'Force a specific provider (orcid, google, linkedin, twitter, apple, metamask)')
3063
3105
  .action(async (options) => {
3064
3106
  try {
3065
- await (0, register_2.researcherRegisterCommand)(options);
3107
+ await (0, register_3.researcherRegisterCommand)(options);
3066
3108
  }
3067
3109
  catch (error) {
3068
3110
  logger_1.Logger.error(`Researcher registration failed: ${error}`);
@@ -4300,6 +4342,61 @@ program
4300
4342
  }
4301
4343
  });
4302
4344
  // Show welcome message if no command
4345
+ // Carbon-X command group: variant pathogenicity of one owned biofile, scored on a GPU VM by
4346
+ // biofs-node (biocid in, biocid out; no genomic bytes on this machine).
4347
+ const carbonxCmd = program
4348
+ .command('carbonx')
4349
+ .description('Carbon-X DNA language model: variant pathogenicity screen of a VCF or SOMOS genotype biocid, server-side');
4350
+ carbonxCmd
4351
+ .command('score <input_biocid>')
4352
+ .description('Submit a Carbon-X screen of one biofile you own (germline VCF or SOMOS/23andMe genotypes)')
4353
+ .option('--window <bp>', 'sequence window centered on each variant, 512 to 8192', '4096')
4354
+ .option('--max-plp <n>', 'cap on ClinVar Pathogenic/Likely pathogenic calls scored', '200')
4355
+ .option('--max-vus <n>', 'cap on ClinVar Uncertain significance calls scored', '400')
4356
+ .option('--max-conflicting <n>', 'cap on ClinVar conflicting calls scored', '200')
4357
+ .option('--max-blb <n>', 'seeded sample of ClinVar Benign/Likely benign calls used as negative controls', '300')
4358
+ .option('--plan-only', 'select and count the variants, call no model')
4359
+ .option('--no-rationale', 'do not store the model rationale in the report')
4360
+ .option('--label <text>', 'free label for the job')
4361
+ .option('--wait', 'poll until the job finishes')
4362
+ .option('--json', 'JSON output')
4363
+ .action(async (inputBiocid, options) => {
4364
+ try {
4365
+ await (0, carbonx_1.carbonxScoreCommand)(inputBiocid, { ...options, noRationale: options.rationale === false });
4366
+ }
4367
+ catch (error) {
4368
+ logger_1.Logger.error(`carbonx score failed: ${error?.message || error}`);
4369
+ process.exit(1);
4370
+ }
4371
+ });
4372
+ carbonxCmd
4373
+ .command('report <carbonx_job_id>')
4374
+ .description('Read the Markdown (default) or JSON report of a finished Carbon-X job (owner only, sha256 checked)')
4375
+ .option('--format <fmt>', 'md or json', 'md')
4376
+ .option('--out <file>', 'write to a file (mode 600) instead of stdout')
4377
+ .action(async (jobId, options) => {
4378
+ try {
4379
+ await (0, carbonx_1.carbonxReportCommand)(jobId, options);
4380
+ }
4381
+ catch (error) {
4382
+ logger_1.Logger.error(`carbonx report failed: ${error?.message || error}`);
4383
+ process.exit(1);
4384
+ }
4385
+ });
4386
+ carbonxCmd
4387
+ .command('status <carbonx_job_id>')
4388
+ .description('Status, selection counts, metrics and report biocids of a Carbon-X job')
4389
+ .option('--wait', 'poll until the job finishes')
4390
+ .option('--json', 'JSON output')
4391
+ .action(async (jobId, options) => {
4392
+ try {
4393
+ await (0, carbonx_1.carbonxStatusCommand)(jobId, options);
4394
+ }
4395
+ catch (error) {
4396
+ logger_1.Logger.error(`carbonx status failed: ${error?.message || error}`);
4397
+ process.exit(1);
4398
+ }
4399
+ });
4303
4400
  if (process.argv.length === 2) {
4304
4401
  console.log(chalk_1.default.cyan('\n╔═════════════════════════════════════════════╗'));
4305
4402
  console.log(chalk_1.default.cyan(`║ BioFS CLI v${String(version_1.BIOFS_VERSION).padEnd(31)}║`));