@genobank/biofs 3.21.1 → 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-delegate/index.d.ts +28 -0
- package/dist/commands/inventory-delegate/index.d.ts.map +1 -0
- package/dist/commands/inventory-delegate/index.js +171 -0
- package/dist/commands/inventory-delegate/index.js.map +1 -0
- package/dist/commands/inventory-list/index.d.ts +33 -0
- package/dist/commands/inventory-list/index.d.ts.map +1 -0
- package/dist/commands/inventory-list/index.js +74 -0
- package/dist/commands/inventory-list/index.js.map +1 -0
- package/dist/commands/inventory-register/index.d.ts +8 -0
- package/dist/commands/inventory-register/index.d.ts.map +1 -0
- package/dist/commands/inventory-register/index.js +57 -0
- package/dist/commands/inventory-register/index.js.map +1 -0
- 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/job-view/index.d.ts +15 -0
- package/dist/commands/job-view/index.d.ts.map +1 -0
- package/dist/commands/job-view/index.js +88 -0
- package/dist/commands/job-view/index.js.map +1 -0
- 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 +180 -2
- package/dist/commands/neoantigen-pipeline/index.d.ts.map +1 -1
- package/dist/commands/neoantigen-pipeline/index.js +520 -2
- 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 +85 -0
- package/dist/commands/parabricks/index.d.ts.map +1 -0
- package/dist/commands/parabricks/index.js +350 -0
- package/dist/commands/parabricks/index.js.map +1 -0
- package/dist/commands/parabricks/registry.json +15202 -0
- 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/whoami.d.ts +1 -0
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +20 -0
- package/dist/commands/whoami.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 +944 -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/dist/lib/utils/node_roles.d.ts +16 -0
- package/dist/lib/utils/node_roles.d.ts.map +1 -0
- package/dist/lib/utils/node_roles.js +34 -0
- package/dist/lib/utils/node_roles.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");
|
|
@@ -110,8 +116,19 @@ const exec_7 = require("./commands/ont-variants/exec");
|
|
|
110
116
|
const submit_10 = require("./commands/hifi-align/submit");
|
|
111
117
|
const exec_8 = require("./commands/hifi-align/exec");
|
|
112
118
|
const register_derived_1 = require("./commands/register-derived");
|
|
119
|
+
const parabricks_1 = require("./commands/parabricks");
|
|
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");
|
|
123
|
+
const inventory_delegate_1 = require("./commands/inventory-delegate");
|
|
124
|
+
const job_view_1 = require("./commands/job-view");
|
|
125
|
+
const inventory_list_1 = require("./commands/inventory-list");
|
|
113
126
|
const neoantigen_pipeline_1 = require("./commands/neoantigen-pipeline");
|
|
114
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");
|
|
115
132
|
const submit_11 = require("./commands/pbsv/submit");
|
|
116
133
|
const exec_9 = require("./commands/pbsv/exec");
|
|
117
134
|
const submit_12 = require("./commands/repeat-genotype/submit");
|
|
@@ -135,13 +152,19 @@ const benchmark_1 = require("./commands/benchmark");
|
|
|
135
152
|
const runWes_1 = require("./commands/pipeline/runWes");
|
|
136
153
|
const route_1 = require("./commands/route");
|
|
137
154
|
const anchor_1 = require("./commands/route/anchor");
|
|
138
|
-
const
|
|
155
|
+
const status_7 = require("./commands/annotate/status");
|
|
139
156
|
const x402_1 = require("./commands/x402");
|
|
140
157
|
const submit_19 = require("./commands/interpret/submit");
|
|
141
|
-
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");
|
|
142
162
|
const somos_1 = require("./commands/ancestry/somos");
|
|
143
|
-
const
|
|
144
|
-
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");
|
|
145
168
|
const share_2 = require("./commands/ancestry/share");
|
|
146
169
|
const register_sequentia_1 = require("./commands/agent/register-sequentia");
|
|
147
170
|
const list_sequentia_1 = require("./commands/agent/list-sequentia");
|
|
@@ -157,6 +180,7 @@ const erase_1 = require("./commands/erase");
|
|
|
157
180
|
const erase_trial_1 = require("./commands/erase-trial");
|
|
158
181
|
const fourier_score_1 = require("./commands/fourier-score");
|
|
159
182
|
const rrm_consensus_1 = require("./commands/rrm-consensus");
|
|
183
|
+
const rrm_validate_1 = require("./commands/rrm-validate");
|
|
160
184
|
const psm_consensus_1 = require("./commands/psm-consensus");
|
|
161
185
|
const bode_1 = require("./commands/bode");
|
|
162
186
|
const wavelet_consensus_1 = require("./commands/wavelet-consensus");
|
|
@@ -181,17 +205,15 @@ const ticket_1 = require("./commands/ticket");
|
|
|
181
205
|
const scan_1 = require("./commands/scan");
|
|
182
206
|
const inventory_1 = require("./commands/inventory");
|
|
183
207
|
const samples_1 = require("./commands/samples");
|
|
184
|
-
const cassette_1 = require("./commands/cassette");
|
|
185
|
-
const submit_20 = require("./commands/hla-type/submit");
|
|
186
|
-
const regen_1 = require("./commands/cancermap/regen");
|
|
187
208
|
const cohort_1 = require("./commands/inventory/cohort");
|
|
188
209
|
const reconcile_2 = require("./commands/job/reconcile");
|
|
189
210
|
const cohort_pipeline_1 = require("./commands/cohort-pipeline");
|
|
190
211
|
const dedup_1 = require("./commands/dedup");
|
|
191
212
|
const claim_1 = require("./commands/claim");
|
|
213
|
+
const reconcile_owners_1 = require("./commands/reconcile-owners");
|
|
192
214
|
const fingerprint_1 = require("./commands/fingerprint");
|
|
193
|
-
const
|
|
194
|
-
const
|
|
215
|
+
const register_4 = require("./commands/researcher/register");
|
|
216
|
+
const status_10 = require("./commands/researcher/status");
|
|
195
217
|
const passport_1 = require("./commands/researcher/passport");
|
|
196
218
|
const errorReporter_1 = require("./utils/errorReporter");
|
|
197
219
|
// CARBONX_VERB_20261023: Carbon-X variant pathogenicity screen through biofs-node
|
|
@@ -270,6 +292,7 @@ program
|
|
|
270
292
|
.description('Show current authenticated wallet')
|
|
271
293
|
.option('--json', 'Output as JSON')
|
|
272
294
|
.option('--verify', 'Verify signature validity')
|
|
295
|
+
.option('--roles', 'Ask the node whether this wallet is a node operator and which profile is active (read-only), with the one-line fix when it is not')
|
|
273
296
|
.option('--check <wallet>', 'Check against specific wallet address (e.g., 0x0000000000000000000000000000000000000000)')
|
|
274
297
|
.action(async (options) => {
|
|
275
298
|
try {
|
|
@@ -344,11 +367,18 @@ program
|
|
|
344
367
|
program
|
|
345
368
|
.command('upload <file>')
|
|
346
369
|
.alias('put')
|
|
347
|
-
.description('
|
|
348
|
-
.option('--type <type>', 'File type (
|
|
349
|
-
.
|
|
350
|
-
.
|
|
351
|
-
.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')
|
|
352
382
|
.option('--quiet', 'No progress output')
|
|
353
383
|
.action(async (filePath, options) => {
|
|
354
384
|
try {
|
|
@@ -724,7 +754,7 @@ teleCommon(teleCmd
|
|
|
724
754
|
});
|
|
725
755
|
teleCommon(teleCmd
|
|
726
756
|
.command('mosdepth <id>')
|
|
727
|
-
.description('mosdepth coverage (
|
|
757
|
+
.description('mosdepth coverage (refuses to write a BAM on this laptop unless BIOFS_ALLOW_LAPTOP_BAM=1)')
|
|
728
758
|
.option('--out <prefix>', 'output prefix')).action(async (id, options) => {
|
|
729
759
|
try {
|
|
730
760
|
await (0, tele_1.teleMosdepthCommand)(id, options);
|
|
@@ -736,10 +766,11 @@ teleCommon(teleCmd
|
|
|
736
766
|
});
|
|
737
767
|
teleCommon(teleCmd
|
|
738
768
|
.command('igv <id>')
|
|
739
|
-
.description('Write IGV
|
|
769
|
+
.description('Write an IGV.js session. Default does not persist a signed stream URL.')
|
|
740
770
|
.option('--web', 'also open IGV.js HTML')
|
|
741
771
|
.option('--open', 'open the HTML session in the default browser')
|
|
742
|
-
.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) => {
|
|
743
774
|
try {
|
|
744
775
|
await (0, tele_1.teleIgvCommand)(id, options);
|
|
745
776
|
}
|
|
@@ -849,6 +880,81 @@ htsgetCmd
|
|
|
849
880
|
process.exit(6);
|
|
850
881
|
}
|
|
851
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
|
+
});
|
|
852
958
|
// ========================================================================
|
|
853
959
|
// (end v2.7.0 block)
|
|
854
960
|
// ========================================================================
|
|
@@ -912,6 +1018,126 @@ tokenizeCmd
|
|
|
912
1018
|
process.exit(1);
|
|
913
1019
|
}
|
|
914
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
|
+
});
|
|
915
1141
|
// Link command group - Link derivative NFTs to BioNFTs
|
|
916
1142
|
const linkCmd = program
|
|
917
1143
|
.command('link')
|
|
@@ -1073,6 +1299,24 @@ program
|
|
|
1073
1299
|
process.exit(1);
|
|
1074
1300
|
}
|
|
1075
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
|
+
});
|
|
1076
1320
|
// Scan command - Walk GCS bucket(s) and register objects in bioroutes.inventory
|
|
1077
1321
|
// Default scope: full canonical bucket fleet. Lab origin inferred per-file.
|
|
1078
1322
|
program
|
|
@@ -1100,8 +1344,9 @@ const annotateCmd = program
|
|
|
1100
1344
|
.description('Annotate VCF files with OpenCRAVAT (curated panels or all 146 annotators)');
|
|
1101
1345
|
// annotate submit - Submit VCF for annotation
|
|
1102
1346
|
annotateCmd
|
|
1103
|
-
.command('submit
|
|
1104
|
-
.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)')
|
|
1105
1350
|
.option('--vcf-path <path>', 'Manual VCF path override')
|
|
1106
1351
|
.option('--vcf-uri <uri>', 'GCS or S3 URI for a freshly-minted VCF (skips discovery; used by biofs pipeline)')
|
|
1107
1352
|
.option('--annotators <list>', 'Custom annotators (comma-separated), defaults to all 146')
|
|
@@ -1128,7 +1373,7 @@ annotateCmd
|
|
|
1128
1373
|
.option('--json', 'Output as JSON')
|
|
1129
1374
|
.action(async (jobId, options) => {
|
|
1130
1375
|
try {
|
|
1131
|
-
await (0,
|
|
1376
|
+
await (0, status_7.annotateStatusCommand)(jobId, options);
|
|
1132
1377
|
}
|
|
1133
1378
|
catch (error) {
|
|
1134
1379
|
logger_1.Logger.error(`Status check failed: ${error}`);
|
|
@@ -1171,6 +1416,7 @@ imagingCmd
|
|
|
1171
1416
|
.option('--timepoints <spec>', 'N-timepoint mode: JSON [{label,study,series}] (ordered, first=reference) or "label:study:series,..." — supersedes --baseline/--followup')
|
|
1172
1417
|
.option('--anatomy <name>', 'anatomy to register (abdomen | chest)', 'abdomen')
|
|
1173
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)')
|
|
1174
1420
|
.option('--baseline-series <uid>', 'override the baseline primary CT series UID')
|
|
1175
1421
|
.option('--followup-series <uid>', 'override the follow-up primary CT series UID')
|
|
1176
1422
|
.option('--wait', 'Wait for the GPU pipeline to finish')
|
|
@@ -1211,6 +1457,7 @@ imagingCmd
|
|
|
1211
1457
|
.requiredOption('--timepoints <spec>', 'oldest→newest: JSON [{label,study,series}] or "label:study[:series],..." (>=3; series auto-resolved if omitted)')
|
|
1212
1458
|
.option('--anatomy <name>', 'anatomy (chest | abdomen)', 'chest')
|
|
1213
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.')
|
|
1214
1461
|
.option('--wait', 'Wait for the classifier to finish')
|
|
1215
1462
|
.option('--quiet', 'Suppress progress output')
|
|
1216
1463
|
.option('--json', 'Output as JSON')
|
|
@@ -1232,6 +1479,7 @@ imagingCmd
|
|
|
1232
1479
|
.requiredOption('--timepoints <spec>', 'oldest→newest: JSON [{label,study,series}] or "label:study[:series],..." (>=2; series auto-resolved if omitted)')
|
|
1233
1480
|
.option('--anatomy <name>', 'anatomy (chest | abdomen)', 'chest')
|
|
1234
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.')
|
|
1235
1483
|
.option('--wait', 'Wait for the GPU pipeline to finish')
|
|
1236
1484
|
.option('--quiet', 'Suppress progress output')
|
|
1237
1485
|
.option('--json', 'Output as JSON')
|
|
@@ -1323,6 +1571,7 @@ imagingCmd
|
|
|
1323
1571
|
.option('--region <label>', 'focus the rigid alignment on a z-band (needs --zlo/--zhi), e.g. pelvis')
|
|
1324
1572
|
.option('--zlo <frac>', 'region z-fraction lower bound [0..1]')
|
|
1325
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.')
|
|
1326
1575
|
.option('--wait', 'Wait for the comparator to finish')
|
|
1327
1576
|
.option('--quiet', 'Suppress progress output')
|
|
1328
1577
|
.option('--json', 'Output as JSON')
|
|
@@ -1354,8 +1603,8 @@ imagingCmd
|
|
|
1354
1603
|
}
|
|
1355
1604
|
});
|
|
1356
1605
|
// imaging register — staged 3D registration of N CT timepoints into one reference
|
|
1357
|
-
// frame with a quality gate (rigid
|
|
1358
|
-
// 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.
|
|
1359
1608
|
const collect = (v, prev) => prev.concat([v]);
|
|
1360
1609
|
imagingCmd
|
|
1361
1610
|
.command('register')
|
|
@@ -1377,6 +1626,18 @@ imagingCmd
|
|
|
1377
1626
|
process.exit(1);
|
|
1378
1627
|
}
|
|
1379
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
|
+
});
|
|
1380
1641
|
imagingCmd
|
|
1381
1642
|
.command('register-status <registerJobId>')
|
|
1382
1643
|
.description('Status and quality gate of an imaging register job')
|
|
@@ -1454,6 +1715,8 @@ workspaceCmd
|
|
|
1454
1715
|
.option('--as <agent_id>', 'Author id (e.g. operator, claude-code, grok-build)', 'operator')
|
|
1455
1716
|
.option('--role <role>', 'Turn role', 'message')
|
|
1456
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)')
|
|
1457
1720
|
.option('--ref <biocid:hash:kind...>', 'Data refs, each biocid:content_hash:kind')
|
|
1458
1721
|
.option('--node <url>', 'biofs-node base override')
|
|
1459
1722
|
.option('--json', 'Output as JSON')
|
|
@@ -1791,7 +2054,7 @@ interpretCmd
|
|
|
1791
2054
|
.option('--json', 'Emit JSON')
|
|
1792
2055
|
.action(async (jobId, options) => {
|
|
1793
2056
|
try {
|
|
1794
|
-
await (0,
|
|
2057
|
+
await (0, status_8.interpretStatusCommand)(jobId, options);
|
|
1795
2058
|
}
|
|
1796
2059
|
catch (error) {
|
|
1797
2060
|
logger_1.Logger.error(`Interpretation status check failed: ${error}`);
|
|
@@ -1877,6 +2140,66 @@ cancermapCmd
|
|
|
1877
2140
|
const ancestryCmd = program
|
|
1878
2141
|
.command('ancestry')
|
|
1879
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
|
+
});
|
|
1880
2203
|
ancestryCmd
|
|
1881
2204
|
.command('ingest <file>')
|
|
1882
2205
|
.description('Ingest a DTC genotype into the SOMOS vault and register it, yielding a biosample serial')
|
|
@@ -1886,7 +2209,7 @@ ancestryCmd
|
|
|
1886
2209
|
.option('--json', 'Emit JSON')
|
|
1887
2210
|
.action(async (file, options) => {
|
|
1888
2211
|
try {
|
|
1889
|
-
await (0,
|
|
2212
|
+
await (0, ingest_2.ancestryIngestCommand)(file, options);
|
|
1890
2213
|
}
|
|
1891
2214
|
catch (error) {
|
|
1892
2215
|
logger_1.Logger.error(`Ancestry ingest failed: ${error}`);
|
|
@@ -1962,7 +2285,7 @@ ancestryCmd
|
|
|
1962
2285
|
.option('--json', 'Emit JSON')
|
|
1963
2286
|
.action(async (jobId, options) => {
|
|
1964
2287
|
try {
|
|
1965
|
-
await (0,
|
|
2288
|
+
await (0, status_9.ancestryStatusCommand)(jobId, options);
|
|
1966
2289
|
}
|
|
1967
2290
|
catch (error) {
|
|
1968
2291
|
logger_1.Logger.error(`Ancestry status check failed: ${error}`);
|
|
@@ -2256,6 +2579,35 @@ program
|
|
|
2256
2579
|
process.exit(1);
|
|
2257
2580
|
}
|
|
2258
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
|
+
});
|
|
2259
2611
|
// BioContext manifest commands (v2.6.0)
|
|
2260
2612
|
const contextCmd = program
|
|
2261
2613
|
.command('context')
|
|
@@ -2535,6 +2887,101 @@ qcCmd
|
|
|
2535
2887
|
process.exit(1);
|
|
2536
2888
|
}
|
|
2537
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); });
|
|
2538
2985
|
// Verkko command group — telomere-to-telomere assembly (verkko 2.3.2), biocid-gated
|
|
2539
2986
|
const verkkoCmd = program
|
|
2540
2987
|
.command('verkko')
|
|
@@ -2852,6 +3299,78 @@ hifiAlignCmd
|
|
|
2852
3299
|
process.exit(1);
|
|
2853
3300
|
}
|
|
2854
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
|
+
});
|
|
2855
3374
|
// ---- downstream verbs the hifi-align keystone unblocks (M3/M4/M5/M9) ----
|
|
2856
3375
|
// pbsv — HiFi read-based structural variants
|
|
2857
3376
|
const pbsvCmd = program.command('pbsv').description('HiFi read-based structural-variant calling (pbsv): submit (client) + exec (VM runner)');
|
|
@@ -3151,7 +3670,7 @@ researcherCmd
|
|
|
3151
3670
|
.option('--provider <provider>', 'Force a specific provider (orcid, google, linkedin, twitter, apple, metamask)')
|
|
3152
3671
|
.action(async (options) => {
|
|
3153
3672
|
try {
|
|
3154
|
-
await (0,
|
|
3673
|
+
await (0, register_4.researcherRegisterCommand)(options);
|
|
3155
3674
|
}
|
|
3156
3675
|
catch (error) {
|
|
3157
3676
|
logger_1.Logger.error(`Researcher registration failed: ${error}`);
|
|
@@ -3165,7 +3684,7 @@ researcherCmd
|
|
|
3165
3684
|
.option('--refresh', 'Refresh profile from server')
|
|
3166
3685
|
.action(async (options) => {
|
|
3167
3686
|
try {
|
|
3168
|
-
await (0,
|
|
3687
|
+
await (0, status_10.researcherStatusCommand)(options);
|
|
3169
3688
|
}
|
|
3170
3689
|
catch (error) {
|
|
3171
3690
|
logger_1.Logger.error(`Researcher status failed: ${error}`);
|
|
@@ -3331,6 +3850,41 @@ program
|
|
|
3331
3850
|
process.exit(1);
|
|
3332
3851
|
}
|
|
3333
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
|
+
});
|
|
3334
3888
|
// PSM-consensus — Piezoelectric Signal Model: same cross-spectrum maths as
|
|
3335
3889
|
// rrm-consensus, but with side-chain dipole moment (Debye) replacing EIIP.
|
|
3336
3890
|
// Tests the hypothesis that the piezoelectric encoding picks up
|
|
@@ -3411,7 +3965,7 @@ program
|
|
|
3411
3965
|
// Inventory subcommand: register-sqlite (closes v2 audit gap §5 item 2).
|
|
3412
3966
|
program
|
|
3413
3967
|
.command('inventory-register-sqlite <sqlite-path>')
|
|
3414
|
-
.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)')
|
|
3415
3969
|
.requiredOption('--sample-serial <serial>', 'Biosample serial identifier (14-digit or lab-case-id form)')
|
|
3416
3970
|
.option('--owner-wallet <addr>', 'Override owner biowallet (default: from `biofs login`)')
|
|
3417
3971
|
.option('--case-id <id>', 'Optional lab case identifier (e.g., TN25-336147)')
|
|
@@ -3812,12 +4366,14 @@ program
|
|
|
3812
4366
|
.option('--format <type>', 'Output format: table | tsv | json (default: table)', 'table')
|
|
3813
4367
|
.option('--output <path>', 'Write output to file instead of stdout')
|
|
3814
4368
|
.option('--plot <path>', 'Render |ΔF| windowed spectrum to PNG (one panel per variant)')
|
|
3815
|
-
.option('--consensus-fc', 'Also score
|
|
3816
|
-
.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')
|
|
3817
4373
|
.option('--quiet', 'Suppress progress output')
|
|
3818
4374
|
.action(async (variants, options) => {
|
|
3819
4375
|
try {
|
|
3820
|
-
await (0, fourier_score_1.fourierScoreCommand)(variants, options);
|
|
4376
|
+
await (0, fourier_score_1.fourierScoreCommand)(variants, { ...options, nullModel: !!options.nullModel });
|
|
3821
4377
|
}
|
|
3822
4378
|
catch (error) {
|
|
3823
4379
|
logger_1.Logger.error(`Fourier scoring failed: ${error}`);
|
|
@@ -4339,6 +4895,7 @@ consentCmd
|
|
|
4339
4895
|
.requiredOption('--session <id>', 'MCP session id (Mcp-Session-Id)')
|
|
4340
4896
|
.requiredOption('--biocid <biocid>', 'The biocid:// the grant covers')
|
|
4341
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)')
|
|
4342
4899
|
.option('--json', 'Emit JSON')
|
|
4343
4900
|
.option('--quiet', 'Suppress progress')
|
|
4344
4901
|
.action(async (o) => {
|
|
@@ -4542,6 +5099,146 @@ synapsePullCmd
|
|
|
4542
5099
|
.option('--wait', 'Poll until done or failed')
|
|
4543
5100
|
.option('--json', 'Emit JSON')
|
|
4544
5101
|
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('synapse', id, options); });
|
|
5102
|
+
const publicFetchCmd = program
|
|
5103
|
+
.command('public-fetch')
|
|
5104
|
+
.description('Bring a PUBLIC ENA paired FASTQ run (or its first N read pairs) onto a governed worker and into your biowallet, with the archive\'s own size and MD5 as lineage (the job names an accession, never a URL; dispatched through biofs-node)');
|
|
5105
|
+
publicFetchCmd
|
|
5106
|
+
.command('submit <caseId>')
|
|
5107
|
+
.description('Submit a public archive fetch; nothing is downloaded by this machine')
|
|
5108
|
+
.requiredOption('--accession <run>', 'ENA run accession, for example SRR1234567 (paired Illumina run)')
|
|
5109
|
+
.requiredOption('--max-total-bytes <n>', 'Refuse the job if the run is larger than this many bytes (nothing is downloaded)')
|
|
5110
|
+
.option('--pairs <n>', 'Keep only the first N read pairs (1000 to 50000000), written with a deterministic gzip; the lineage says so')
|
|
5111
|
+
.option('--out-name <name>', 'Name stem of the two FASTQ files (default: the accession)')
|
|
5112
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5113
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5114
|
+
.option('--json', 'Emit JSON')
|
|
5115
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.publicFetchSubmitCommand)(caseId, options); });
|
|
5116
|
+
publicFetchCmd
|
|
5117
|
+
.command('status <job>')
|
|
5118
|
+
.description('Show a public fetch job (only the signer who submitted it can read it)')
|
|
5119
|
+
.option('--wait', 'Poll until done or failed')
|
|
5120
|
+
.option('--json', 'Emit JSON')
|
|
5121
|
+
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('public_fetch', id, options); });
|
|
5122
|
+
program
|
|
5123
|
+
.command('inventory-list')
|
|
5124
|
+
.description('NODE OPERATOR, read-only: list the file rows of bioroutes.inventory for sample serials or one lab, grouped by file (never the whole inventory)')
|
|
5125
|
+
.option('--serial <serials...>', 'Sample serial numbers')
|
|
5126
|
+
.option('--lab <name>', 'Origin lab (for example augenomics)')
|
|
5127
|
+
.option('--type <types...>', 'File types (fastq, bam, vcf, gvcf, sqlite, ...)')
|
|
5128
|
+
.option('--limit <n>', 'Maximum rows (default 200, at most 500)')
|
|
5129
|
+
.option('--json', 'Emit JSON with the biocids')
|
|
5130
|
+
.action(async (options) => {
|
|
5131
|
+
try {
|
|
5132
|
+
await (0, inventory_list_1.inventoryListCommand)(options);
|
|
5133
|
+
}
|
|
5134
|
+
catch (e) {
|
|
5135
|
+
console.error(chalk_1.default.red(e.message));
|
|
5136
|
+
process.exit(1);
|
|
5137
|
+
}
|
|
5138
|
+
});
|
|
5139
|
+
program
|
|
5140
|
+
.command('inventory-register <biocids...>')
|
|
5141
|
+
.description('NODE OPERATOR: copy file rows already in bioroutes.inventory into biocid_registry so jobs can resolve them (owner unchanged, consent custodian, your attestation recorded; dry run unless --yes)')
|
|
5142
|
+
.requiredOption('--attest <text>', 'The basis on which GenoBank.io holds and uses these files (at least 20 characters, recorded with the rows)')
|
|
5143
|
+
.option('--yes', 'Write the rows (default is a dry run that writes nothing)')
|
|
5144
|
+
.option('--json', 'Emit JSON')
|
|
5145
|
+
.action(async (biocids, options) => {
|
|
5146
|
+
try {
|
|
5147
|
+
await (0, inventory_register_1.inventoryRegisterCommand)(biocids, options);
|
|
5148
|
+
}
|
|
5149
|
+
catch (e) {
|
|
5150
|
+
console.error(chalk_1.default.red(e.message));
|
|
5151
|
+
process.exit(1);
|
|
5152
|
+
}
|
|
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); });
|
|
5191
|
+
program
|
|
5192
|
+
.command('jobs')
|
|
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')
|
|
5194
|
+
.option('--limit <n>', 'How many (default 25, at most 100)')
|
|
5195
|
+
.option('--json', 'Emit JSON')
|
|
5196
|
+
.action(async (options) => {
|
|
5197
|
+
try {
|
|
5198
|
+
await (0, job_view_1.jobsCommand)(options);
|
|
5199
|
+
}
|
|
5200
|
+
catch (e) {
|
|
5201
|
+
console.error(chalk_1.default.red(e.message));
|
|
5202
|
+
process.exit(1);
|
|
5203
|
+
}
|
|
5204
|
+
});
|
|
5205
|
+
program
|
|
5206
|
+
.command('job-log <job>')
|
|
5207
|
+
.description('The run log of a governed job (pbrun\'s own output); --follow streams it live until the job ends')
|
|
5208
|
+
.option('--follow', 'Stream until the job ends')
|
|
5209
|
+
.option('--from <n>', 'Byte offset to start from (the next offset of the previous call)')
|
|
5210
|
+
.option('--json', 'Emit JSON lines')
|
|
5211
|
+
.action(async (job, options) => {
|
|
5212
|
+
try {
|
|
5213
|
+
await (0, job_view_1.jobLogCommand)(job, options);
|
|
5214
|
+
}
|
|
5215
|
+
catch (e) {
|
|
5216
|
+
console.error(chalk_1.default.red(e.message));
|
|
5217
|
+
process.exit(1);
|
|
5218
|
+
}
|
|
5219
|
+
});
|
|
5220
|
+
program
|
|
5221
|
+
.command('inventory-delegate <biocids...>')
|
|
5222
|
+
.description('OWNER SIGNATURE: the current owner (MetaMask) signs a message that hands the named biofiles to a new owner wallet while the named operators keep the right to run pipelines and deliver results to the new owner. Step 1 prints the message to sign; step 2 sends it with --signature (dry run unless --yes)')
|
|
5223
|
+
.requiredOption('--from <wallet>', 'The current owner wallet that signs (must equal the rows\' present owner)')
|
|
5224
|
+
.requiredOption('--to <wallet>', 'The new owner wallet')
|
|
5225
|
+
.requiredOption('--attest <text>', 'The basis on which the owner hands these files over (20 to 600 characters, signed and recorded)')
|
|
5226
|
+
.option('--operator <wallets...>', 'Operator wallets that keep pipeline rights (default: the owner and your signed-in wallet)')
|
|
5227
|
+
.option('--signature <hex>', 'The personal_sign signature of the message printed by step 1')
|
|
5228
|
+
.option('--nonce <hex>', 'The nonce printed by step 1 (required with --signature)')
|
|
5229
|
+
.option('--expires <iso>', 'The expiry printed by step 1 (required with --signature)')
|
|
5230
|
+
.option('--expires-hours <n>', 'Step 1 only: validity in hours (default 24, at most 168)')
|
|
5231
|
+
.option('--yes', 'Write the change (default is a dry run that writes nothing)')
|
|
5232
|
+
.option('--json', 'Emit JSON')
|
|
5233
|
+
.action(async (biocids, options) => {
|
|
5234
|
+
try {
|
|
5235
|
+
await (0, inventory_delegate_1.inventoryDelegateCommand)(biocids, options);
|
|
5236
|
+
}
|
|
5237
|
+
catch (e) {
|
|
5238
|
+
console.error(chalk_1.default.red(e.message));
|
|
5239
|
+
process.exit(1);
|
|
5240
|
+
}
|
|
5241
|
+
});
|
|
4545
5242
|
const teslaGateCmd = program
|
|
4546
5243
|
.command('tesla-gate')
|
|
4547
5244
|
.description('The registered test of the case 1 evidence gate on the TESLA subjects: join variants to pMHC, apply the frozen gate, exact and permutation statistics (dispatched through biofs-node)');
|
|
@@ -4566,6 +5263,205 @@ teslaGateCmd
|
|
|
4566
5263
|
.option('--wait', 'Poll until done or failed')
|
|
4567
5264
|
.option('--json', 'Emit JSON')
|
|
4568
5265
|
.action(async (id, options) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('tesla_gate', id, options); });
|
|
5266
|
+
const identityCmd = program
|
|
5267
|
+
.command('identity-concordance')
|
|
5268
|
+
.description('Are these samples the same individual? Pairwise genotype concordance and KING-robust kinship from the samples\' gVCFs under the registered identity protocol; gates any pooling or merging (dispatched through biofs-node, decision support only)');
|
|
5269
|
+
identityCmd
|
|
5270
|
+
.command('submit <caseId>')
|
|
5271
|
+
.description('Submit the identity comparison; every input is a gVCF biocid and the code and protocol hashes must be the registered ones')
|
|
5272
|
+
.requiredOption('--sample <pairs...>', 'label=biocid of a sample\'s gVCF, 2 to 8, repeatable: L13972=biocid://genobank/0x.../gvcf/...')
|
|
5273
|
+
.requiredOption('--code-sha256 <hex>', 'SHA-256 of identity_concordance.py as registered; the worker refuses any other code')
|
|
5274
|
+
.requiredOption('--protocol-sha256 <hex>', 'SHA-256 of the registered protocol')
|
|
5275
|
+
.requiredOption('--ledger-record <n>', 'The pre-registration ledger record number')
|
|
5276
|
+
.option('--min-depth <n>', 'Minimum depth of a confident genotype (default 10)')
|
|
5277
|
+
.option('--min-gq <n>', 'Minimum genotype quality (default 20)')
|
|
5278
|
+
.option('--executor <where>', 'auto (default): a healthy neoantigen worker agent, else this node; worker: only a worker, never falls back; local: only this node')
|
|
5279
|
+
.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)')
|
|
5280
|
+
.option('--wait', 'Poll until the job finishes')
|
|
5281
|
+
.option('--json', 'Emit JSON')
|
|
5282
|
+
.action(async (caseId, options) => { await (0, neoantigen_pipeline_1.identitySubmitCommand)(caseId, options); });
|
|
5283
|
+
identityCmd
|
|
5284
|
+
.command('status <job>')
|
|
5285
|
+
.description('Show an identity job (only the signer who submitted it can read it)')
|
|
5286
|
+
.option('--wait', 'Poll until done or failed')
|
|
5287
|
+
.option('--json', 'Emit JSON')
|
|
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); });
|
|
5463
|
+
// pbrun: one verb for each NVIDIA Parabricks tool, generated from the registry (src/commands/parabricks/registry.json)
|
|
5464
|
+
(0, parabricks_1.registerParabricksCommands)(program);
|
|
4569
5465
|
const registerDerivedCmd = program
|
|
4570
5466
|
.command('register-derived')
|
|
4571
5467
|
.description('Give a biocid, with lineage, to a derived biofile (dispatched through biofs-node)');
|
|
@@ -4617,6 +5513,23 @@ fluencyCmd
|
|
|
4617
5513
|
process.exit(1);
|
|
4618
5514
|
}
|
|
4619
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
|
+
});
|
|
4620
5533
|
program
|
|
4621
5534
|
.command('lineage <biocid>')
|
|
4622
5535
|
.description('Report the biodata metamorphosis: what this was derived from, what came from it, who owns each piece, and what erases with what')
|