@genobank/biofs 3.22.0 → 3.23.0
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/CHANGELOG.md +32 -0
- package/dist/abi/sequentia/ConsentGrant.json +1909 -0
- package/dist/commands/admin/verify-lab.js +1 -1
- package/dist/commands/admin/verify-lab.js.map +1 -1
- package/dist/commands/alphagenome/index.d.ts +26 -0
- package/dist/commands/alphagenome/index.d.ts.map +1 -0
- package/dist/commands/alphagenome/index.js +72 -0
- package/dist/commands/alphagenome/index.js.map +1 -0
- package/dist/commands/annotate/signed_headers.d.ts +5 -0
- package/dist/commands/annotate/signed_headers.d.ts.map +1 -0
- package/dist/commands/annotate/signed_headers.js +10 -0
- package/dist/commands/annotate/signed_headers.js.map +1 -0
- package/dist/commands/annotate/status.d.ts.map +1 -1
- package/dist/commands/annotate/status.js +4 -0
- package/dist/commands/annotate/status.js.map +1 -1
- package/dist/commands/annotate/submit.d.ts +4 -1
- package/dist/commands/annotate/submit.d.ts.map +1 -1
- package/dist/commands/annotate/submit.js +41 -12
- package/dist/commands/annotate/submit.js.map +1 -1
- package/dist/commands/biofiles.d.ts.map +1 -1
- package/dist/commands/biofiles.js +10 -2
- package/dist/commands/biofiles.js.map +1 -1
- package/dist/commands/clawbio/submit.d.ts +24 -0
- package/dist/commands/clawbio/submit.d.ts.map +1 -0
- package/dist/commands/clawbio/submit.js +175 -0
- package/dist/commands/clawbio/submit.js.map +1 -0
- package/dist/commands/consent.d.ts +1 -0
- package/dist/commands/consent.d.ts.map +1 -1
- package/dist/commands/consent.js +3 -2
- package/dist/commands/consent.js.map +1 -1
- package/dist/commands/context/create.d.ts.map +1 -1
- package/dist/commands/context/create.js +40 -5
- package/dist/commands/context/create.js.map +1 -1
- package/dist/commands/crypt4gh.d.ts +24 -0
- package/dist/commands/crypt4gh.d.ts.map +1 -0
- package/dist/commands/crypt4gh.js +220 -0
- package/dist/commands/crypt4gh.js.map +1 -0
- package/dist/commands/fluency/index.d.ts +6 -0
- package/dist/commands/fluency/index.d.ts.map +1 -1
- package/dist/commands/fluency/index.js +64 -0
- package/dist/commands/fluency/index.js.map +1 -1
- package/dist/commands/fourier-score.d.ts +2 -0
- package/dist/commands/fourier-score.d.ts.map +1 -1
- package/dist/commands/fourier-score.js +201 -107
- package/dist/commands/fourier-score.js.map +1 -1
- package/dist/commands/fusion-evidence/index.d.ts +25 -0
- package/dist/commands/fusion-evidence/index.d.ts.map +1 -0
- package/dist/commands/fusion-evidence/index.js +136 -0
- package/dist/commands/fusion-evidence/index.js.map +1 -0
- package/dist/commands/governance.d.ts +46 -0
- package/dist/commands/governance.d.ts.map +1 -0
- package/dist/commands/governance.js +126 -0
- package/dist/commands/governance.js.map +1 -0
- package/dist/commands/humanmark.d.ts +68 -0
- package/dist/commands/humanmark.d.ts.map +1 -0
- package/dist/commands/humanmark.js +278 -0
- package/dist/commands/humanmark.js.map +1 -0
- package/dist/commands/imaging/compare.d.ts +1 -0
- package/dist/commands/imaging/compare.d.ts.map +1 -1
- package/dist/commands/imaging/compare.js +1 -0
- package/dist/commands/imaging/compare.js.map +1 -1
- package/dist/commands/imaging/lesions.d.ts +1 -0
- package/dist/commands/imaging/lesions.d.ts.map +1 -1
- package/dist/commands/imaging/lesions.js +2 -1
- package/dist/commands/imaging/lesions.js.map +1 -1
- package/dist/commands/imaging/register.d.ts +1 -0
- package/dist/commands/imaging/register.d.ts.map +1 -1
- package/dist/commands/imaging/register.js +24 -0
- package/dist/commands/imaging/register.js.map +1 -1
- package/dist/commands/imaging/trajectory.d.ts +1 -0
- package/dist/commands/imaging/trajectory.d.ts.map +1 -1
- package/dist/commands/imaging/trajectory.js +2 -1
- package/dist/commands/imaging/trajectory.js.map +1 -1
- package/dist/commands/imaging/twin.d.ts +1 -0
- package/dist/commands/imaging/twin.d.ts.map +1 -1
- package/dist/commands/imaging/twin.js +1 -0
- package/dist/commands/imaging/twin.js.map +1 -1
- package/dist/commands/inventory-register-sqlite.d.ts +10 -0
- package/dist/commands/inventory-register-sqlite.d.ts.map +1 -1
- package/dist/commands/inventory-register-sqlite.js +62 -8
- package/dist/commands/inventory-register-sqlite.js.map +1 -1
- package/dist/commands/job/submit-clara.d.ts.map +1 -1
- package/dist/commands/job/submit-clara.js +71 -50
- package/dist/commands/job/submit-clara.js.map +1 -1
- package/dist/commands/kiosk/canon.d.ts +95 -0
- package/dist/commands/kiosk/canon.d.ts.map +1 -0
- package/dist/commands/kiosk/canon.js +120 -0
- package/dist/commands/kiosk/canon.js.map +1 -0
- package/dist/commands/kiosk/cli.d.ts +12 -0
- package/dist/commands/kiosk/cli.d.ts.map +1 -0
- package/dist/commands/kiosk/cli.js +784 -0
- package/dist/commands/kiosk/cli.js.map +1 -0
- package/dist/commands/kiosk/client.d.ts +32 -0
- package/dist/commands/kiosk/client.d.ts.map +1 -0
- package/dist/commands/kiosk/client.js +179 -0
- package/dist/commands/kiosk/client.js.map +1 -0
- package/dist/commands/kiosk/cryptobox.d.ts +41 -0
- package/dist/commands/kiosk/cryptobox.d.ts.map +1 -0
- package/dist/commands/kiosk/cryptobox.js +126 -0
- package/dist/commands/kiosk/cryptobox.js.map +1 -0
- package/dist/commands/kiosk/gate.d.ts +13 -0
- package/dist/commands/kiosk/gate.d.ts.map +1 -0
- package/dist/commands/kiosk/gate.js +174 -0
- package/dist/commands/kiosk/gate.js.map +1 -0
- package/dist/commands/kiosk/home.d.ts +80 -0
- package/dist/commands/kiosk/home.d.ts.map +1 -0
- package/dist/commands/kiosk/home.js +265 -0
- package/dist/commands/kiosk/home.js.map +1 -0
- package/dist/commands/kiosk/hooks.d.ts +24 -0
- package/dist/commands/kiosk/hooks.d.ts.map +1 -0
- package/dist/commands/kiosk/hooks.js +305 -0
- package/dist/commands/kiosk/hooks.js.map +1 -0
- package/dist/commands/kiosk/invitemail.d.ts +17 -0
- package/dist/commands/kiosk/invitemail.d.ts.map +1 -0
- package/dist/commands/kiosk/invitemail.js +58 -0
- package/dist/commands/kiosk/invitemail.js.map +1 -0
- package/dist/commands/kiosk/main.d.ts +7 -0
- package/dist/commands/kiosk/main.d.ts.map +1 -0
- package/dist/commands/kiosk/main.js +20 -0
- package/dist/commands/kiosk/main.js.map +1 -0
- package/dist/commands/kiosk/mcp.d.ts +28 -0
- package/dist/commands/kiosk/mcp.d.ts.map +1 -0
- package/dist/commands/kiosk/mcp.js +304 -0
- package/dist/commands/kiosk/mcp.js.map +1 -0
- package/dist/commands/kiosk/pairing.d.ts +28 -0
- package/dist/commands/kiosk/pairing.d.ts.map +1 -0
- package/dist/commands/kiosk/pairing.js +147 -0
- package/dist/commands/kiosk/pairing.js.map +1 -0
- package/dist/commands/kiosk/presence.d.ts +11 -0
- package/dist/commands/kiosk/presence.d.ts.map +1 -0
- package/dist/commands/kiosk/presence.js +105 -0
- package/dist/commands/kiosk/presence.js.map +1 -0
- package/dist/commands/kiosk/profile.d.ts +59 -0
- package/dist/commands/kiosk/profile.d.ts.map +1 -0
- package/dist/commands/kiosk/profile.js +266 -0
- package/dist/commands/kiosk/profile.js.map +1 -0
- package/dist/commands/kiosk/room.d.ts +252 -0
- package/dist/commands/kiosk/room.d.ts.map +1 -0
- package/dist/commands/kiosk/room.js +1057 -0
- package/dist/commands/kiosk/room.js.map +1 -0
- package/dist/commands/mirror.d.ts +16 -0
- package/dist/commands/mirror.d.ts.map +1 -0
- package/dist/commands/mirror.js +172 -0
- package/dist/commands/mirror.js.map +1 -0
- package/dist/commands/neoantigen/align.d.ts +15 -0
- package/dist/commands/neoantigen/align.d.ts.map +1 -0
- package/dist/commands/neoantigen/align.js +74 -0
- package/dist/commands/neoantigen/align.js.map +1 -0
- package/dist/commands/neoantigen/fabricate.d.ts +20 -0
- package/dist/commands/neoantigen/fabricate.d.ts.map +1 -0
- package/dist/commands/neoantigen/fabricate.js +119 -0
- package/dist/commands/neoantigen/fabricate.js.map +1 -0
- package/dist/commands/neoantigen/ingest.d.ts +14 -0
- package/dist/commands/neoantigen/ingest.d.ts.map +1 -0
- package/dist/commands/neoantigen/ingest.js +62 -0
- package/dist/commands/neoantigen/ingest.js.map +1 -0
- package/dist/commands/neoantigen/status.d.ts +4 -0
- package/dist/commands/neoantigen/status.d.ts.map +1 -0
- package/dist/commands/neoantigen/status.js +69 -0
- package/dist/commands/neoantigen/status.js.map +1 -0
- package/dist/commands/neoantigen-pipeline/index.d.ts +146 -2
- package/dist/commands/neoantigen-pipeline/index.d.ts.map +1 -1
- package/dist/commands/neoantigen-pipeline/index.js +413 -1
- package/dist/commands/neoantigen-pipeline/index.js.map +1 -1
- package/dist/commands/onramp/huggingface.d.ts +33 -0
- package/dist/commands/onramp/huggingface.d.ts.map +1 -0
- package/dist/commands/onramp/huggingface.js +124 -0
- package/dist/commands/onramp/huggingface.js.map +1 -0
- package/dist/commands/parabricks/index.d.ts +3 -1
- package/dist/commands/parabricks/index.d.ts.map +1 -1
- package/dist/commands/parabricks/index.js +16 -6
- package/dist/commands/parabricks/index.js.map +1 -1
- package/dist/commands/parabricks/registry.json +105 -3
- package/dist/commands/protein-impact/benchmark.d.ts +34 -0
- package/dist/commands/protein-impact/benchmark.d.ts.map +1 -0
- package/dist/commands/protein-impact/benchmark.js +75 -0
- package/dist/commands/protein-impact/benchmark.js.map +1 -0
- package/dist/commands/protein-impact/benchmark_v1.json +1 -0
- package/dist/commands/protein-impact/constants.d.ts +54 -0
- package/dist/commands/protein-impact/constants.d.ts.map +1 -0
- package/dist/commands/protein-impact/constants.js +47 -0
- package/dist/commands/protein-impact/constants.js.map +1 -0
- package/dist/commands/protein-impact/core.d.ts +145 -0
- package/dist/commands/protein-impact/core.d.ts.map +1 -0
- package/dist/commands/protein-impact/core.js +288 -0
- package/dist/commands/protein-impact/core.js.map +1 -0
- package/dist/commands/protein-impact/domain_table.json +23 -0
- package/dist/commands/protein-impact/domains.d.ts +9 -0
- package/dist/commands/protein-impact/domains.d.ts.map +1 -0
- package/dist/commands/protein-impact/domains.js +29 -0
- package/dist/commands/protein-impact/domains.js.map +1 -0
- package/dist/commands/protein-impact/estimate.d.ts +48 -0
- package/dist/commands/protein-impact/estimate.d.ts.map +1 -0
- package/dist/commands/protein-impact/estimate.js +101 -0
- package/dist/commands/protein-impact/estimate.js.map +1 -0
- package/dist/commands/protein-impact/exec.d.ts +60 -0
- package/dist/commands/protein-impact/exec.d.ts.map +1 -0
- package/dist/commands/protein-impact/exec.js +227 -0
- package/dist/commands/protein-impact/exec.js.map +1 -0
- package/dist/commands/protein-impact/features.d.ts +24 -0
- package/dist/commands/protein-impact/features.d.ts.map +1 -0
- package/dist/commands/protein-impact/features.js +93 -0
- package/dist/commands/protein-impact/features.js.map +1 -0
- package/dist/commands/protein-impact/gate.d.ts +94 -0
- package/dist/commands/protein-impact/gate.d.ts.map +1 -0
- package/dist/commands/protein-impact/gate.js +120 -0
- package/dist/commands/protein-impact/gate.js.map +1 -0
- package/dist/commands/protein-impact/gate_rules.json +10 -0
- package/dist/commands/protein-impact/guard.d.ts +44 -0
- package/dist/commands/protein-impact/guard.d.ts.map +1 -0
- package/dist/commands/protein-impact/guard.js +189 -0
- package/dist/commands/protein-impact/guard.js.map +1 -0
- package/dist/commands/protein-impact/metrics.d.ts +44 -0
- package/dist/commands/protein-impact/metrics.d.ts.map +1 -0
- package/dist/commands/protein-impact/metrics.js +178 -0
- package/dist/commands/protein-impact/metrics.js.map +1 -0
- package/dist/commands/protein-impact/numbering.d.ts +33 -0
- package/dist/commands/protein-impact/numbering.d.ts.map +1 -0
- package/dist/commands/protein-impact/numbering.js +115 -0
- package/dist/commands/protein-impact/numbering.js.map +1 -0
- package/dist/commands/protein-impact/register.d.ts +6 -0
- package/dist/commands/protein-impact/register.d.ts.map +1 -0
- package/dist/commands/protein-impact/register.js +139 -0
- package/dist/commands/protein-impact/register.js.map +1 -0
- package/dist/commands/protein-impact/request.d.ts +14 -0
- package/dist/commands/protein-impact/request.d.ts.map +1 -0
- package/dist/commands/protein-impact/request.js +73 -0
- package/dist/commands/protein-impact/request.js.map +1 -0
- package/dist/commands/protein-impact/submit.d.ts +117 -0
- package/dist/commands/protein-impact/submit.d.ts.map +1 -0
- package/dist/commands/protein-impact/submit.js +460 -0
- package/dist/commands/protein-impact/submit.js.map +1 -0
- package/dist/commands/protein-impact/tools.lock.json +53 -0
- package/dist/commands/protein-impact/tools_lock.d.ts +41 -0
- package/dist/commands/protein-impact/tools_lock.d.ts.map +1 -0
- package/dist/commands/protein-impact/tools_lock.js +52 -0
- package/dist/commands/protein-impact/tools_lock.js.map +1 -0
- package/dist/commands/psm-consensus.d.ts.map +1 -1
- package/dist/commands/psm-consensus.js +65 -26
- package/dist/commands/psm-consensus.js.map +1 -1
- package/dist/commands/reconcile-owners.d.ts +21 -0
- package/dist/commands/reconcile-owners.d.ts.map +1 -0
- package/dist/commands/reconcile-owners.js +86 -0
- package/dist/commands/reconcile-owners.js.map +1 -0
- package/dist/commands/reference-register/index.d.ts +8 -0
- package/dist/commands/reference-register/index.d.ts.map +1 -0
- package/dist/commands/reference-register/index.js +58 -0
- package/dist/commands/reference-register/index.js.map +1 -0
- package/dist/commands/register-derived-file.d.ts +9 -0
- package/dist/commands/register-derived-file.d.ts.map +1 -0
- package/dist/commands/register-derived-file.js +101 -0
- package/dist/commands/register-derived-file.js.map +1 -0
- package/dist/commands/rrm-consensus.d.ts.map +1 -1
- package/dist/commands/rrm-consensus.js +65 -26
- package/dist/commands/rrm-consensus.js.map +1 -1
- package/dist/commands/rrm-validate.d.ts +22 -0
- package/dist/commands/rrm-validate.d.ts.map +1 -0
- package/dist/commands/rrm-validate.js +109 -0
- package/dist/commands/rrm-validate.js.map +1 -0
- package/dist/commands/tele.d.ts +1 -0
- package/dist/commands/tele.d.ts.map +1 -1
- package/dist/commands/tele.js +37 -2
- package/dist/commands/tele.js.map +1 -1
- package/dist/commands/tokenize.d.ts.map +1 -1
- package/dist/commands/tokenize.js +35 -0
- package/dist/commands/tokenize.js.map +1 -1
- package/dist/commands/upload.d.ts +28 -1
- package/dist/commands/upload.d.ts.map +1 -1
- package/dist/commands/upload.js +174 -31
- package/dist/commands/upload.js.map +1 -1
- package/dist/commands/vault/mount.d.ts.map +1 -1
- package/dist/commands/vault/mount.js +6 -0
- package/dist/commands/vault/mount.js.map +1 -1
- package/dist/commands/workspace.d.ts +2 -0
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +16 -4
- package/dist/commands/workspace.js.map +1 -1
- package/dist/commands/x402/submit.d.ts.map +1 -1
- package/dist/commands/x402/submit.js +7 -4
- package/dist/commands/x402/submit.js.map +1 -1
- package/dist/index.js +810 -31
- package/dist/index.js.map +1 -1
- package/dist/lib/api/bionft-client.d.ts.map +1 -1
- package/dist/lib/api/bionft-client.js +1 -1
- package/dist/lib/api/bionft-client.js.map +1 -1
- package/dist/lib/api/fuse-client.d.ts.map +1 -1
- package/dist/lib/api/fuse-client.js +8 -1
- package/dist/lib/api/fuse-client.js.map +1 -1
- package/dist/lib/biofiles/resolver.d.ts.map +1 -1
- package/dist/lib/biofiles/resolver.js +5 -2
- package/dist/lib/biofiles/resolver.js.map +1 -1
- package/dist/lib/crypt4gh/bind.d.ts +51 -0
- package/dist/lib/crypt4gh/bind.d.ts.map +1 -0
- package/dist/lib/crypt4gh/bind.js +140 -0
- package/dist/lib/crypt4gh/bind.js.map +1 -0
- package/dist/lib/crypt4gh/index.d.ts +45 -0
- package/dist/lib/crypt4gh/index.d.ts.map +1 -0
- package/dist/lib/crypt4gh/index.js +391 -0
- package/dist/lib/crypt4gh/index.js.map +1 -0
- package/dist/lib/gene-map.d.ts.map +1 -1
- package/dist/lib/gene-map.js +13 -0
- package/dist/lib/gene-map.js.map +1 -1
- package/dist/lib/rrm_fft.py +555 -0
- package/dist/lib/sequentia/BioPIL.js +1 -1
- package/dist/lib/sequentia/BioPIL.js.map +1 -1
- package/dist/lib/sequentia/ConsentManager.js +1 -1
- package/dist/lib/sequentia/ConsentManager.js.map +1 -1
- package/dist/lib/sequentia/OpenCravatJobs.js +1 -1
- package/dist/lib/sequentia/OpenCravatJobs.js.map +1 -1
- package/dist/lib/sequentia/PaymentRouter.js +1 -1
- package/dist/lib/sequentia/PaymentRouter.js.map +1 -1
- package/dist/lib/sequentia/consent-grant-c2pa.d.ts +134 -0
- package/dist/lib/sequentia/consent-grant-c2pa.d.ts.map +1 -0
- package/dist/lib/sequentia/consent-grant-c2pa.js +218 -0
- package/dist/lib/sequentia/consent-grant-c2pa.js.map +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ const umount_1 = require("./commands/umount");
|
|
|
28
28
|
const tokenize_1 = require("./commands/tokenize");
|
|
29
29
|
const tokenize_fastqs_1 = require("./commands/tokenize-fastqs");
|
|
30
30
|
const tokenize_biosample_1 = require("./commands/tokenize-biosample");
|
|
31
|
+
const humanmark_1 = require("./commands/humanmark");
|
|
31
32
|
const link_clara_1 = require("./commands/link-clara");
|
|
32
33
|
const family_status_1 = require("./commands/family-status");
|
|
33
34
|
const issue_1 = require("./commands/cred/issue");
|
|
@@ -59,6 +60,7 @@ const stream_1 = require("./commands/stream");
|
|
|
59
60
|
const pipe_1 = require("./commands/pipe");
|
|
60
61
|
const alias_1 = require("./commands/alias");
|
|
61
62
|
const htsget_1 = require("./commands/htsget");
|
|
63
|
+
const crypt4gh_1 = require("./commands/crypt4gh");
|
|
62
64
|
const tele_1 = require("./commands/tele");
|
|
63
65
|
const submit_clara_1 = require("./commands/job/submit-clara");
|
|
64
66
|
const recall_1 = require("./commands/job/recall");
|
|
@@ -103,6 +105,10 @@ const submit_6 = require("./commands/sv-call/submit");
|
|
|
103
105
|
const exec_4 = require("./commands/sv-call/exec");
|
|
104
106
|
const submit_7 = require("./commands/qc/submit");
|
|
105
107
|
const exec_5 = require("./commands/qc/exec");
|
|
108
|
+
const register_3 = require("./commands/protein-impact/register");
|
|
109
|
+
const register_derived_file_1 = require("./commands/register-derived-file");
|
|
110
|
+
const fusion_evidence_1 = require("./commands/fusion-evidence");
|
|
111
|
+
const mirror_1 = require("./commands/mirror");
|
|
106
112
|
const submit_8 = require("./commands/verkko/submit");
|
|
107
113
|
const exec_6 = require("./commands/verkko/exec");
|
|
108
114
|
const submit_9 = require("./commands/ont-variants/submit");
|
|
@@ -112,11 +118,17 @@ const exec_8 = require("./commands/hifi-align/exec");
|
|
|
112
118
|
const register_derived_1 = require("./commands/register-derived");
|
|
113
119
|
const parabricks_1 = require("./commands/parabricks");
|
|
114
120
|
const inventory_register_1 = require("./commands/inventory-register");
|
|
121
|
+
const reference_register_1 = require("./commands/reference-register");
|
|
122
|
+
const alphagenome_1 = require("./commands/alphagenome");
|
|
115
123
|
const inventory_delegate_1 = require("./commands/inventory-delegate");
|
|
116
124
|
const job_view_1 = require("./commands/job-view");
|
|
117
125
|
const inventory_list_1 = require("./commands/inventory-list");
|
|
118
126
|
const neoantigen_pipeline_1 = require("./commands/neoantigen-pipeline");
|
|
119
127
|
const onramp_https_1 = require("./commands/onramp-https");
|
|
128
|
+
const fabricate_1 = require("./commands/neoantigen/fabricate");
|
|
129
|
+
const status_6 = require("./commands/neoantigen/status");
|
|
130
|
+
const ingest_1 = require("./commands/neoantigen/ingest");
|
|
131
|
+
const align_1 = require("./commands/neoantigen/align");
|
|
120
132
|
const submit_11 = require("./commands/pbsv/submit");
|
|
121
133
|
const exec_9 = require("./commands/pbsv/exec");
|
|
122
134
|
const submit_12 = require("./commands/repeat-genotype/submit");
|
|
@@ -140,13 +152,19 @@ const benchmark_1 = require("./commands/benchmark");
|
|
|
140
152
|
const runWes_1 = require("./commands/pipeline/runWes");
|
|
141
153
|
const route_1 = require("./commands/route");
|
|
142
154
|
const anchor_1 = require("./commands/route/anchor");
|
|
143
|
-
const
|
|
155
|
+
const status_7 = require("./commands/annotate/status");
|
|
144
156
|
const x402_1 = require("./commands/x402");
|
|
145
157
|
const submit_19 = require("./commands/interpret/submit");
|
|
146
|
-
const
|
|
158
|
+
const status_8 = require("./commands/interpret/status");
|
|
159
|
+
const cassette_1 = require("./commands/cassette");
|
|
160
|
+
const submit_20 = require("./commands/hla-type/submit");
|
|
161
|
+
const regen_1 = require("./commands/cancermap/regen");
|
|
147
162
|
const somos_1 = require("./commands/ancestry/somos");
|
|
148
|
-
const
|
|
149
|
-
const
|
|
163
|
+
const status_9 = require("./commands/ancestry/status");
|
|
164
|
+
const ingest_2 = require("./commands/ancestry/ingest");
|
|
165
|
+
const huggingface_1 = require("./commands/onramp/huggingface");
|
|
166
|
+
const submit_21 = require("./commands/clawbio/submit");
|
|
167
|
+
const governance_1 = require("./commands/governance");
|
|
150
168
|
const share_2 = require("./commands/ancestry/share");
|
|
151
169
|
const register_sequentia_1 = require("./commands/agent/register-sequentia");
|
|
152
170
|
const list_sequentia_1 = require("./commands/agent/list-sequentia");
|
|
@@ -162,6 +180,7 @@ const erase_1 = require("./commands/erase");
|
|
|
162
180
|
const erase_trial_1 = require("./commands/erase-trial");
|
|
163
181
|
const fourier_score_1 = require("./commands/fourier-score");
|
|
164
182
|
const rrm_consensus_1 = require("./commands/rrm-consensus");
|
|
183
|
+
const rrm_validate_1 = require("./commands/rrm-validate");
|
|
165
184
|
const psm_consensus_1 = require("./commands/psm-consensus");
|
|
166
185
|
const bode_1 = require("./commands/bode");
|
|
167
186
|
const wavelet_consensus_1 = require("./commands/wavelet-consensus");
|
|
@@ -186,17 +205,15 @@ const ticket_1 = require("./commands/ticket");
|
|
|
186
205
|
const scan_1 = require("./commands/scan");
|
|
187
206
|
const inventory_1 = require("./commands/inventory");
|
|
188
207
|
const samples_1 = require("./commands/samples");
|
|
189
|
-
const cassette_1 = require("./commands/cassette");
|
|
190
|
-
const submit_20 = require("./commands/hla-type/submit");
|
|
191
|
-
const regen_1 = require("./commands/cancermap/regen");
|
|
192
208
|
const cohort_1 = require("./commands/inventory/cohort");
|
|
193
209
|
const reconcile_2 = require("./commands/job/reconcile");
|
|
194
210
|
const cohort_pipeline_1 = require("./commands/cohort-pipeline");
|
|
195
211
|
const dedup_1 = require("./commands/dedup");
|
|
196
212
|
const claim_1 = require("./commands/claim");
|
|
213
|
+
const reconcile_owners_1 = require("./commands/reconcile-owners");
|
|
197
214
|
const fingerprint_1 = require("./commands/fingerprint");
|
|
198
|
-
const
|
|
199
|
-
const
|
|
215
|
+
const register_4 = require("./commands/researcher/register");
|
|
216
|
+
const status_10 = require("./commands/researcher/status");
|
|
200
217
|
const passport_1 = require("./commands/researcher/passport");
|
|
201
218
|
const errorReporter_1 = require("./utils/errorReporter");
|
|
202
219
|
// CARBONX_VERB_20261023: Carbon-X variant pathogenicity screen through biofs-node
|
|
@@ -350,11 +367,18 @@ program
|
|
|
350
367
|
program
|
|
351
368
|
.command('upload <file>')
|
|
352
369
|
.alias('put')
|
|
353
|
-
.description('
|
|
354
|
-
.option('--type <type>', 'File type (
|
|
355
|
-
.
|
|
356
|
-
.
|
|
357
|
-
.option('--
|
|
370
|
+
.description('Resumable upload of a BAM, CRAM, FASTQ or VCF into your vault under your wallet; the node verifies size and md5 and registers the biocid (replaces the removed chunk upload)')
|
|
371
|
+
.option('--type <type>', 'File type (bam, cram, fastq, vcf, gvcf); guessed from the file name when omitted')
|
|
372
|
+
.requiredOption('--biosample <serial>', 'Origin sample serial from the lab (required; never UNKNOWN)')
|
|
373
|
+
.requiredOption('--originlab <lab>', 'Lab of origin, for example signios (required; never UNKNOWN)')
|
|
374
|
+
.option('--data-category <cat>', 'dna, rna, cdna or other (default dna)')
|
|
375
|
+
.option('--lab-nft <serial>', 'Serial of the lab\'s LabNFT, recorded on the rows for provenance')
|
|
376
|
+
.option('--owner <wallet>', 'Owner wallet (default: the signing wallet; a node operator may name another)')
|
|
377
|
+
.option('--chunk-mb <n>', 'Chunk size in MiB for the resumable upload (default 64)')
|
|
378
|
+
.option('--dry-run', 'Hash the file and print what would be uploaded; send nothing')
|
|
379
|
+
.option('--tokenize', 'Removed: tokenize the registered biocid with its own verb')
|
|
380
|
+
.option('--share-with <lab>', 'Removed: share the registered biocid with its own verb')
|
|
381
|
+
.option('--public', 'Removed')
|
|
358
382
|
.option('--quiet', 'No progress output')
|
|
359
383
|
.action(async (filePath, options) => {
|
|
360
384
|
try {
|
|
@@ -730,7 +754,7 @@ teleCommon(teleCmd
|
|
|
730
754
|
});
|
|
731
755
|
teleCommon(teleCmd
|
|
732
756
|
.command('mosdepth <id>')
|
|
733
|
-
.description('mosdepth coverage (
|
|
757
|
+
.description('mosdepth coverage (refuses to write a BAM on this laptop unless BIOFS_ALLOW_LAPTOP_BAM=1)')
|
|
734
758
|
.option('--out <prefix>', 'output prefix')).action(async (id, options) => {
|
|
735
759
|
try {
|
|
736
760
|
await (0, tele_1.teleMosdepthCommand)(id, options);
|
|
@@ -742,10 +766,11 @@ teleCommon(teleCmd
|
|
|
742
766
|
});
|
|
743
767
|
teleCommon(teleCmd
|
|
744
768
|
.command('igv <id>')
|
|
745
|
-
.description('Write IGV
|
|
769
|
+
.description('Write an IGV.js session. Default does not persist a signed stream URL.')
|
|
746
770
|
.option('--web', 'also open IGV.js HTML')
|
|
747
771
|
.option('--open', 'open the HTML session in the default browser')
|
|
748
|
-
.option('--out <path>', 'output HTML path')
|
|
772
|
+
.option('--out <path>', 'output HTML path')
|
|
773
|
+
.option('--persist-ticket', 'opt-in: embed the htsget URL (contains user_signature) in the file')).action(async (id, options) => {
|
|
749
774
|
try {
|
|
750
775
|
await (0, tele_1.teleIgvCommand)(id, options);
|
|
751
776
|
}
|
|
@@ -855,6 +880,81 @@ htsgetCmd
|
|
|
855
880
|
process.exit(6);
|
|
856
881
|
}
|
|
857
882
|
});
|
|
883
|
+
const crypt4ghCmd = program
|
|
884
|
+
.command('crypt4gh')
|
|
885
|
+
.description('Optional GA4GH crypt4gh v1 envelope. Bound encrypt/decrypt require a BioNFT serial; the node holds the reader secret.');
|
|
886
|
+
crypt4ghCmd
|
|
887
|
+
.command('keygen')
|
|
888
|
+
.description('Generate an extra X25519 crypt4gh recipient keypair (PEM). This is not a BioNFT.')
|
|
889
|
+
.option('--out <dir>', 'directory for recipient.pub / recipient.sk (default ~/.biofs/crypt4gh)')
|
|
890
|
+
.action(async (options) => {
|
|
891
|
+
try {
|
|
892
|
+
await (0, crypt4gh_1.crypt4ghKeygenCommand)(options);
|
|
893
|
+
}
|
|
894
|
+
catch (error) {
|
|
895
|
+
logger_1.Logger.error(`crypt4gh keygen failed: ${error?.message || error}`);
|
|
896
|
+
process.exit(6);
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
crypt4ghCmd
|
|
900
|
+
.command('encrypt')
|
|
901
|
+
.description('Wrap bytes as crypt4gh v1. Default: --serial, BioNFT checkAccess, node-minted reader key.')
|
|
902
|
+
.option('--serial <biosample>', 'biosample serial governed by a BioNFT')
|
|
903
|
+
.option('--allow-unbound', 'EGA interop only: encrypt to a local recipient public key with no BioNFT')
|
|
904
|
+
.option('--recipient-pk <path>', 'extra GA4GH recipient, or required with --allow-unbound')
|
|
905
|
+
.option('-i, --input <path>', 'plaintext path (default stdin)')
|
|
906
|
+
.option('-o, --output <path>', 'ciphertext path (default stdout)')
|
|
907
|
+
.action(async (options) => {
|
|
908
|
+
try {
|
|
909
|
+
await (0, crypt4gh_1.crypt4ghEncryptCommand)(options);
|
|
910
|
+
}
|
|
911
|
+
catch (error) {
|
|
912
|
+
logger_1.Logger.error(`crypt4gh encrypt failed: ${error?.message || error}`);
|
|
913
|
+
process.exit(6);
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
crypt4ghCmd
|
|
917
|
+
.command('decrypt')
|
|
918
|
+
.description('Unwrap crypt4gh v1. Default: --serial, BioNFT checkAccess, node releases the reader secret.')
|
|
919
|
+
.option('--serial <biosample>', 'biosample serial governed by a BioNFT')
|
|
920
|
+
.option('--allow-unbound', 'EGA interop only: decrypt with a local secret key and no BioNFT')
|
|
921
|
+
.option('--sk <path>', 'crypt4gh secret key PEM (required with --allow-unbound)')
|
|
922
|
+
.option('-i, --input <path>', 'ciphertext path (default stdin)')
|
|
923
|
+
.option('-o, --output <path>', 'plaintext path (default stdout)')
|
|
924
|
+
.action(async (options) => {
|
|
925
|
+
try {
|
|
926
|
+
await (0, crypt4gh_1.crypt4ghDecryptCommand)(options);
|
|
927
|
+
}
|
|
928
|
+
catch (error) {
|
|
929
|
+
logger_1.Logger.error(`crypt4gh decrypt failed: ${error?.message || error}`);
|
|
930
|
+
process.exit(6);
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
crypt4ghCmd
|
|
934
|
+
.command('revoke')
|
|
935
|
+
.description('Stop later reader-key release for this serial. Already-held secrets still decrypt.')
|
|
936
|
+
.requiredOption('--serial <biosample>', 'biosample serial whose envelope owner you are')
|
|
937
|
+
.action(async (options) => {
|
|
938
|
+
try {
|
|
939
|
+
await (0, crypt4gh_1.crypt4ghRevokeCommand)(options);
|
|
940
|
+
}
|
|
941
|
+
catch (error) {
|
|
942
|
+
logger_1.Logger.error(`crypt4gh revoke failed: ${error?.message || error}`);
|
|
943
|
+
process.exit(6);
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
crypt4ghCmd
|
|
947
|
+
.command('inspect <file>')
|
|
948
|
+
.description('Print crypt4gh header facts (magic, version, packet count)')
|
|
949
|
+
.action(async (file) => {
|
|
950
|
+
try {
|
|
951
|
+
await (0, crypt4gh_1.crypt4ghInspectCommand)(file);
|
|
952
|
+
}
|
|
953
|
+
catch (error) {
|
|
954
|
+
logger_1.Logger.error(`crypt4gh inspect failed: ${error?.message || error}`);
|
|
955
|
+
process.exit(6);
|
|
956
|
+
}
|
|
957
|
+
});
|
|
858
958
|
// ========================================================================
|
|
859
959
|
// (end v2.7.0 block)
|
|
860
960
|
// ========================================================================
|
|
@@ -918,6 +1018,126 @@ tokenizeCmd
|
|
|
918
1018
|
process.exit(1);
|
|
919
1019
|
}
|
|
920
1020
|
});
|
|
1021
|
+
const humanmarkCmd = program
|
|
1022
|
+
.command('humanmark')
|
|
1023
|
+
.description('Prove a file was authored by a human: screen for PHI/genomic data, '
|
|
1024
|
+
+ 'commit the bytes with the ERC-8356 keccak scheme, emit a portable authorship proof');
|
|
1025
|
+
humanmarkCmd
|
|
1026
|
+
.command('scan <path...>')
|
|
1027
|
+
.description('Screen files and record their content commitments')
|
|
1028
|
+
.option('--quiet', 'No progress output')
|
|
1029
|
+
.action(async (paths, options) => {
|
|
1030
|
+
try {
|
|
1031
|
+
await (0, humanmark_1.humanmarkScanCommand)(paths, options);
|
|
1032
|
+
}
|
|
1033
|
+
catch (error) {
|
|
1034
|
+
logger_1.Logger.error(`HumanMark scan failed: ${error}`);
|
|
1035
|
+
process.exit(1);
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
humanmarkCmd
|
|
1039
|
+
.command('prove <file>')
|
|
1040
|
+
.description('Emit a portable authorship prove bundle (<file>.humanmark.json)')
|
|
1041
|
+
.option('--biocid <uri>', 'biocid:// of the manifest/content')
|
|
1042
|
+
.option('--revocable', 'The work is under a revocable consent grant (clinical)')
|
|
1043
|
+
.option('--snp-bloom <hex>', '50-SNP bloom commitment (from biofs fingerprint)')
|
|
1044
|
+
.option('--fingerprint <vcf>', 'Local VCF/23andMe file to derive the 50-SNP bloom from')
|
|
1045
|
+
.option('--out <path>', 'Output path (default <file>.humanmark.json)')
|
|
1046
|
+
.action(async (file, options) => {
|
|
1047
|
+
try {
|
|
1048
|
+
await (0, humanmark_1.humanmarkProveCommand)(file, options);
|
|
1049
|
+
}
|
|
1050
|
+
catch (error) {
|
|
1051
|
+
logger_1.Logger.error(`HumanMark prove failed: ${error}`);
|
|
1052
|
+
process.exit(1);
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
humanmarkCmd
|
|
1056
|
+
.command('verify <file>')
|
|
1057
|
+
.description('Verify a file against its record and prove bundle')
|
|
1058
|
+
.option('--bundle <path>', 'Prove bundle path')
|
|
1059
|
+
.action(async (file, options) => {
|
|
1060
|
+
try {
|
|
1061
|
+
await (0, humanmark_1.humanmarkVerifyCommand)(file, options);
|
|
1062
|
+
}
|
|
1063
|
+
catch (error) {
|
|
1064
|
+
logger_1.Logger.error(`HumanMark verify failed: ${error}`);
|
|
1065
|
+
process.exit(1);
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
humanmarkCmd
|
|
1069
|
+
.command('bless <file>')
|
|
1070
|
+
.description('Human override to green with a written reason (never genomic)')
|
|
1071
|
+
.option('--reason <text>', 'Written reason (required)')
|
|
1072
|
+
.action(async (file, options) => {
|
|
1073
|
+
try {
|
|
1074
|
+
await (0, humanmark_1.humanmarkBlessCommand)(file, options);
|
|
1075
|
+
}
|
|
1076
|
+
catch (error) {
|
|
1077
|
+
logger_1.Logger.error(`HumanMark bless failed: ${error}`);
|
|
1078
|
+
process.exit(1);
|
|
1079
|
+
}
|
|
1080
|
+
});
|
|
1081
|
+
humanmarkCmd
|
|
1082
|
+
.command('attest <file>')
|
|
1083
|
+
.description('Screen, write a C2PA assertion sidecar, and emit the prove bundle (refuses biocid://)')
|
|
1084
|
+
.option('--biocid <uri>', 'biocid:// to bind in the sidecar')
|
|
1085
|
+
.option('--fingerprint <vcf>', 'Local VCF/23andMe file to derive the 50-SNP bloom from')
|
|
1086
|
+
.option('--out <path>', 'Prove bundle path (default <file>.humanmark.json)')
|
|
1087
|
+
.option('--bind', 'After attest, submit bindContent on Sequentia (needs author Bind sig or HUMANMARK_AUTHOR_KEY)')
|
|
1088
|
+
.action(async (file, options) => {
|
|
1089
|
+
try {
|
|
1090
|
+
await (0, humanmark_1.humanmarkAttestCommand)(file, options);
|
|
1091
|
+
}
|
|
1092
|
+
catch (error) {
|
|
1093
|
+
logger_1.Logger.error(`HumanMark attest failed: ${error}`);
|
|
1094
|
+
process.exit(1);
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
humanmarkCmd
|
|
1098
|
+
.command('bind <file>')
|
|
1099
|
+
.description('Submit ERC-8356 bindContent for a prove bundle on Sequentia ConsentGrant')
|
|
1100
|
+
.option('--bundle <path>', 'Prove bundle (default <file>.humanmark.json)')
|
|
1101
|
+
.option('--sidecar <path>', 'C2PA sidecar (default <file>.c2pa.json)')
|
|
1102
|
+
.option('--attestor <address>', 'Author wallet (default biofs login wallet)')
|
|
1103
|
+
.option('--sig <hex>', 'EIP-712 Bind signature from the attestor')
|
|
1104
|
+
.action(async (file, options) => {
|
|
1105
|
+
try {
|
|
1106
|
+
await (0, humanmark_1.humanmarkBindCommand)(file, options);
|
|
1107
|
+
}
|
|
1108
|
+
catch (error) {
|
|
1109
|
+
logger_1.Logger.error(`HumanMark bind failed: ${error}`);
|
|
1110
|
+
process.exit(1);
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1113
|
+
humanmarkCmd
|
|
1114
|
+
.command('onchain <contentCommitment>')
|
|
1115
|
+
.description('Read the on-chain ERC-8356 C2PA binding for a content commitment')
|
|
1116
|
+
.action(async (contentCommitment) => {
|
|
1117
|
+
try {
|
|
1118
|
+
await (0, humanmark_1.humanmarkOnchainCommand)(contentCommitment);
|
|
1119
|
+
}
|
|
1120
|
+
catch (error) {
|
|
1121
|
+
logger_1.Logger.error(`HumanMark on-chain read failed: ${error}`);
|
|
1122
|
+
process.exit(1);
|
|
1123
|
+
}
|
|
1124
|
+
});
|
|
1125
|
+
program
|
|
1126
|
+
.command('attest <file>')
|
|
1127
|
+
.description('Alias for biofs humanmark attest')
|
|
1128
|
+
.option('--biocid <uri>', 'biocid:// to bind in the sidecar')
|
|
1129
|
+
.option('--fingerprint <vcf>', 'Local VCF/23andMe file to derive the 50-SNP bloom from')
|
|
1130
|
+
.option('--out <path>', 'Prove bundle path (default <file>.humanmark.json)')
|
|
1131
|
+
.option('--bind', 'After attest, submit bindContent on Sequentia')
|
|
1132
|
+
.action(async (file, options) => {
|
|
1133
|
+
try {
|
|
1134
|
+
await (0, humanmark_1.humanmarkAttestCommand)(file, options);
|
|
1135
|
+
}
|
|
1136
|
+
catch (error) {
|
|
1137
|
+
logger_1.Logger.error(`HumanMark attest failed: ${error}`);
|
|
1138
|
+
process.exit(1);
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
921
1141
|
// Link command group - Link derivative NFTs to BioNFTs
|
|
922
1142
|
const linkCmd = program
|
|
923
1143
|
.command('link')
|
|
@@ -1079,6 +1299,24 @@ program
|
|
|
1079
1299
|
process.exit(1);
|
|
1080
1300
|
}
|
|
1081
1301
|
});
|
|
1302
|
+
// Reconcile-owners command - give every ownerless inventory row its true owner (admin; dry run by default)
|
|
1303
|
+
program
|
|
1304
|
+
.command('reconcile-owners')
|
|
1305
|
+
.description('NODE OPERATOR: give inventory rows with no owner their true owner (vault path, registry, serial or fingerprint); never invents an owner, leaves the unresolved untouched; dry run unless --apply')
|
|
1306
|
+
.option('--owner <wallet>', 'Only rows that resolve to this wallet (default: any)')
|
|
1307
|
+
.option('--prefix <path>', 'Only rows whose object path starts with this prefix (e.g. a wallet vault path)')
|
|
1308
|
+
.option('--limit <n>', 'Maximum rows examined (default 500, at most 5000)')
|
|
1309
|
+
.option('--apply', 'Actually write the owner (default is dry-run)')
|
|
1310
|
+
.option('--json', 'Output as JSON')
|
|
1311
|
+
.action(async (options) => {
|
|
1312
|
+
try {
|
|
1313
|
+
await (0, reconcile_owners_1.reconcileOwnersCommand)(options);
|
|
1314
|
+
}
|
|
1315
|
+
catch (error) {
|
|
1316
|
+
logger_1.Logger.error(`reconcile-owners failed: ${error?.message || error}`);
|
|
1317
|
+
process.exit(1);
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1082
1320
|
// Scan command - Walk GCS bucket(s) and register objects in bioroutes.inventory
|
|
1083
1321
|
// Default scope: full canonical bucket fleet. Lab origin inferred per-file.
|
|
1084
1322
|
program
|
|
@@ -1106,8 +1344,9 @@ const annotateCmd = program
|
|
|
1106
1344
|
.description('Annotate VCF files with OpenCRAVAT (curated panels or all 146 annotators)');
|
|
1107
1345
|
// annotate submit - Submit VCF for annotation
|
|
1108
1346
|
annotateCmd
|
|
1109
|
-
.command('submit
|
|
1110
|
-
.description('Submit VCF to OpenCRAVAT for annotation with all 146 annotators')
|
|
1347
|
+
.command('submit [biosample_serial]')
|
|
1348
|
+
.description('Submit VCF to OpenCRAVAT for annotation with all 146 annotators (name the input by sample serial, or by --vcf-biocid)')
|
|
1349
|
+
.option('--vcf-biocid <biocid>', 'The biocid of the VCF or gVCF to annotate (resolved through biocid_registry; the owner is the registry owner)')
|
|
1111
1350
|
.option('--vcf-path <path>', 'Manual VCF path override')
|
|
1112
1351
|
.option('--vcf-uri <uri>', 'GCS or S3 URI for a freshly-minted VCF (skips discovery; used by biofs pipeline)')
|
|
1113
1352
|
.option('--annotators <list>', 'Custom annotators (comma-separated), defaults to all 146')
|
|
@@ -1134,7 +1373,7 @@ annotateCmd
|
|
|
1134
1373
|
.option('--json', 'Output as JSON')
|
|
1135
1374
|
.action(async (jobId, options) => {
|
|
1136
1375
|
try {
|
|
1137
|
-
await (0,
|
|
1376
|
+
await (0, status_7.annotateStatusCommand)(jobId, options);
|
|
1138
1377
|
}
|
|
1139
1378
|
catch (error) {
|
|
1140
1379
|
logger_1.Logger.error(`Status check failed: ${error}`);
|
|
@@ -1177,6 +1416,7 @@ imagingCmd
|
|
|
1177
1416
|
.option('--timepoints <spec>', 'N-timepoint mode: JSON [{label,study,series}] (ordered, first=reference) or "label:study:series,..." — supersedes --baseline/--followup')
|
|
1178
1417
|
.option('--anatomy <name>', 'anatomy to register (abdomen | chest)', 'abdomen')
|
|
1179
1418
|
.option('--registration <mode>', 'deformable (SyNRA + Jacobian, default) or rigid (strict 6-DOF, spot-faithful organ meshes)', 'deformable')
|
|
1419
|
+
.option('--register-job <id>', 'imaging-register job whose frame and gate travel with this result (organ use only; this job keeps its own alignment)')
|
|
1180
1420
|
.option('--baseline-series <uid>', 'override the baseline primary CT series UID')
|
|
1181
1421
|
.option('--followup-series <uid>', 'override the follow-up primary CT series UID')
|
|
1182
1422
|
.option('--wait', 'Wait for the GPU pipeline to finish')
|
|
@@ -1217,6 +1457,7 @@ imagingCmd
|
|
|
1217
1457
|
.requiredOption('--timepoints <spec>', 'oldest→newest: JSON [{label,study,series}] or "label:study[:series],..." (>=3; series auto-resolved if omitted)')
|
|
1218
1458
|
.option('--anatomy <name>', 'anatomy (chest | abdomen)', 'chest')
|
|
1219
1459
|
.option('--thr-hu <hu>', 'override the per-interval significance threshold (default adaptive max(55, 3·det_sigma))')
|
|
1460
|
+
.option('--register-job <id>', 'imaging-register job. HU change stays rigid. Cross-protocol intensities are marked not assessable.')
|
|
1220
1461
|
.option('--wait', 'Wait for the classifier to finish')
|
|
1221
1462
|
.option('--quiet', 'Suppress progress output')
|
|
1222
1463
|
.option('--json', 'Output as JSON')
|
|
@@ -1238,6 +1479,7 @@ imagingCmd
|
|
|
1238
1479
|
.requiredOption('--timepoints <spec>', 'oldest→newest: JSON [{label,study,series}] or "label:study[:series],..." (>=2; series auto-resolved if omitted)')
|
|
1239
1480
|
.option('--anatomy <name>', 'anatomy (chest | abdomen)', 'chest')
|
|
1240
1481
|
.option('--treatment <ctx>', 'treatment context (naive | post_chemo | post_radiation | post_immunotherapy | post_surgery | unknown); non-naive forces human review', 'unknown')
|
|
1482
|
+
.option('--register-job <id>', 'imaging-register job. Lesion voxels stay on the rigid grid. The frame only attributes organs and can force review.')
|
|
1241
1483
|
.option('--wait', 'Wait for the GPU pipeline to finish')
|
|
1242
1484
|
.option('--quiet', 'Suppress progress output')
|
|
1243
1485
|
.option('--json', 'Output as JSON')
|
|
@@ -1329,6 +1571,7 @@ imagingCmd
|
|
|
1329
1571
|
.option('--region <label>', 'focus the rigid alignment on a z-band (needs --zlo/--zhi), e.g. pelvis')
|
|
1330
1572
|
.option('--zlo <frac>', 'region z-fraction lower bound [0..1]')
|
|
1331
1573
|
.option('--zhi <frac>', 'region z-fraction upper bound [0..1]')
|
|
1574
|
+
.option('--register-job <id>', 'imaging-register job. The comparator stays rigid. Cross-protocol HU is marked not assessable.')
|
|
1332
1575
|
.option('--wait', 'Wait for the comparator to finish')
|
|
1333
1576
|
.option('--quiet', 'Suppress progress output')
|
|
1334
1577
|
.option('--json', 'Output as JSON')
|
|
@@ -1360,8 +1603,8 @@ imagingCmd
|
|
|
1360
1603
|
}
|
|
1361
1604
|
});
|
|
1362
1605
|
// imaging register — staged 3D registration of N CT timepoints into one reference
|
|
1363
|
-
// frame with a quality gate (rigid
|
|
1364
|
-
// on the GPU executor via biofs-node.
|
|
1606
|
+
// frame with a quality gate (vertebral rigid, column rigid, piecewise SyN, QC per
|
|
1607
|
+
// stage, transitivity), on the GPU executor via biofs-node.
|
|
1365
1608
|
const collect = (v, prev) => prev.concat([v]);
|
|
1366
1609
|
imagingCmd
|
|
1367
1610
|
.command('register')
|
|
@@ -1383,6 +1626,18 @@ imagingCmd
|
|
|
1383
1626
|
process.exit(1);
|
|
1384
1627
|
}
|
|
1385
1628
|
});
|
|
1629
|
+
imagingCmd
|
|
1630
|
+
.command('register-advise <manifest> [purpose] [pair]')
|
|
1631
|
+
.description('Print what a later verb may do with a finished imaging-register manifest')
|
|
1632
|
+
.action(async (manifest, purpose, pair) => {
|
|
1633
|
+
try {
|
|
1634
|
+
await (0, register_2.imagingRegisterAdviseCommand)(manifest, purpose, pair);
|
|
1635
|
+
}
|
|
1636
|
+
catch (error) {
|
|
1637
|
+
logger_1.Logger.error(`imaging register-advise failed: ${error}`);
|
|
1638
|
+
process.exit(1);
|
|
1639
|
+
}
|
|
1640
|
+
});
|
|
1386
1641
|
imagingCmd
|
|
1387
1642
|
.command('register-status <registerJobId>')
|
|
1388
1643
|
.description('Status and quality gate of an imaging register job')
|
|
@@ -1460,6 +1715,8 @@ workspaceCmd
|
|
|
1460
1715
|
.option('--as <agent_id>', 'Author id (e.g. operator, claude-code, grok-build)', 'operator')
|
|
1461
1716
|
.option('--role <role>', 'Turn role', 'message')
|
|
1462
1717
|
.option('--content <text>', 'Turn content')
|
|
1718
|
+
.option('--content-file <path>', 'Read the turn content from a file (for long turns)')
|
|
1719
|
+
.option('--model <model_id>', 'Model id that authored the turn (recorded on the turn for provenance)')
|
|
1463
1720
|
.option('--ref <biocid:hash:kind...>', 'Data refs, each biocid:content_hash:kind')
|
|
1464
1721
|
.option('--node <url>', 'biofs-node base override')
|
|
1465
1722
|
.option('--json', 'Output as JSON')
|
|
@@ -1797,7 +2054,7 @@ interpretCmd
|
|
|
1797
2054
|
.option('--json', 'Emit JSON')
|
|
1798
2055
|
.action(async (jobId, options) => {
|
|
1799
2056
|
try {
|
|
1800
|
-
await (0,
|
|
2057
|
+
await (0, status_8.interpretStatusCommand)(jobId, options);
|
|
1801
2058
|
}
|
|
1802
2059
|
catch (error) {
|
|
1803
2060
|
logger_1.Logger.error(`Interpretation status check failed: ${error}`);
|
|
@@ -1883,6 +2140,66 @@ cancermapCmd
|
|
|
1883
2140
|
const ancestryCmd = program
|
|
1884
2141
|
.command('ancestry')
|
|
1885
2142
|
.description('SOMOS 24-population ancestry — supervised-ADMIXTURE projection, optionally encrypted (genome never decrypted)');
|
|
2143
|
+
// Hugging Face gated-dataset on-ramp (server-side stream into BioRouter).
|
|
2144
|
+
const onrampCmd = program
|
|
2145
|
+
.command('onramp')
|
|
2146
|
+
.description('On-ramp a gated external biodata source into BioRouter (server-side; no genomic bytes on the laptop)');
|
|
2147
|
+
onrampCmd
|
|
2148
|
+
.command('huggingface')
|
|
2149
|
+
.description('Stream a gated Hugging Face dataset into gs://genobank-biorouter and register biocids for a custodian biowallet')
|
|
2150
|
+
.requiredOption('--repo <id>', 'Hugging Face dataset repo (e.g. SageBio/mva-hackathon-2026-data)')
|
|
2151
|
+
.requiredOption('--owner <address>', 'Custodian / family biowallet (EIP-55). Claimable.')
|
|
2152
|
+
.requiredOption('--serial <serial>', 'Origin biosample serial (never UNKNOWN)')
|
|
2153
|
+
.option('--case-id <id>', 'Protocol case id (default MV26-000001)', 'MV26-000001')
|
|
2154
|
+
.option('--originlab <lab>', 'bioagent / originlab (default mva-hackathon)', 'mva-hackathon')
|
|
2155
|
+
.option('--hf-token <token>', 'HF access token (or HF_TOKEN env)')
|
|
2156
|
+
.option('--wait', 'Wait until the server-side stream and registry write finish')
|
|
2157
|
+
.option('--quiet', 'Suppress progress')
|
|
2158
|
+
.option('--json', 'Emit JSON')
|
|
2159
|
+
.action(async (options) => {
|
|
2160
|
+
try {
|
|
2161
|
+
await (0, huggingface_1.hfOnrampCommand)(options);
|
|
2162
|
+
}
|
|
2163
|
+
catch (error) {
|
|
2164
|
+
logger_1.Logger.error(`huggingface on-ramp failed: ${error}`);
|
|
2165
|
+
process.exit(1);
|
|
2166
|
+
}
|
|
2167
|
+
});
|
|
2168
|
+
const clawbioCmd = program
|
|
2169
|
+
.command('clawbio')
|
|
2170
|
+
.description('Independent consensus: ClawBio VEP (Ensembl) + EVEE Evo 2, dispatched on biofs-node');
|
|
2171
|
+
clawbioCmd
|
|
2172
|
+
.command('submit <biosample_serial>')
|
|
2173
|
+
.description('Run ClawBio variant-annotation and EVEE on biofs-node (candidate alleles only; genome stays on the server)')
|
|
2174
|
+
.option('--owner <address>', 'Custodian / family biowallet (EIP-55). Defaults to the logged-in wallet.')
|
|
2175
|
+
.option('--sqlite-biocid <biocid>', 'OpenCRAVAT sqlite biocid override')
|
|
2176
|
+
.option('--candidates-json <path>', 'Optional candidate allele JSON (default: ACMG LoF + MVA genes from the case file)')
|
|
2177
|
+
.option('--max-candidates <n>', 'Cap on alleles sent to VEP/EVEE', '80')
|
|
2178
|
+
.option('--wait', 'Wait until the consensus report is registered')
|
|
2179
|
+
.option('--quiet', 'Suppress progress')
|
|
2180
|
+
.option('--json', 'Emit JSON')
|
|
2181
|
+
.action(async (serial, options) => {
|
|
2182
|
+
try {
|
|
2183
|
+
await (0, submit_21.clawbioSubmitCommand)(serial, options);
|
|
2184
|
+
}
|
|
2185
|
+
catch (error) {
|
|
2186
|
+
logger_1.Logger.error(`clawbio submit failed: ${error}`);
|
|
2187
|
+
process.exit(1);
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
clawbioCmd
|
|
2191
|
+
.command('status <clawbio_job_id>')
|
|
2192
|
+
.description('Poll a biofs-node ClawBio+EVEE consensus job')
|
|
2193
|
+
.option('--json', 'Emit JSON')
|
|
2194
|
+
.action(async (jobId, options) => {
|
|
2195
|
+
try {
|
|
2196
|
+
await (0, submit_21.clawbioStatusCommand)(jobId, options);
|
|
2197
|
+
}
|
|
2198
|
+
catch (error) {
|
|
2199
|
+
logger_1.Logger.error(`clawbio status failed: ${error}`);
|
|
2200
|
+
process.exit(1);
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
1886
2203
|
ancestryCmd
|
|
1887
2204
|
.command('ingest <file>')
|
|
1888
2205
|
.description('Ingest a DTC genotype into the SOMOS vault and register it, yielding a biosample serial')
|
|
@@ -1892,7 +2209,7 @@ ancestryCmd
|
|
|
1892
2209
|
.option('--json', 'Emit JSON')
|
|
1893
2210
|
.action(async (file, options) => {
|
|
1894
2211
|
try {
|
|
1895
|
-
await (0,
|
|
2212
|
+
await (0, ingest_2.ancestryIngestCommand)(file, options);
|
|
1896
2213
|
}
|
|
1897
2214
|
catch (error) {
|
|
1898
2215
|
logger_1.Logger.error(`Ancestry ingest failed: ${error}`);
|
|
@@ -1968,7 +2285,7 @@ ancestryCmd
|
|
|
1968
2285
|
.option('--json', 'Emit JSON')
|
|
1969
2286
|
.action(async (jobId, options) => {
|
|
1970
2287
|
try {
|
|
1971
|
-
await (0,
|
|
2288
|
+
await (0, status_9.ancestryStatusCommand)(jobId, options);
|
|
1972
2289
|
}
|
|
1973
2290
|
catch (error) {
|
|
1974
2291
|
logger_1.Logger.error(`Ancestry status check failed: ${error}`);
|
|
@@ -2262,6 +2579,35 @@ program
|
|
|
2262
2579
|
process.exit(1);
|
|
2263
2580
|
}
|
|
2264
2581
|
});
|
|
2582
|
+
const governanceCmd = program
|
|
2583
|
+
.command('governance')
|
|
2584
|
+
.description('Genome Governance Token for AI Agents: hashed BioNFT grant template (no recontact, 30-day erase, CC BY 4.0 outputs, not medical care)');
|
|
2585
|
+
governanceCmd
|
|
2586
|
+
.command('show')
|
|
2587
|
+
.description('Print the four constraints and the keccak256 termsRef / purposeProfileRef')
|
|
2588
|
+
.option('--json', 'Emit JSON')
|
|
2589
|
+
.action(async (options) => {
|
|
2590
|
+
try {
|
|
2591
|
+
await (0, governance_1.governanceShowCommand)(options);
|
|
2592
|
+
}
|
|
2593
|
+
catch (error) {
|
|
2594
|
+
logger_1.Logger.error(`governance show failed: ${error}`);
|
|
2595
|
+
process.exit(1);
|
|
2596
|
+
}
|
|
2597
|
+
});
|
|
2598
|
+
governanceCmd
|
|
2599
|
+
.command('hash')
|
|
2600
|
+
.description('Print ConsentGrant.termsRef for genobank:consent-template:genome-governance-ai-agent:v1')
|
|
2601
|
+
.option('--json', 'Emit JSON')
|
|
2602
|
+
.action(async (options) => {
|
|
2603
|
+
try {
|
|
2604
|
+
await (0, governance_1.governanceHashCommand)(options);
|
|
2605
|
+
}
|
|
2606
|
+
catch (error) {
|
|
2607
|
+
logger_1.Logger.error(`governance hash failed: ${error}`);
|
|
2608
|
+
process.exit(1);
|
|
2609
|
+
}
|
|
2610
|
+
});
|
|
2265
2611
|
// BioContext manifest commands (v2.6.0)
|
|
2266
2612
|
const contextCmd = program
|
|
2267
2613
|
.command('context')
|
|
@@ -2541,6 +2887,101 @@ qcCmd
|
|
|
2541
2887
|
process.exit(1);
|
|
2542
2888
|
}
|
|
2543
2889
|
});
|
|
2890
|
+
// register-derived-file: file a small derived biofile from a local path into the signer's vault with a biocid and lineage (the `register-derived` group is the GCS and read path)
|
|
2891
|
+
program
|
|
2892
|
+
.command('register-derived-file <file>')
|
|
2893
|
+
.description('Register a small derived biofile (your own, with parent biocids) in your vault: biocid in the registry, lineage kept')
|
|
2894
|
+
.requiredOption('--type <biodata_type>', 'biodata type, e.g. peptide-fasta, peptide-table')
|
|
2895
|
+
.requiredOption('--parent <biocid>', 'parent biocid (repeatable; each must be yours)', (v, acc) => acc.concat([v]), [])
|
|
2896
|
+
.option('--case-id <id>', 'Case identifier')
|
|
2897
|
+
.option('--category <c>', 'data_category (clinical|dna|rna)', 'clinical')
|
|
2898
|
+
.option('--json', 'Output as JSON')
|
|
2899
|
+
.action(async (file, options) => { await (0, register_derived_file_1.registerDerivedCommand)(file, options); });
|
|
2900
|
+
// protein-impact: protein-level impact of known missense substitutions (ITGA2B, ITGB3); analysis only, no design
|
|
2901
|
+
(0, register_3.registerProteinImpact)(program);
|
|
2902
|
+
// mirror — GenoBank.io DR biodata mirror: primary biodata to Cloudflare R2, Crypt4GH-encrypted, server to server
|
|
2903
|
+
const mirror = program
|
|
2904
|
+
.command('mirror')
|
|
2905
|
+
.description('Disaster-recovery mirror of primary biodata to Cloudflare R2, encrypted, server to server (operator only)');
|
|
2906
|
+
mirror
|
|
2907
|
+
.command('plan')
|
|
2908
|
+
.description('Count what a run would copy and delete, with the Google egress estimate (writes nothing)')
|
|
2909
|
+
.option('--targets <buckets>', 'Comma-separated bucket names (default: every bucket)')
|
|
2910
|
+
.option('--no-wait', 'Return the job id instead of waiting for the plan')
|
|
2911
|
+
.option('--json', 'Output as JSON')
|
|
2912
|
+
.action(async (options) => { await (0, mirror_1.mirrorSubmitCommand)('plan', options); });
|
|
2913
|
+
mirror
|
|
2914
|
+
.command('run')
|
|
2915
|
+
.description('Copy every primary file not yet mirrored, then propagate deletions (2 percent guard)')
|
|
2916
|
+
.option('--targets <buckets>', 'Comma-separated bucket names (default: every bucket)')
|
|
2917
|
+
.option('--allow-mass-delete', 'Apply deletions even when they exceed 2 percent of the mirror')
|
|
2918
|
+
.option('--max-mbps <n>', 'Combined read cap in MB/s (default 60)')
|
|
2919
|
+
.option('--workers <n>', 'Files copied in parallel (default 3)')
|
|
2920
|
+
.option('--wait', 'Wait for the run to finish')
|
|
2921
|
+
.option('--json', 'Output as JSON')
|
|
2922
|
+
.action(async (options) => { await (0, mirror_1.mirrorSubmitCommand)('run', options); });
|
|
2923
|
+
mirror
|
|
2924
|
+
.command('status [jobId]')
|
|
2925
|
+
.description('Progress of the latest mirror job, or of one job')
|
|
2926
|
+
.option('--json', 'Output as JSON')
|
|
2927
|
+
.action(async (jobId, options) => { await (0, mirror_1.mirrorStatusCommand)(jobId, options); });
|
|
2928
|
+
mirror
|
|
2929
|
+
.command('jobs')
|
|
2930
|
+
.description('The last 10 mirror jobs and the daily schedule')
|
|
2931
|
+
.option('--json', 'Output as JSON')
|
|
2932
|
+
.action(async (options) => { await (0, mirror_1.mirrorJobsCommand)(options); });
|
|
2933
|
+
mirror
|
|
2934
|
+
.command('schedule')
|
|
2935
|
+
.description('Turn the daily sync on or off (biofs-node runs it; deletions propagate each day)')
|
|
2936
|
+
.option('--daily', 'Run once a day')
|
|
2937
|
+
.option('--off', 'Stop the daily sync')
|
|
2938
|
+
.option('--hour-utc <h>', 'Hour of day in UTC (default 9)')
|
|
2939
|
+
.option('--max-mbps <n>', 'Combined read cap in MB/s for scheduled runs')
|
|
2940
|
+
.option('--workers <n>', 'Files copied in parallel for scheduled runs')
|
|
2941
|
+
.option('--json', 'Output as JSON')
|
|
2942
|
+
.action(async (options) => { await (0, mirror_1.mirrorScheduleCommand)(options); });
|
|
2943
|
+
// MutatomeNFT verbs load only where the private module is installed (git-excluded until filing).
|
|
2944
|
+
try {
|
|
2945
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2946
|
+
require('./commands/mutatome').registerMutatome(program);
|
|
2947
|
+
}
|
|
2948
|
+
catch (e) {
|
|
2949
|
+
if (e?.code !== 'MODULE_NOT_FOUND')
|
|
2950
|
+
throw e;
|
|
2951
|
+
}
|
|
2952
|
+
// Fusion-evidence command group — one candidate fusion transcript tested on the caller's own
|
|
2953
|
+
// RNA (junction reads, every read incl. unmapped) and tumor/normal DNA (copy-number step,
|
|
2954
|
+
// discordant pairs), server-side via biofs-node; inputs are biocids, result is a biocid.
|
|
2955
|
+
const fusionCmd = program
|
|
2956
|
+
.command('fusion-evidence')
|
|
2957
|
+
.description('Test a candidate fusion transcript on your own RNA and tumor/normal DNA, server-side (biocid in, biocid out)');
|
|
2958
|
+
fusionCmd
|
|
2959
|
+
.command('submit', { isDefault: true })
|
|
2960
|
+
.description('Submit a fusion-evidence job to biofs-node')
|
|
2961
|
+
.requiredOption('--five-exon <iv>', "5' partner exon (RNA build), chr:start-end 1-based")
|
|
2962
|
+
.requiredOption('--three-exon <iv>', "3' partner exon (RNA build), chr:start-end 1-based")
|
|
2963
|
+
.option('--five-next-exon <iv>', "the 5' gene's own next exon (canonical competitor)")
|
|
2964
|
+
.option('--three-prev-exon <iv>', "the 3' gene's own previous exon (canonical competitor)")
|
|
2965
|
+
.option('--five-strand <s>', "5' gene strand (+/-)", '+')
|
|
2966
|
+
.option('--three-strand <s>', "3' gene strand (+/-)", '+')
|
|
2967
|
+
.option('--rna <biocid>', 'RNA BAM biocid')
|
|
2968
|
+
.option('--tumor <biocid>', 'Tumor DNA BAM biocid')
|
|
2969
|
+
.option('--normal <biocid>', 'Matched-normal DNA BAM biocid')
|
|
2970
|
+
.option('--dna-junction <spec>', 'Genotype a DNA breakpoint in every DNA input: chr:end+INS+chr:start (RNA build, + strand)')
|
|
2971
|
+
.option('--extra-dna <biocid>', 'Tumor-only DNA BAM in the RNA build, scanned for discordant/split reads (repeatable)', (v, acc) => acc.concat([v]), [])
|
|
2972
|
+
.option('--rna-build <b>', 'RNA BAM reference build (hg38|hs37d5)', 'hg38')
|
|
2973
|
+
.option('--dna-build <b>', 'DNA BAM reference build (hg38|hs37d5)', 'hs37d5')
|
|
2974
|
+
.option('--label <text>', 'Label stored with the job')
|
|
2975
|
+
.option('--case-id <id>', 'Case identifier stored with the result')
|
|
2976
|
+
.option('--wait', 'Poll until the job finishes')
|
|
2977
|
+
.option('--json', 'Output as JSON')
|
|
2978
|
+
.action(async (options) => { await (0, fusion_evidence_1.fusionEvidenceSubmitCommand)(options); });
|
|
2979
|
+
fusionCmd
|
|
2980
|
+
.command('status <fusion_job_id>')
|
|
2981
|
+
.description('Show a fusion-evidence job (only the signer who submitted it can read it)')
|
|
2982
|
+
.option('--wait', 'Poll until the job finishes')
|
|
2983
|
+
.option('--json', 'Output as JSON')
|
|
2984
|
+
.action(async (id, options) => { await (0, fusion_evidence_1.fusionEvidenceStatusCommand)(id, options); });
|
|
2544
2985
|
// Verkko command group — telomere-to-telomere assembly (verkko 2.3.2), biocid-gated
|
|
2545
2986
|
const verkkoCmd = program
|
|
2546
2987
|
.command('verkko')
|
|
@@ -2858,6 +3299,78 @@ hifiAlignCmd
|
|
|
2858
3299
|
process.exit(1);
|
|
2859
3300
|
}
|
|
2860
3301
|
});
|
|
3302
|
+
// ---- neoantigen cassette fabrication + PacBio cassette align ----
|
|
3303
|
+
const neoantigenCmd = program
|
|
3304
|
+
.command('neoantigen')
|
|
3305
|
+
.description('Personalized neoantigen cassette fabricate (cevumeran-style) + PacBio cassette QC align');
|
|
3306
|
+
neoantigenCmd
|
|
3307
|
+
.command('fabricate-cassette <serial>')
|
|
3308
|
+
.description('Fabricate ranked neoantigen cassette FASTA from cancer-map BioCIDs (consensus binders)')
|
|
3309
|
+
.option('--top <n>', 'Top N epitopes to rank (default 16)', '16')
|
|
3310
|
+
.option('--cassette-min <n>', 'Min CD8 epitopes in cassette (default 4)', '4')
|
|
3311
|
+
.option('--cassette-max <n>', 'Max CD8 epitopes in cassette (default 8)', '8')
|
|
3312
|
+
.option('--linker <type>', 'Linker: GPGPG|AAY|GGGGS|EAAAK', 'GPGPG')
|
|
3313
|
+
.option('--binders <list>', 'Comma binders: mhcflurry,netmhcpan,curated', 'mhcflurry,netmhcpan,curated')
|
|
3314
|
+
.option('--mode <mode>', 'fabricate|sim', 'fabricate')
|
|
3315
|
+
.option('--skip-gcs-vcf', 'Curated peptides only (fast smoke)')
|
|
3316
|
+
.option('--wait', 'Poll until job completes')
|
|
3317
|
+
.option('--json', 'JSON output')
|
|
3318
|
+
.option('--quiet', 'Quiet')
|
|
3319
|
+
.action(async (serial, options) => {
|
|
3320
|
+
try {
|
|
3321
|
+
await (0, fabricate_1.neoantigenFabricateCommand)(serial, options);
|
|
3322
|
+
}
|
|
3323
|
+
catch (error) {
|
|
3324
|
+
logger_1.Logger.error(`neoantigen fabricate-cassette failed: ${error}`);
|
|
3325
|
+
process.exit(1);
|
|
3326
|
+
}
|
|
3327
|
+
});
|
|
3328
|
+
neoantigenCmd
|
|
3329
|
+
.command('status <jobId>')
|
|
3330
|
+
.description('Poll cassette fabricate job status')
|
|
3331
|
+
.option('--json', 'JSON output')
|
|
3332
|
+
.action(async (jobId, options) => {
|
|
3333
|
+
try {
|
|
3334
|
+
await (0, status_6.neoantigenStatusCommand)(jobId, options);
|
|
3335
|
+
}
|
|
3336
|
+
catch (error) {
|
|
3337
|
+
logger_1.Logger.error(`neoantigen status failed: ${error}`);
|
|
3338
|
+
process.exit(1);
|
|
3339
|
+
}
|
|
3340
|
+
});
|
|
3341
|
+
neoantigenCmd
|
|
3342
|
+
.command('ingest-reads <source>')
|
|
3343
|
+
.description('Prepare PacBio FASTQ/FASTA biocid for cassette alignment (no laptop bulk genomics)')
|
|
3344
|
+
.option('--serial <serial>', 'Biosample / case serial')
|
|
3345
|
+
.option('--json', 'JSON output')
|
|
3346
|
+
.option('--quiet', 'Quiet')
|
|
3347
|
+
.action(async (source, options) => {
|
|
3348
|
+
try {
|
|
3349
|
+
await (0, ingest_1.neoantigenIngestCommand)(source, options);
|
|
3350
|
+
}
|
|
3351
|
+
catch (error) {
|
|
3352
|
+
logger_1.Logger.error(`neoantigen ingest-reads failed: ${error}`);
|
|
3353
|
+
process.exit(1);
|
|
3354
|
+
}
|
|
3355
|
+
});
|
|
3356
|
+
neoantigenCmd
|
|
3357
|
+
.command('align-cassette')
|
|
3358
|
+
.description('Align PacBio HiFi reads to fabricated mrna-construct cassette FASTA')
|
|
3359
|
+
.requiredOption('--reads <biocid>', 'Reads biocid (PacBio FASTQ/FASTA)')
|
|
3360
|
+
.requiredOption('--cassette <biocid>', 'mrna-construct cassette biocid')
|
|
3361
|
+
.option('--decoy <ref>', 'Optional decoy fasta gs:// or name')
|
|
3362
|
+
.option('--wait', 'Poll until done')
|
|
3363
|
+
.option('--json', 'JSON output')
|
|
3364
|
+
.option('--quiet', 'Quiet')
|
|
3365
|
+
.action(async (options) => {
|
|
3366
|
+
try {
|
|
3367
|
+
await (0, align_1.neoantigenAlignCommand)(options);
|
|
3368
|
+
}
|
|
3369
|
+
catch (error) {
|
|
3370
|
+
logger_1.Logger.error(`neoantigen align-cassette failed: ${error}`);
|
|
3371
|
+
process.exit(1);
|
|
3372
|
+
}
|
|
3373
|
+
});
|
|
2861
3374
|
// ---- downstream verbs the hifi-align keystone unblocks (M3/M4/M5/M9) ----
|
|
2862
3375
|
// pbsv — HiFi read-based structural variants
|
|
2863
3376
|
const pbsvCmd = program.command('pbsv').description('HiFi read-based structural-variant calling (pbsv): submit (client) + exec (VM runner)');
|
|
@@ -3157,7 +3670,7 @@ researcherCmd
|
|
|
3157
3670
|
.option('--provider <provider>', 'Force a specific provider (orcid, google, linkedin, twitter, apple, metamask)')
|
|
3158
3671
|
.action(async (options) => {
|
|
3159
3672
|
try {
|
|
3160
|
-
await (0,
|
|
3673
|
+
await (0, register_4.researcherRegisterCommand)(options);
|
|
3161
3674
|
}
|
|
3162
3675
|
catch (error) {
|
|
3163
3676
|
logger_1.Logger.error(`Researcher registration failed: ${error}`);
|
|
@@ -3171,7 +3684,7 @@ researcherCmd
|
|
|
3171
3684
|
.option('--refresh', 'Refresh profile from server')
|
|
3172
3685
|
.action(async (options) => {
|
|
3173
3686
|
try {
|
|
3174
|
-
await (0,
|
|
3687
|
+
await (0, status_10.researcherStatusCommand)(options);
|
|
3175
3688
|
}
|
|
3176
3689
|
catch (error) {
|
|
3177
3690
|
logger_1.Logger.error(`Researcher status failed: ${error}`);
|
|
@@ -3337,6 +3850,41 @@ program
|
|
|
3337
3850
|
process.exit(1);
|
|
3338
3851
|
}
|
|
3339
3852
|
});
|
|
3853
|
+
const rrmValidateCmd = program
|
|
3854
|
+
.command('rrm-validate')
|
|
3855
|
+
.description('Scale validation of Cosic-RRM / piezoelectric / wavelet variant scores against ClinVar (biofs-node)');
|
|
3856
|
+
rrmValidateCmd
|
|
3857
|
+
.command('clinvar')
|
|
3858
|
+
.description('ClinVar GRCh38 allele VCF on biofs-node: per-gene ΔAUC vs AlphaMissense, protein-class hold-out')
|
|
3859
|
+
.option('--owner <address>', 'Biowallet that owns the derived report (default: logged-in wallet)')
|
|
3860
|
+
.option('--min-stars <n>', 'ClinVar review stars ≥ N (default 1)', '1')
|
|
3861
|
+
.option('--min-n <n>', 'Min P/LP and B/LB missense per gene (default 15)', '15')
|
|
3862
|
+
.option('--max-genes <n>', 'Cap powered genes (0 = all)', '0')
|
|
3863
|
+
.option('--wait', 'Wait until the node job finishes')
|
|
3864
|
+
.option('--quiet', 'Suppress progress')
|
|
3865
|
+
.option('--json', 'Emit JSON')
|
|
3866
|
+
.action(async (options) => {
|
|
3867
|
+
try {
|
|
3868
|
+
await (0, rrm_validate_1.rrmValidateClinvarCommand)(options);
|
|
3869
|
+
}
|
|
3870
|
+
catch (error) {
|
|
3871
|
+
logger_1.Logger.error(`rrm-validate clinvar failed: ${error}`);
|
|
3872
|
+
process.exit(1);
|
|
3873
|
+
}
|
|
3874
|
+
});
|
|
3875
|
+
rrmValidateCmd
|
|
3876
|
+
.command('status <wave_job_id>')
|
|
3877
|
+
.description('Poll a biofs-node ClinVar wave job')
|
|
3878
|
+
.option('--json', 'Emit JSON')
|
|
3879
|
+
.action(async (jobId, options) => {
|
|
3880
|
+
try {
|
|
3881
|
+
await (0, rrm_validate_1.rrmValidateStatusCommand)(jobId, options);
|
|
3882
|
+
}
|
|
3883
|
+
catch (error) {
|
|
3884
|
+
logger_1.Logger.error(`rrm-validate status failed: ${error}`);
|
|
3885
|
+
process.exit(1);
|
|
3886
|
+
}
|
|
3887
|
+
});
|
|
3340
3888
|
// PSM-consensus — Piezoelectric Signal Model: same cross-spectrum maths as
|
|
3341
3889
|
// rrm-consensus, but with side-chain dipole moment (Debye) replacing EIIP.
|
|
3342
3890
|
// Tests the hypothesis that the piezoelectric encoding picks up
|
|
@@ -3417,7 +3965,7 @@ program
|
|
|
3417
3965
|
// Inventory subcommand: register-sqlite (closes v2 audit gap §5 item 2).
|
|
3418
3966
|
program
|
|
3419
3967
|
.command('inventory-register-sqlite <sqlite-path>')
|
|
3420
|
-
.description('Register an externally-produced OpenCRAVAT annotation sqlite into bioroutes.inventory (v3.8.0 endpoint)')
|
|
3968
|
+
.description('Register an externally-produced OpenCRAVAT annotation sqlite into bioroutes.inventory (v3.8.0 endpoint; the path may be local or a gs:// object, which is hashed by stream with no local copy)')
|
|
3421
3969
|
.requiredOption('--sample-serial <serial>', 'Biosample serial identifier (14-digit or lab-case-id form)')
|
|
3422
3970
|
.option('--owner-wallet <addr>', 'Override owner biowallet (default: from `biofs login`)')
|
|
3423
3971
|
.option('--case-id <id>', 'Optional lab case identifier (e.g., TN25-336147)')
|
|
@@ -3818,12 +4366,14 @@ program
|
|
|
3818
4366
|
.option('--format <type>', 'Output format: table | tsv | json (default: table)', 'table')
|
|
3819
4367
|
.option('--output <path>', 'Write output to file instead of stdout')
|
|
3820
4368
|
.option('--plot <path>', 'Render |ΔF| windowed spectrum to PNG (one panel per variant)')
|
|
3821
|
-
.option('--consensus-fc', 'Also score
|
|
3822
|
-
.option('--plot-full <path>', 'Render full-protein |X(k)| spectrum to PNG with f_c annotated (requires
|
|
4369
|
+
.option('--consensus-fc', 'Also score at family characteristic frequency f_c (auto if ~/.biofs/cache/rrm/<gene>.json exists)')
|
|
4370
|
+
.option('--plot-full <path>', 'Render full-protein |X(k)| spectrum to PNG with f_c annotated (requires consensus cache)')
|
|
4371
|
+
.option('--null-model', 'Rank this substitution among the 19 amino acids at the same site')
|
|
4372
|
+
.option('--encoding <eiip|piezo>', 'Per-residue index: Cosic EIIP or side-chain dipole (default eiip)', 'eiip')
|
|
3823
4373
|
.option('--quiet', 'Suppress progress output')
|
|
3824
4374
|
.action(async (variants, options) => {
|
|
3825
4375
|
try {
|
|
3826
|
-
await (0, fourier_score_1.fourierScoreCommand)(variants, options);
|
|
4376
|
+
await (0, fourier_score_1.fourierScoreCommand)(variants, { ...options, nullModel: !!options.nullModel });
|
|
3827
4377
|
}
|
|
3828
4378
|
catch (error) {
|
|
3829
4379
|
logger_1.Logger.error(`Fourier scoring failed: ${error}`);
|
|
@@ -4345,6 +4895,7 @@ consentCmd
|
|
|
4345
4895
|
.requiredOption('--session <id>', 'MCP session id (Mcp-Session-Id)')
|
|
4346
4896
|
.requiredOption('--biocid <biocid>', 'The biocid:// the grant covers')
|
|
4347
4897
|
.option('--days <n>', 'Validity in days (1-30)', '1')
|
|
4898
|
+
.option('--template <id>', 'Grant template (genome-governance-ai-agent pins 30-day research-not-care)')
|
|
4348
4899
|
.option('--json', 'Emit JSON')
|
|
4349
4900
|
.option('--quiet', 'Suppress progress')
|
|
4350
4901
|
.action(async (o) => {
|
|
@@ -4600,6 +5151,43 @@ program
|
|
|
4600
5151
|
process.exit(1);
|
|
4601
5152
|
}
|
|
4602
5153
|
});
|
|
5154
|
+
program
|
|
5155
|
+
.command('reference-register [biocids...]')
|
|
5156
|
+
.description('NODE OPERATOR: register the public reference datasets of the pbrun catalog (genome, known sites, capture design) by biocid, each pinned to the MD5 of its objects; owner the reference custodian, consent public_reference; with no biocid, all of them; dry run unless --yes')
|
|
5157
|
+
.requiredOption('--attest <text>', 'The source of these reference datasets and on what basis GenoBank.io holds them (at least 20 characters, recorded with the rows)')
|
|
5158
|
+
.option('--yes', 'Write the rows (default is a dry run that writes nothing and lists the biocids)')
|
|
5159
|
+
.option('--json', 'Emit JSON')
|
|
5160
|
+
.action(async (biocids, options) => {
|
|
5161
|
+
try {
|
|
5162
|
+
await (0, reference_register_1.referenceRegisterCommand)(biocids, options);
|
|
5163
|
+
}
|
|
5164
|
+
catch (e) {
|
|
5165
|
+
console.error(chalk_1.default.red(e.message));
|
|
5166
|
+
process.exit(1);
|
|
5167
|
+
}
|
|
5168
|
+
});
|
|
5169
|
+
const alphagenomeGroup = program.command('alphagenome').description('AlphaGenome variant-effect prediction as a governed biofs-node job (research only, never a diagnosis; regulation and splicing, not missense)');
|
|
5170
|
+
alphagenomeGroup
|
|
5171
|
+
.command('score <caseId>')
|
|
5172
|
+
.description('Score variants (chr:pos:ref:alt, VCF form) with AlphaGenome; only coordinates and alleles leave GenoBank.io, the report is registered under the owner with the source biocid as lineage')
|
|
5173
|
+
.requiredOption('--variant <variants...>', 'Variants as chr:pos:ref:alt (left-anchored for indels)')
|
|
5174
|
+
.requiredOption('--ontology <terms...>', 'Tissue or cell-type ontology terms the prediction is made for, for example UBERON:0001134 CL:0000062')
|
|
5175
|
+
.requiredOption('--source-biocid <biocid>', 'The biocid of the data these variants come from (lineage, owner and consent check)')
|
|
5176
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of alphagenome_score.py as pinned; the node refuses any other code')
|
|
5177
|
+
.option('--outputs <types...>', 'Output types (default RNA_SEQ)')
|
|
5178
|
+
.option('--window <bp>', 'Window around the variant: 16384, 131072 (default), 524288 or 1048576')
|
|
5179
|
+
.option('--accept-alphagenome-terms', 'Accept the Google AlphaGenome terms (non-commercial research, no clinical use)')
|
|
5180
|
+
.option('--case-label <label>', 'Privacy-safe label for the report (never a person name)')
|
|
5181
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5182
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5183
|
+
.option('--json', 'Emit JSON')
|
|
5184
|
+
.action(async (caseId, options) => { await (0, alphagenome_1.alphagenomeSubmitCommand)(caseId, options); });
|
|
5185
|
+
alphagenomeGroup
|
|
5186
|
+
.command('status <job>')
|
|
5187
|
+
.description('Show an alphagenome job')
|
|
5188
|
+
.option('--wait', 'Poll until done or failed')
|
|
5189
|
+
.option('--json', 'Emit JSON')
|
|
5190
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('alphagenome', id, options); });
|
|
4603
5191
|
program
|
|
4604
5192
|
.command('jobs')
|
|
4605
5193
|
.description('The governed jobs you may see (as owner, submitter, node operator or read-only viewer), newest first, with status, stage and elapsed time')
|
|
@@ -4698,6 +5286,180 @@ identityCmd
|
|
|
4698
5286
|
.option('--wait', 'Poll until done or failed')
|
|
4699
5287
|
.option('--json', 'Emit JSON')
|
|
4700
5288
|
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('identity', id, options); });
|
|
5289
|
+
const captureCmd = program
|
|
5290
|
+
.command('capture-compare')
|
|
5291
|
+
.description('Which capture design (exome kit) does this alignment come from? One BAM against candidate target-region designs and its own enrichment map, under the registered capture protocol (dispatched through biofs-node, decision support only)');
|
|
5292
|
+
captureCmd
|
|
5293
|
+
.command('submit <caseId>')
|
|
5294
|
+
.description('Submit the comparison; the alignment is a BAM biocid, the candidates are catalog designs and/or BED biocids, and the code and protocol hashes must be the registered ones')
|
|
5295
|
+
.requiredOption('--bam <biocid>', 'The BAM biocid to test (its index must sit beside it, as pbrun writes it)')
|
|
5296
|
+
.option('--design <names...>', 'Catalog design names (BED files under genobank-references/capture/hg38), for example twist_core_exome')
|
|
5297
|
+
.option('--design-biocid <pairs...>', 'label=biocid of a BED file you own, repeatable')
|
|
5298
|
+
.option('--pad <bp>', 'Padding added to every target region (default 0)')
|
|
5299
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of capture_compare.py as registered; the worker refuses any other code')
|
|
5300
|
+
.requiredOption('--protocol-sha256 <hex>', 'SHA-256 of the registered protocol')
|
|
5301
|
+
.requiredOption('--ledger-record <n>', 'The pre-registration ledger record number')
|
|
5302
|
+
.option('--executor <where>', 'auto (default): a healthy neoantigen worker agent, else this node; worker: only a worker, never falls back; local: only this node')
|
|
5303
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5304
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5305
|
+
.option('--json', 'Emit JSON')
|
|
5306
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.captureSubmitCommand)(caseId, options); });
|
|
5307
|
+
captureCmd
|
|
5308
|
+
.command('status <job>')
|
|
5309
|
+
.description('Show a capture job (only the signer who submitted it can read it)')
|
|
5310
|
+
.option('--wait', 'Poll until done or failed')
|
|
5311
|
+
.option('--json', 'Emit JSON')
|
|
5312
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('capture', id, options); });
|
|
5313
|
+
const acmgCmd = program
|
|
5314
|
+
.command('acmg-triage')
|
|
5315
|
+
.description('Phenotype-driven variant triage with an ACMG/AMP points classification over an OpenCRAVAT annotation sqlite and its VCF (single calibrated predictor, ClinVar reported not counted); decision support, never a diagnosis (dispatched through biofs-node)');
|
|
5316
|
+
acmgCmd
|
|
5317
|
+
.command('submit <caseId>')
|
|
5318
|
+
.description('Submit the triage; --schema only reads the sqlite\'s real columns and value formats and classifies nothing')
|
|
5319
|
+
.option('--sqlite <biocid>', 'The annotation sqlite biocid (classify and schema modes)')
|
|
5320
|
+
.option('--coverage', 'Coverage mode: per-gene coding depth of --bam over the panel, the specific --hpo terms and --genes (classifies nothing)')
|
|
5321
|
+
.option('--constraint-object <path>', 'Gene constraint (pLI, LOEUF) from this pinned .tsv in genobank-references, for example gnomad_constraint/4.1/gnomad.v4.1.constraint_metrics.tsv (classify mode)')
|
|
5322
|
+
.option('--constraint-sha256 <hex>', 'SHA-256 of the constraint file')
|
|
5323
|
+
.option('--list-all', 'Classify mode: list every candidate in the report (default lists tiers 1 to 3 only; counts are unchanged)')
|
|
5324
|
+
.option('--smn', 'SMN1 and SMN2 copy number mode: counts the paralog-specific coding base in --bam at any mapping quality (needs --reference and the pinned --gtf-*)')
|
|
5325
|
+
.option('--support', 'Read support mode: for every variant of a classification report, counts the reads by allele, strand, mapping quality and library in --bam (needs --report-biocid and --reference)')
|
|
5326
|
+
.option('--report-biocid <biocid>', 'The classification report biocid whose variants --support counts reads for')
|
|
5327
|
+
.option('--scope <which>', 'With --support: all variants of the report (default) or only the VUS')
|
|
5328
|
+
.option('--reference <name>', 'Catalog reference whose FASTA is used by --smn and --support: hg38_noalt')
|
|
5329
|
+
.option('--bam <biocid>', 'The alignment biocid (coverage mode)')
|
|
5330
|
+
.option('--gtf-bucket <bucket>', 'Bucket of the pinned gene annotation (coverage mode)')
|
|
5331
|
+
.option('--gtf-object <path>', 'Object path of the pinned .gtf or .gtf.gz (coverage mode)')
|
|
5332
|
+
.option('--gtf-sha256 <hex>', 'SHA-256 of the gene annotation file (coverage mode)')
|
|
5333
|
+
.option('--genes <symbols...>', 'Extra gene symbols to measure (coverage mode), comma separated')
|
|
5334
|
+
.option('--vcf <biocid>', 'The VCF the annotation was made from (gives zygosity and read support)')
|
|
5335
|
+
.option('--schema', 'Profile the sqlite only')
|
|
5336
|
+
.option('--hpo <ids...>', 'Patient HPO terms, for example HP:0002757,HP:0000924')
|
|
5337
|
+
.option('--panel <name>', 'Gene panel: skeletal_dysplasia or none (default none)')
|
|
5338
|
+
.option('--max-af <af>', 'Population frequency ceiling for non-ClinVar candidates (default 0.01)')
|
|
5339
|
+
.option('--hpo-release <date>', 'HPO release folder under genobank-references/hpo, for example 2026-09-01')
|
|
5340
|
+
.option('--hpo-obo-sha256 <hex>', 'SHA-256 of hp.obo when the release is not in the built-in table')
|
|
5341
|
+
.option('--hpo-genes-sha256 <hex>', 'SHA-256 of genes_to_phenotype.txt when the release is not in the built-in table')
|
|
5342
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of acmg_triage.py as pinned; the worker refuses any other code')
|
|
5343
|
+
.option('--case-label <label>', 'Privacy-safe label for the report (never a person name)')
|
|
5344
|
+
.option('--executor <where>', 'auto (default): a healthy neoantigen worker agent, else this node; worker: only a worker, never falls back; local: only this node')
|
|
5345
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5346
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5347
|
+
.option('--json', 'Emit JSON')
|
|
5348
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.acmgSubmitCommand)(caseId, options); });
|
|
5349
|
+
acmgCmd
|
|
5350
|
+
.command('status <job>')
|
|
5351
|
+
.description('Show a triage job (only the signer who submitted it can read it)')
|
|
5352
|
+
.option('--wait', 'Poll until done or failed')
|
|
5353
|
+
.option('--json', 'Emit JSON')
|
|
5354
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('acmg', id, options); });
|
|
5355
|
+
const vcfCompareCmd = program
|
|
5356
|
+
.command('vcf-compare')
|
|
5357
|
+
.description('How two callers\' VCFs of one sample agree (for example DeepVariant and HaplotypeCaller): shared and private calls by type, genotype concordance, Ti/Tv, the evidence of every private call; descriptive, never says which caller is right (dispatched through biofs-node)');
|
|
5358
|
+
vcfCompareCmd
|
|
5359
|
+
.command('submit <caseId>')
|
|
5360
|
+
.description('Submit the comparison')
|
|
5361
|
+
.requiredOption('--a <biocid>', 'The first caller\'s VCF')
|
|
5362
|
+
.requiredOption('--b <biocid>', 'The second caller\'s VCF')
|
|
5363
|
+
.option('--label-a <name>', 'Name of the first caller in the report (default a)')
|
|
5364
|
+
.option('--label-b <name>', 'Name of the second caller in the report (default b)')
|
|
5365
|
+
.option('--bed <biocid>', 'Compare only inside these regions (a BED)')
|
|
5366
|
+
.option('--min-dp <n>', 'Depth under which a call counts as low confidence (default 10)')
|
|
5367
|
+
.option('--min-gq <n>', 'Genotype quality under which a call counts as low confidence (default 20)')
|
|
5368
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of vcfcompare.py as pinned; the worker refuses any other code')
|
|
5369
|
+
.option('--executor <where>', 'auto (default): a healthy worker, else this node; worker: only a worker; local: only this node')
|
|
5370
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5371
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5372
|
+
.option('--json', 'Emit JSON')
|
|
5373
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.vcfCompareSubmitCommand)(caseId, options); });
|
|
5374
|
+
vcfCompareCmd
|
|
5375
|
+
.command('status <job>')
|
|
5376
|
+
.description('Show a vcf-compare job')
|
|
5377
|
+
.option('--wait', 'Poll until done or failed')
|
|
5378
|
+
.option('--json', 'Emit JSON')
|
|
5379
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('vcfcompare', id, options); });
|
|
5380
|
+
const refIndexCmd = program
|
|
5381
|
+
.command('reference-index')
|
|
5382
|
+
.description('Build and verify the BWA-MEM index and dictionary of a catalog reference that has none (node operator only; dispatched through biofs-node to a CPU worker, create-only into the reference folder)');
|
|
5383
|
+
refIndexCmd
|
|
5384
|
+
.command('submit <caseId>')
|
|
5385
|
+
.description('Submit the build; the worker checks the FASTA against its recorded MD5, builds fai, dict and index with bwa 0.7.17, proves the index with reference substrings, then uploads and reads back')
|
|
5386
|
+
.requiredOption('--reference <name>', 'Catalog reference: hg38_noalt')
|
|
5387
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of refindex.py as pinned; the worker refuses any other code')
|
|
5388
|
+
.option('--mode <mode>', 'index (default: BWA index and dictionary), known_sites (copies of the catalog known-sites VCFs restricted to the reference\'s contigs, checked record by record) or intervals (copies of the catalog capture designs restricted to the reference\'s contigs, checked line by line)')
|
|
5389
|
+
.option('--sources <names...>', 'For --mode known_sites: dbsnp138, known_indels, mills_1000g. For --mode intervals: agilent_v8_regions')
|
|
5390
|
+
.option('--owner <biowallet>', 'Owner biowallet of the report (default: the signer)')
|
|
5391
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5392
|
+
.option('--json', 'Emit JSON')
|
|
5393
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.refIndexSubmitCommand)(caseId, options); });
|
|
5394
|
+
refIndexCmd
|
|
5395
|
+
.command('status <job>')
|
|
5396
|
+
.description('Show a reference-index job')
|
|
5397
|
+
.option('--wait', 'Poll until done or failed')
|
|
5398
|
+
.option('--json', 'Emit JSON')
|
|
5399
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('refindex', id, options); });
|
|
5400
|
+
const twinCmd = program
|
|
5401
|
+
.command('twin')
|
|
5402
|
+
.description('Patient-owned cancer digital twin: classify every object of a vault into its data layer, specimen, timepoint and matched set, and compute the vaccine-readiness table (dispatched through biofs-node; runs on the node that holds the registry)');
|
|
5403
|
+
twinCmd
|
|
5404
|
+
.command('classify <caseId>')
|
|
5405
|
+
.description('Classify the owner\'s inventory rows; report only unless --apply writes the twin block onto the rows (only that field is ever written)')
|
|
5406
|
+
.option('--apply', 'Write the classification onto bioroutes.inventory and biocid_registry rows (default: report only)')
|
|
5407
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of twin_classify.py as pinned; the node refuses any other code')
|
|
5408
|
+
.option('--owner <biowallet>', 'Owner biowallet when a node operator runs the job for another wallet (default: the signer)')
|
|
5409
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5410
|
+
.option('--json', 'Emit JSON')
|
|
5411
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.twinClassifySubmitCommand)(caseId, options); });
|
|
5412
|
+
twinCmd
|
|
5413
|
+
.command('status <job>')
|
|
5414
|
+
.description('Show a twin classify job (only the signer who submitted it can read it)')
|
|
5415
|
+
.option('--wait', 'Poll until done or failed')
|
|
5416
|
+
.option('--json', 'Emit JSON')
|
|
5417
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('twin', id, options); });
|
|
5418
|
+
const windowsCmd = program
|
|
5419
|
+
.command('windows-geometry')
|
|
5420
|
+
.description('GENCODE protein window, CDS nucleotides and exon geometry for a list of substitutions, under the registered window_geometry protocol (dispatched through biofs-node)');
|
|
5421
|
+
windowsCmd
|
|
5422
|
+
.command('submit <caseId>')
|
|
5423
|
+
.description('Submit the list; items is a local JSON file of {id, gene, change}, and the code and protocol hashes must be the registered ones')
|
|
5424
|
+
.requiredOption('--items <file>', 'JSON file: a list of {id, gene, change}, for example {"id":"TBKBP1","gene":"TBKBP1","change":"D607N"}')
|
|
5425
|
+
.option('--flank <n>', 'Residues on each side of the substitution (default 40)')
|
|
5426
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of window_geometry.py as registered; the worker refuses any other code')
|
|
5427
|
+
.requiredOption('--protocol-sha256 <hex>', 'SHA-256 of the registered protocol')
|
|
5428
|
+
.requiredOption('--ledger-record <n>', 'The pre-registration ledger record number')
|
|
5429
|
+
.option('--executor <where>', 'auto (default): a healthy neoantigen worker agent, else this node; worker: only a worker, never falls back; local: only this node')
|
|
5430
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5431
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5432
|
+
.option('--json', 'Emit JSON')
|
|
5433
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.windowsSubmitCommand)(caseId, options); });
|
|
5434
|
+
windowsCmd
|
|
5435
|
+
.command('status <job>')
|
|
5436
|
+
.description('Show a windows-geometry job (only the signer who submitted it can read it)')
|
|
5437
|
+
.option('--wait', 'Poll until done or failed')
|
|
5438
|
+
.option('--json', 'Emit JSON')
|
|
5439
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('windows', id, options); });
|
|
5440
|
+
const rescoreCmd = program
|
|
5441
|
+
.command('rescore')
|
|
5442
|
+
.description('Binding of caller-supplied peptides on caller-supplied HLA alleles (MHCflurry class I) and molecules (MHCnuggets class II), under the registered rescore protocol (dispatched through biofs-node)');
|
|
5443
|
+
rescoreCmd
|
|
5444
|
+
.command('submit <caseId>')
|
|
5445
|
+
.description('Submit the peptide list; it is hash-pinned, a known-answer self test runs first, and an unsupported allele is named, never replaced')
|
|
5446
|
+
.requiredOption('--peptides <file>', 'TSV with the header peptide_id<TAB>peptide')
|
|
5447
|
+
.option('--class1 <alleles...>', 'Class I alleles, for example HLA-A*02:01 (comma separated or repeated)')
|
|
5448
|
+
.option('--class2 <molecules...>', 'Class II molecules in MHCnuggets names, for example HLA-DRB104:02 or HLA-DPA101:03-DPB102:01')
|
|
5449
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of rescore.py as registered; the worker refuses any other code')
|
|
5450
|
+
.requiredOption('--protocol-sha256 <hex>', 'SHA-256 of the registered protocol')
|
|
5451
|
+
.requiredOption('--ledger-record <n>', 'The pre-registration ledger record number')
|
|
5452
|
+
.option('--executor <where>', 'auto (default): a healthy neoantigen worker agent, else this node; worker: only a worker, never falls back; local: only this node')
|
|
5453
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5454
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5455
|
+
.option('--json', 'Emit JSON')
|
|
5456
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.rescoreSubmitCommand)(caseId, options); });
|
|
5457
|
+
rescoreCmd
|
|
5458
|
+
.command('status <job>')
|
|
5459
|
+
.description('Show a rescore job (only the signer who submitted it can read it)')
|
|
5460
|
+
.option('--wait', 'Poll until done or failed')
|
|
5461
|
+
.option('--json', 'Emit JSON')
|
|
5462
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('rescore', id, options); });
|
|
4701
5463
|
// pbrun: one verb for each NVIDIA Parabricks tool, generated from the registry (src/commands/parabricks/registry.json)
|
|
4702
5464
|
(0, parabricks_1.registerParabricksCommands)(program);
|
|
4703
5465
|
const registerDerivedCmd = program
|
|
@@ -4751,6 +5513,23 @@ fluencyCmd
|
|
|
4751
5513
|
process.exit(1);
|
|
4752
5514
|
}
|
|
4753
5515
|
});
|
|
5516
|
+
fluencyCmd
|
|
5517
|
+
.command('pack')
|
|
5518
|
+
.description('Prepare the most representative files for an advanced-patient conversation (coverage-complete store, ACMG writeup, SV). Does not print storage URLs.')
|
|
5519
|
+
.option('--wallet <address>', "Admin: pack another wallet's vault")
|
|
5520
|
+
.option('--layer <name>', 'Conversation layer (default advanced_patient)', 'advanced_patient')
|
|
5521
|
+
.option('--build', 'Also run fluency build on the primary store')
|
|
5522
|
+
.option('--json', 'Emit JSON')
|
|
5523
|
+
.option('--quiet', 'Suppress progress')
|
|
5524
|
+
.action(async (options) => {
|
|
5525
|
+
try {
|
|
5526
|
+
await (0, fluency_1.fluencyPackCommand)(options);
|
|
5527
|
+
}
|
|
5528
|
+
catch (error) {
|
|
5529
|
+
logger_1.Logger.error(`fluency pack failed: ${error}`);
|
|
5530
|
+
process.exit(1);
|
|
5531
|
+
}
|
|
5532
|
+
});
|
|
4754
5533
|
program
|
|
4755
5534
|
.command('lineage <biocid>')
|
|
4756
5535
|
.description('Report the biodata metamorphosis: what this was derived from, what came from it, who owns each piece, and what erases with what')
|