@genobank/biofs 3.1.0 → 3.18.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 +663 -462
- package/dist/abi/USDC.json +33 -0
- package/dist/abi/sequentia/BioAgentRegistry.json +20 -0
- package/dist/abi/sequentia/BioCIDRegistry.json +139 -0
- package/dist/abi/sequentia/BioPIL.json +130 -0
- package/dist/abi/sequentia/ConsentManager.json +620 -0
- package/dist/abi/sequentia/OpenCravatJobs.json +988 -0
- package/dist/abi/sequentia/PaymentRouter.json +638 -0
- package/dist/commands/agent/list-sequentia.d.ts +17 -0
- package/dist/commands/agent/list-sequentia.d.ts.map +1 -0
- package/dist/commands/agent/list-sequentia.js +87 -0
- package/dist/commands/agent/list-sequentia.js.map +1 -0
- package/dist/commands/agent/register-sequentia.d.ts +33 -0
- package/dist/commands/agent/register-sequentia.d.ts.map +1 -0
- package/dist/commands/agent/register-sequentia.js +145 -0
- package/dist/commands/agent/register-sequentia.js.map +1 -0
- package/dist/commands/align-shard/exec.d.ts +45 -0
- package/dist/commands/align-shard/exec.d.ts.map +1 -0
- package/dist/commands/align-shard/exec.js +549 -0
- package/dist/commands/align-shard/exec.js.map +1 -0
- package/dist/commands/align-shard/submit.d.ts +37 -0
- package/dist/commands/align-shard/submit.d.ts.map +1 -0
- package/dist/commands/align-shard/submit.js +117 -0
- package/dist/commands/align-shard/submit.js.map +1 -0
- package/dist/commands/ancestry/ingest.d.ts +34 -0
- package/dist/commands/ancestry/ingest.d.ts.map +1 -0
- package/dist/commands/ancestry/ingest.js +175 -0
- package/dist/commands/ancestry/ingest.js.map +1 -0
- package/dist/commands/ancestry/share.d.ts +33 -0
- package/dist/commands/ancestry/share.d.ts.map +1 -0
- package/dist/commands/ancestry/share.js +154 -0
- package/dist/commands/ancestry/share.js.map +1 -0
- package/dist/commands/ancestry/somos.d.ts +34 -0
- package/dist/commands/ancestry/somos.d.ts.map +1 -0
- package/dist/commands/ancestry/somos.js +151 -0
- package/dist/commands/ancestry/somos.js.map +1 -0
- package/dist/commands/ancestry/status.d.ts +14 -0
- package/dist/commands/ancestry/status.d.ts.map +1 -0
- package/dist/commands/ancestry/status.js +74 -0
- package/dist/commands/ancestry/status.js.map +1 -0
- package/dist/commands/annotate/status.d.ts +11 -4
- package/dist/commands/annotate/status.d.ts.map +1 -1
- package/dist/commands/annotate/status.js +66 -99
- package/dist/commands/annotate/status.js.map +1 -1
- package/dist/commands/annotate/submit.d.ts +15 -5
- package/dist/commands/annotate/submit.d.ts.map +1 -1
- package/dist/commands/annotate/submit.js +86 -266
- package/dist/commands/annotate/submit.js.map +1 -1
- package/dist/commands/benchmark.d.ts +50 -0
- package/dist/commands/benchmark.d.ts.map +1 -0
- package/dist/commands/benchmark.js +608 -0
- package/dist/commands/benchmark.js.map +1 -0
- package/dist/commands/biofiles.d.ts +1 -0
- package/dist/commands/biofiles.d.ts.map +1 -1
- package/dist/commands/biofiles.js +19 -6
- package/dist/commands/biofiles.js.map +1 -1
- package/dist/commands/biowallet/bind.d.ts +12 -0
- package/dist/commands/biowallet/bind.d.ts.map +1 -0
- package/dist/commands/biowallet/bind.js +85 -0
- package/dist/commands/biowallet/bind.js.map +1 -0
- package/dist/commands/biowallet/create.d.ts +40 -0
- package/dist/commands/biowallet/create.d.ts.map +1 -0
- package/dist/commands/biowallet/create.js +191 -0
- package/dist/commands/biowallet/create.js.map +1 -0
- package/dist/commands/biowallet/family.d.ts +48 -0
- package/dist/commands/biowallet/family.d.ts.map +1 -0
- package/dist/commands/biowallet/family.js +310 -0
- package/dist/commands/biowallet/family.js.map +1 -0
- package/dist/commands/biowallet/list.d.ts +15 -0
- package/dist/commands/biowallet/list.d.ts.map +1 -0
- package/dist/commands/biowallet/list.js +81 -0
- package/dist/commands/biowallet/list.js.map +1 -0
- package/dist/commands/bode.d.ts +34 -0
- package/dist/commands/bode.d.ts.map +1 -0
- package/dist/commands/bode.js +257 -0
- package/dist/commands/bode.js.map +1 -0
- package/dist/commands/claim.d.ts +32 -0
- package/dist/commands/claim.d.ts.map +1 -0
- package/dist/commands/claim.js +138 -0
- package/dist/commands/claim.js.map +1 -0
- package/dist/commands/clinical.d.ts +49 -0
- package/dist/commands/clinical.d.ts.map +1 -0
- package/dist/commands/clinical.js +273 -0
- package/dist/commands/clinical.js.map +1 -0
- package/dist/commands/cohort-acmg.d.ts +42 -0
- package/dist/commands/cohort-acmg.d.ts.map +1 -0
- package/dist/commands/cohort-acmg.js +319 -0
- package/dist/commands/cohort-acmg.js.map +1 -0
- package/dist/commands/cohort-fourier-score.d.ts +57 -0
- package/dist/commands/cohort-fourier-score.d.ts.map +1 -0
- package/dist/commands/cohort-fourier-score.js +390 -0
- package/dist/commands/cohort-fourier-score.js.map +1 -0
- package/dist/commands/cohort-pipeline.d.ts +49 -0
- package/dist/commands/cohort-pipeline.d.ts.map +1 -0
- package/dist/commands/cohort-pipeline.js +308 -0
- package/dist/commands/cohort-pipeline.js.map +1 -0
- package/dist/commands/cohort-train.d.ts +45 -0
- package/dist/commands/cohort-train.d.ts.map +1 -0
- package/dist/commands/cohort-train.js +308 -0
- package/dist/commands/cohort-train.js.map +1 -0
- package/dist/commands/comethyl/exec.d.ts +40 -0
- package/dist/commands/comethyl/exec.d.ts.map +1 -0
- package/dist/commands/comethyl/exec.js +493 -0
- package/dist/commands/comethyl/exec.js.map +1 -0
- package/dist/commands/comethyl/submit.d.ts +35 -0
- package/dist/commands/comethyl/submit.d.ts.map +1 -0
- package/dist/commands/comethyl/submit.js +98 -0
- package/dist/commands/comethyl/submit.js.map +1 -0
- package/dist/commands/consent.d.ts +10 -0
- package/dist/commands/consent.d.ts.map +1 -0
- package/dist/commands/consent.js +114 -0
- package/dist/commands/consent.js.map +1 -0
- package/dist/commands/dipcall/exec.d.ts +25 -0
- package/dist/commands/dipcall/exec.d.ts.map +1 -0
- package/dist/commands/dipcall/exec.js +207 -0
- package/dist/commands/dipcall/exec.js.map +1 -0
- package/dist/commands/dipcall/submit.d.ts +22 -0
- package/dist/commands/dipcall/submit.d.ts.map +1 -0
- package/dist/commands/dipcall/submit.js +81 -0
- package/dist/commands/dipcall/submit.js.map +1 -0
- package/dist/commands/download-with-consent.d.ts +1 -0
- package/dist/commands/download-with-consent.d.ts.map +1 -1
- package/dist/commands/download-with-consent.js +32 -0
- package/dist/commands/download-with-consent.js.map +1 -1
- package/dist/commands/download.d.ts +2 -0
- package/dist/commands/download.d.ts.map +1 -1
- package/dist/commands/download.js +31 -0
- package/dist/commands/download.js.map +1 -1
- package/dist/commands/duet.d.ts +39 -0
- package/dist/commands/duet.d.ts.map +1 -0
- package/dist/commands/duet.js +323 -0
- package/dist/commands/duet.js.map +1 -0
- package/dist/commands/erase.d.ts +29 -0
- package/dist/commands/erase.d.ts.map +1 -0
- package/dist/commands/erase.js +136 -0
- package/dist/commands/erase.js.map +1 -0
- package/dist/commands/family-status.d.ts +3 -0
- package/dist/commands/family-status.d.ts.map +1 -1
- package/dist/commands/family-status.js +279 -166
- package/dist/commands/family-status.js.map +1 -1
- package/dist/commands/fingerprint.d.ts +2 -0
- package/dist/commands/fingerprint.d.ts.map +1 -1
- package/dist/commands/fingerprint.js +4 -0
- package/dist/commands/fingerprint.js.map +1 -1
- package/dist/commands/fluency/index.d.ts +7 -0
- package/dist/commands/fluency/index.d.ts.map +1 -0
- package/dist/commands/fluency/index.js +122 -0
- package/dist/commands/fluency/index.js.map +1 -0
- package/dist/commands/fourier-score.d.ts +36 -0
- package/dist/commands/fourier-score.d.ts.map +1 -0
- package/dist/commands/fourier-score.js +713 -0
- package/dist/commands/fourier-score.js.map +1 -0
- package/dist/commands/fuse.d.ts.map +1 -1
- package/dist/commands/fuse.js +29 -7
- package/dist/commands/fuse.js.map +1 -1
- package/dist/commands/hifi-align/exec.d.ts +23 -0
- package/dist/commands/hifi-align/exec.d.ts.map +1 -0
- package/dist/commands/hifi-align/exec.js +224 -0
- package/dist/commands/hifi-align/exec.js.map +1 -0
- package/dist/commands/hifi-align/submit.d.ts +22 -0
- package/dist/commands/hifi-align/submit.d.ts.map +1 -0
- package/dist/commands/hifi-align/submit.js +82 -0
- package/dist/commands/hifi-align/submit.js.map +1 -0
- package/dist/commands/hifi-deepvariant/exec.d.ts +29 -0
- package/dist/commands/hifi-deepvariant/exec.d.ts.map +1 -0
- package/dist/commands/hifi-deepvariant/exec.js +280 -0
- package/dist/commands/hifi-deepvariant/exec.js.map +1 -0
- package/dist/commands/hifi-deepvariant/submit.d.ts +23 -0
- package/dist/commands/hifi-deepvariant/submit.d.ts.map +1 -0
- package/dist/commands/hifi-deepvariant/submit.js +80 -0
- package/dist/commands/hifi-deepvariant/submit.js.map +1 -0
- package/dist/commands/hifi-methyl/exec.d.ts +25 -0
- package/dist/commands/hifi-methyl/exec.d.ts.map +1 -0
- package/dist/commands/hifi-methyl/exec.js +243 -0
- package/dist/commands/hifi-methyl/exec.js.map +1 -0
- package/dist/commands/hifi-methyl/submit.d.ts +22 -0
- package/dist/commands/hifi-methyl/submit.d.ts.map +1 -0
- package/dist/commands/hifi-methyl/submit.js +78 -0
- package/dist/commands/hifi-methyl/submit.js.map +1 -0
- package/dist/commands/htsget.d.ts +6 -0
- package/dist/commands/htsget.d.ts.map +1 -1
- package/dist/commands/htsget.js +31 -6
- package/dist/commands/htsget.js.map +1 -1
- package/dist/commands/imaging/attribute.d.ts +19 -0
- package/dist/commands/imaging/attribute.d.ts.map +1 -0
- package/dist/commands/imaging/attribute.js +102 -0
- package/dist/commands/imaging/attribute.js.map +1 -0
- package/dist/commands/imaging/characterize.d.ts +20 -0
- package/dist/commands/imaging/characterize.d.ts.map +1 -0
- package/dist/commands/imaging/characterize.js +105 -0
- package/dist/commands/imaging/characterize.js.map +1 -0
- package/dist/commands/imaging/compare.d.ts +33 -0
- package/dist/commands/imaging/compare.d.ts.map +1 -0
- package/dist/commands/imaging/compare.js +129 -0
- package/dist/commands/imaging/compare.js.map +1 -0
- package/dist/commands/imaging/enrich.d.ts +28 -0
- package/dist/commands/imaging/enrich.d.ts.map +1 -0
- package/dist/commands/imaging/enrich.js +130 -0
- package/dist/commands/imaging/enrich.js.map +1 -0
- package/dist/commands/imaging/findings.d.ts +21 -0
- package/dist/commands/imaging/findings.d.ts.map +1 -0
- package/dist/commands/imaging/findings.js +134 -0
- package/dist/commands/imaging/findings.js.map +1 -0
- package/dist/commands/imaging/lesions.d.ts +21 -0
- package/dist/commands/imaging/lesions.d.ts.map +1 -0
- package/dist/commands/imaging/lesions.js +131 -0
- package/dist/commands/imaging/lesions.js.map +1 -0
- package/dist/commands/imaging/submit.d.ts +32 -0
- package/dist/commands/imaging/submit.d.ts.map +1 -0
- package/dist/commands/imaging/submit.js +118 -0
- package/dist/commands/imaging/submit.js.map +1 -0
- package/dist/commands/imaging/trajectory.d.ts +23 -0
- package/dist/commands/imaging/trajectory.d.ts.map +1 -0
- package/dist/commands/imaging/trajectory.js +134 -0
- package/dist/commands/imaging/trajectory.js.map +1 -0
- package/dist/commands/imaging/twin.d.ts +32 -0
- package/dist/commands/imaging/twin.d.ts.map +1 -0
- package/dist/commands/imaging/twin.js +168 -0
- package/dist/commands/imaging/twin.js.map +1 -0
- package/dist/commands/ingest-rna-tpm.d.ts +33 -0
- package/dist/commands/ingest-rna-tpm.d.ts.map +1 -0
- package/dist/commands/ingest-rna-tpm.js +104 -0
- package/dist/commands/ingest-rna-tpm.js.map +1 -0
- package/dist/commands/interpret/status.d.ts +14 -0
- package/dist/commands/interpret/status.d.ts.map +1 -0
- package/dist/commands/interpret/status.js +83 -0
- package/dist/commands/interpret/status.js.map +1 -0
- package/dist/commands/interpret/submit.d.ts +22 -0
- package/dist/commands/interpret/submit.d.ts.map +1 -0
- package/dist/commands/interpret/submit.js +103 -0
- package/dist/commands/interpret/submit.js.map +1 -0
- package/dist/commands/inventory/cohort.d.ts +29 -0
- package/dist/commands/inventory/cohort.d.ts.map +1 -0
- package/dist/commands/inventory/cohort.js +136 -0
- package/dist/commands/inventory/cohort.js.map +1 -0
- package/dist/commands/inventory-register-sqlite.d.ts +36 -0
- package/dist/commands/inventory-register-sqlite.d.ts.map +1 -0
- package/dist/commands/inventory-register-sqlite.js +178 -0
- package/dist/commands/inventory-register-sqlite.js.map +1 -0
- package/dist/commands/job/recall.d.ts +6 -0
- package/dist/commands/job/recall.d.ts.map +1 -0
- package/dist/commands/job/recall.js +59 -0
- package/dist/commands/job/recall.js.map +1 -0
- package/dist/commands/job/reconcile.d.ts +19 -0
- package/dist/commands/job/reconcile.d.ts.map +1 -0
- package/dist/commands/job/reconcile.js +67 -0
- package/dist/commands/job/reconcile.js.map +1 -0
- package/dist/commands/lab/refreshCoverage.d.ts +53 -0
- package/dist/commands/lab/refreshCoverage.d.ts.map +1 -0
- package/dist/commands/lab/refreshCoverage.js +244 -0
- package/dist/commands/lab/refreshCoverage.js.map +1 -0
- package/dist/commands/liftover/exec.d.ts +27 -0
- package/dist/commands/liftover/exec.d.ts.map +1 -0
- package/dist/commands/liftover/exec.js +258 -0
- package/dist/commands/liftover/exec.js.map +1 -0
- package/dist/commands/liftover/submit.d.ts +22 -0
- package/dist/commands/liftover/submit.d.ts.map +1 -0
- package/dist/commands/liftover/submit.js +79 -0
- package/dist/commands/liftover/submit.js.map +1 -0
- package/dist/commands/lineage.d.ts +6 -0
- package/dist/commands/lineage.d.ts.map +1 -0
- package/dist/commands/lineage.js +126 -0
- package/dist/commands/lineage.js.map +1 -0
- package/dist/commands/methyl/exec.d.ts +47 -0
- package/dist/commands/methyl/exec.d.ts.map +1 -0
- package/dist/commands/methyl/exec.js +565 -0
- package/dist/commands/methyl/exec.js.map +1 -0
- package/dist/commands/methyl/submit.d.ts +25 -0
- package/dist/commands/methyl/submit.d.ts.map +1 -0
- package/dist/commands/methyl/submit.js +98 -0
- package/dist/commands/methyl/submit.js.map +1 -0
- package/dist/commands/mount.d.ts +17 -2
- package/dist/commands/mount.d.ts.map +1 -1
- package/dist/commands/mount.js +158 -6
- package/dist/commands/mount.js.map +1 -1
- package/dist/commands/myvariant.d.ts +60 -0
- package/dist/commands/myvariant.d.ts.map +1 -0
- package/dist/commands/myvariant.js +433 -0
- package/dist/commands/myvariant.js.map +1 -0
- package/dist/commands/ont-variants/exec.d.ts +24 -0
- package/dist/commands/ont-variants/exec.d.ts.map +1 -0
- package/dist/commands/ont-variants/exec.js +230 -0
- package/dist/commands/ont-variants/exec.js.map +1 -0
- package/dist/commands/ont-variants/submit.d.ts +22 -0
- package/dist/commands/ont-variants/submit.d.ts.map +1 -0
- package/dist/commands/ont-variants/submit.js +78 -0
- package/dist/commands/ont-variants/submit.js.map +1 -0
- package/dist/commands/pbsv/exec.d.ts +24 -0
- package/dist/commands/pbsv/exec.d.ts.map +1 -0
- package/dist/commands/pbsv/exec.js +231 -0
- package/dist/commands/pbsv/exec.js.map +1 -0
- package/dist/commands/pbsv/submit.d.ts +22 -0
- package/dist/commands/pbsv/submit.d.ts.map +1 -0
- package/dist/commands/pbsv/submit.js +78 -0
- package/dist/commands/pbsv/submit.js.map +1 -0
- package/dist/commands/phase/exec.d.ts +26 -0
- package/dist/commands/phase/exec.d.ts.map +1 -0
- package/dist/commands/phase/exec.js +246 -0
- package/dist/commands/phase/exec.js.map +1 -0
- package/dist/commands/phase/submit.d.ts +24 -0
- package/dist/commands/phase/submit.d.ts.map +1 -0
- package/dist/commands/phase/submit.js +83 -0
- package/dist/commands/phase/submit.js.map +1 -0
- package/dist/commands/pipe.d.ts +4 -2
- package/dist/commands/pipe.d.ts.map +1 -1
- package/dist/commands/pipe.js +55 -50
- package/dist/commands/pipe.js.map +1 -1
- package/dist/commands/pipeline/runWes.d.ts +28 -0
- package/dist/commands/pipeline/runWes.d.ts.map +1 -0
- package/dist/commands/pipeline/runWes.js +276 -0
- package/dist/commands/pipeline/runWes.js.map +1 -0
- package/dist/commands/profile.d.ts +8 -0
- package/dist/commands/profile.d.ts.map +1 -0
- package/dist/commands/profile.js +193 -0
- package/dist/commands/profile.js.map +1 -0
- package/dist/commands/psm-consensus.d.ts +72 -0
- package/dist/commands/psm-consensus.d.ts.map +1 -0
- package/dist/commands/psm-consensus.js +338 -0
- package/dist/commands/psm-consensus.js.map +1 -0
- package/dist/commands/qc/exec.d.ts +32 -0
- package/dist/commands/qc/exec.d.ts.map +1 -0
- package/dist/commands/qc/exec.js +350 -0
- package/dist/commands/qc/exec.js.map +1 -0
- package/dist/commands/qc/submit.d.ts +23 -0
- package/dist/commands/qc/submit.d.ts.map +1 -0
- package/dist/commands/qc/submit.js +88 -0
- package/dist/commands/qc/submit.js.map +1 -0
- package/dist/commands/query.d.ts +37 -0
- package/dist/commands/query.d.ts.map +1 -0
- package/dist/commands/query.js +170 -0
- package/dist/commands/query.js.map +1 -0
- package/dist/commands/repeat-genotype/exec.d.ts +26 -0
- package/dist/commands/repeat-genotype/exec.d.ts.map +1 -0
- package/dist/commands/repeat-genotype/exec.js +245 -0
- package/dist/commands/repeat-genotype/exec.js.map +1 -0
- package/dist/commands/repeat-genotype/submit.d.ts +23 -0
- package/dist/commands/repeat-genotype/submit.d.ts.map +1 -0
- package/dist/commands/repeat-genotype/submit.js +82 -0
- package/dist/commands/repeat-genotype/submit.js.map +1 -0
- package/dist/commands/researcher/passport.d.ts +15 -0
- package/dist/commands/researcher/passport.d.ts.map +1 -0
- package/dist/commands/researcher/passport.js +98 -0
- package/dist/commands/researcher/passport.js.map +1 -0
- package/dist/commands/researcher/register.d.ts +18 -0
- package/dist/commands/researcher/register.d.ts.map +1 -0
- package/dist/commands/researcher/register.js +277 -0
- package/dist/commands/researcher/register.js.map +1 -0
- package/dist/commands/researcher/status.d.ts +6 -0
- package/dist/commands/researcher/status.d.ts.map +1 -0
- package/dist/commands/researcher/status.js +111 -0
- package/dist/commands/researcher/status.js.map +1 -0
- package/dist/commands/room.d.ts +31 -0
- package/dist/commands/room.d.ts.map +1 -0
- package/dist/commands/room.js +486 -0
- package/dist/commands/room.js.map +1 -0
- package/dist/commands/route/anchor.d.ts +42 -0
- package/dist/commands/route/anchor.d.ts.map +1 -0
- package/dist/commands/route/anchor.js +213 -0
- package/dist/commands/route/anchor.js.map +1 -0
- package/dist/commands/route/index.d.ts +27 -0
- package/dist/commands/route/index.d.ts.map +1 -0
- package/dist/commands/route/index.js +82 -0
- package/dist/commands/route/index.js.map +1 -0
- package/dist/commands/rrm-consensus.d.ts +74 -0
- package/dist/commands/rrm-consensus.d.ts.map +1 -0
- package/dist/commands/rrm-consensus.js +334 -0
- package/dist/commands/rrm-consensus.js.map +1 -0
- package/dist/commands/rrm-distribution.d.ts +34 -0
- package/dist/commands/rrm-distribution.d.ts.map +1 -0
- package/dist/commands/rrm-distribution.js +743 -0
- package/dist/commands/rrm-distribution.js.map +1 -0
- package/dist/commands/rrm-train.d.ts +33 -0
- package/dist/commands/rrm-train.d.ts.map +1 -0
- package/dist/commands/rrm-train.js +549 -0
- package/dist/commands/rrm-train.js.map +1 -0
- package/dist/commands/samples.d.ts +25 -0
- package/dist/commands/samples.d.ts.map +1 -0
- package/dist/commands/samples.js +184 -0
- package/dist/commands/samples.js.map +1 -0
- package/dist/commands/score-protein.d.ts +13 -0
- package/dist/commands/score-protein.d.ts.map +1 -0
- package/dist/commands/score-protein.js +360 -0
- package/dist/commands/score-protein.js.map +1 -0
- package/dist/commands/stream.d.ts +7 -0
- package/dist/commands/stream.d.ts.map +1 -1
- package/dist/commands/stream.js +26 -41
- package/dist/commands/stream.js.map +1 -1
- package/dist/commands/sv-call/exec.d.ts +23 -0
- package/dist/commands/sv-call/exec.d.ts.map +1 -0
- package/dist/commands/sv-call/exec.js +233 -0
- package/dist/commands/sv-call/exec.js.map +1 -0
- package/dist/commands/sv-call/submit.d.ts +21 -0
- package/dist/commands/sv-call/submit.d.ts.map +1 -0
- package/dist/commands/sv-call/submit.js +77 -0
- package/dist/commands/sv-call/submit.js.map +1 -0
- package/dist/commands/tele.d.ts +42 -0
- package/dist/commands/tele.d.ts.map +1 -0
- package/dist/commands/tele.js +559 -0
- package/dist/commands/tele.js.map +1 -0
- package/dist/commands/tokenize-spectrum.d.ts +58 -0
- package/dist/commands/tokenize-spectrum.d.ts.map +1 -0
- package/dist/commands/tokenize-spectrum.js +297 -0
- package/dist/commands/tokenize-spectrum.js.map +1 -0
- package/dist/commands/umount.d.ts.map +1 -1
- package/dist/commands/umount.js +42 -1
- package/dist/commands/umount.js.map +1 -1
- package/dist/commands/variants.d.ts +42 -0
- package/dist/commands/variants.d.ts.map +1 -0
- package/dist/commands/variants.js +237 -0
- package/dist/commands/variants.js.map +1 -0
- package/dist/commands/verkko/exec.d.ts +27 -0
- package/dist/commands/verkko/exec.d.ts.map +1 -0
- package/dist/commands/verkko/exec.js +223 -0
- package/dist/commands/verkko/exec.js.map +1 -0
- package/dist/commands/verkko/submit.d.ts +24 -0
- package/dist/commands/verkko/submit.d.ts.map +1 -0
- package/dist/commands/verkko/submit.js +96 -0
- package/dist/commands/verkko/submit.js.map +1 -0
- package/dist/commands/wavelet-consensus.d.ts +69 -0
- package/dist/commands/wavelet-consensus.d.ts.map +1 -0
- package/dist/commands/wavelet-consensus.js +338 -0
- package/dist/commands/wavelet-consensus.js.map +1 -0
- package/dist/commands/workspace.d.ts +59 -0
- package/dist/commands/workspace.d.ts.map +1 -0
- package/dist/commands/workspace.js +419 -0
- package/dist/commands/workspace.js.map +1 -0
- package/dist/commands/x402/index.d.ts +8 -0
- package/dist/commands/x402/index.d.ts.map +1 -1
- package/dist/commands/x402/index.js +100 -2
- package/dist/commands/x402/index.js.map +1 -1
- package/dist/commands/x402/pipeline-cancer-twin.d.ts +119 -0
- package/dist/commands/x402/pipeline-cancer-twin.d.ts.map +1 -0
- package/dist/commands/x402/pipeline-cancer-twin.js +326 -0
- package/dist/commands/x402/pipeline-cancer-twin.js.map +1 -0
- package/dist/commands/x402/submit.d.ts +72 -0
- package/dist/commands/x402/submit.d.ts.map +1 -0
- package/dist/commands/x402/submit.js +227 -0
- package/dist/commands/x402/submit.js.map +1 -0
- package/dist/commands/x402/verify-payment.d.ts +24 -0
- package/dist/commands/x402/verify-payment.d.ts.map +1 -0
- package/dist/commands/x402/verify-payment.js +113 -0
- package/dist/commands/x402/verify-payment.js.map +1 -0
- package/dist/index.js +2804 -196
- package/dist/index.js.map +1 -1
- package/dist/lib/api/client.d.ts +1 -0
- package/dist/lib/api/client.d.ts.map +1 -1
- package/dist/lib/api/client.js +22 -0
- package/dist/lib/api/client.js.map +1 -1
- package/dist/lib/api/fuse-client.d.ts +281 -0
- package/dist/lib/api/fuse-client.d.ts.map +1 -1
- package/dist/lib/api/fuse-client.js +428 -0
- package/dist/lib/api/fuse-client.js.map +1 -1
- package/dist/lib/biofiles/resolver.d.ts +1 -1
- package/dist/lib/biofiles/resolver.d.ts.map +1 -1
- package/dist/lib/biofiles/resolver.js +173 -138
- package/dist/lib/biofiles/resolver.js.map +1 -1
- package/dist/lib/config/constants.d.ts +1 -0
- package/dist/lib/config/constants.d.ts.map +1 -1
- package/dist/lib/config/constants.js +1 -0
- package/dist/lib/config/constants.js.map +1 -1
- package/dist/lib/config/paths.d.ts +6 -6
- package/dist/lib/config/paths.d.ts.map +1 -1
- package/dist/lib/config/paths.js +56 -17
- package/dist/lib/config/paths.js.map +1 -1
- package/dist/lib/gene-map.d.ts +24 -0
- package/dist/lib/gene-map.d.ts.map +1 -0
- package/dist/lib/gene-map.js +114 -0
- package/dist/lib/gene-map.js.map +1 -0
- package/dist/lib/htsget/client.d.ts +28 -5
- package/dist/lib/htsget/client.d.ts.map +1 -1
- package/dist/lib/htsget/client.js +96 -18
- package/dist/lib/htsget/client.js.map +1 -1
- package/dist/lib/sequentia/BioAgentRegistry.d.ts +98 -0
- package/dist/lib/sequentia/BioAgentRegistry.d.ts.map +1 -0
- package/dist/lib/sequentia/BioAgentRegistry.js +209 -0
- package/dist/lib/sequentia/BioAgentRegistry.js.map +1 -0
- package/dist/lib/tele/core.d.ts +71 -0
- package/dist/lib/tele/core.d.ts.map +1 -0
- package/dist/lib/tele/core.js +387 -0
- package/dist/lib/tele/core.js.map +1 -0
- package/dist/lib/x402/cancer-twin-agents.d.ts +65 -0
- package/dist/lib/x402/cancer-twin-agents.d.ts.map +1 -0
- package/dist/lib/x402/cancer-twin-agents.js +114 -0
- package/dist/lib/x402/cancer-twin-agents.js.map +1 -0
- package/dist/lib/x402/sequentia-pay.d.ts +51 -0
- package/dist/lib/x402/sequentia-pay.d.ts.map +1 -0
- package/dist/lib/x402/sequentia-pay.js +186 -0
- package/dist/lib/x402/sequentia-pay.js.map +1 -0
- package/dist/types/biofiles.d.ts +1 -1
- package/dist/types/biofiles.d.ts.map +1 -1
- package/dist/utils/errorReporter.d.ts +1 -0
- package/dist/utils/errorReporter.d.ts.map +1 -1
- package/dist/utils/errorReporter.js +39 -1
- package/dist/utils/errorReporter.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +20 -0
- package/dist/version.js.map +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* biofs verkko <serial> --hifi <biocid,biocid> --nano <biocid,...>
|
|
4
|
+
* biofs verkko submit <serial> ...
|
|
5
|
+
*
|
|
6
|
+
* CLIENT verb: submits a verkko T2T genome-assembly job to biofs-node. Inputs are BIOCIDS from
|
|
7
|
+
* biorouter (NOT raw gs:// paths) so the BioNFT/consent gate is enforced: biofs-node resolves each
|
|
8
|
+
* biocid -> gs:// via bioroutes.inventory AND verifies consent before any byte is read; only the
|
|
9
|
+
* gated, resolved paths reach the executor. The executor downsamples HiFi, extracts ONT ultralong
|
|
10
|
+
* (>= --ont-minlen) to fastq, runs verkko 2.3.2 (local), and persists the assembly to the biowallet
|
|
11
|
+
* verkko/ folder. Multi-day job. Dispatched through the protocol surface
|
|
12
|
+
* (POST /api_biofs_node/job -> biofs-node), NOT a raw script. biofs-node anchors a ClaraJobNFT
|
|
13
|
+
* (pipeline label `verkko-t2t`) on success.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.verkkoSubmitCommand = verkkoSubmitCommand;
|
|
20
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
21
|
+
const ora_1 = __importDefault(require("ora"));
|
|
22
|
+
const axios_1 = __importDefault(require("axios"));
|
|
23
|
+
const credentials_1 = require("../../lib/auth/credentials");
|
|
24
|
+
const logger_1 = require("../../lib/utils/logger");
|
|
25
|
+
const constants_1 = require("../../lib/config/constants");
|
|
26
|
+
function isBiocid(s) { return /^BioCID:/i.test(s) || /^biocid:\/\//i.test(s); }
|
|
27
|
+
async function verkkoSubmitCommand(serial, options) {
|
|
28
|
+
const spinner = (0, ora_1.default)('Submitting verkko T2T assembly job to biofs-node...').start();
|
|
29
|
+
try {
|
|
30
|
+
const credentials = await (0, credentials_1.getCredentials)();
|
|
31
|
+
if (!credentials)
|
|
32
|
+
throw new Error('Not authenticated. Run "biofs login" first.');
|
|
33
|
+
const apiBase = constants_1.CONFIG.API_BASE_URL;
|
|
34
|
+
const hifi = (options.hifi || '').split(',').map(s => s.trim()).filter(Boolean);
|
|
35
|
+
const nano = (options.nano || '').split(',').map(s => s.trim()).filter(Boolean);
|
|
36
|
+
if (hifi.length === 0)
|
|
37
|
+
throw new Error('--hifi must list at least one biocid (from biorouter)');
|
|
38
|
+
if (nano.length === 0)
|
|
39
|
+
throw new Error('--nano must list at least one biocid (from biorouter)');
|
|
40
|
+
for (const b of [...hifi, ...nano]) {
|
|
41
|
+
if (b.startsWith('gs://'))
|
|
42
|
+
throw new Error(`raw gs:// is not allowed — pass the biorouter biocid instead: ${b}`);
|
|
43
|
+
if (!isBiocid(b))
|
|
44
|
+
throw new Error(`not a biocid (expected BioCID:... from biorouter): ${b}`);
|
|
45
|
+
}
|
|
46
|
+
const jobId = `verkko-${serial}-${Date.now()}`;
|
|
47
|
+
const outputBucket = 'genobank-parabricks-output';
|
|
48
|
+
const creatorLc = (credentials.wallet_address || '').toLowerCase();
|
|
49
|
+
const manifestUri = `gs://${outputBucket}/biowallet/${creatorLc}/verkko/${jobId}/manifest.json`;
|
|
50
|
+
spinner.text = `Submitting verkko for ${serial} (HiFi x${hifi.length}, ONT x${nano.length} biocids) -> biofs-node...`;
|
|
51
|
+
const response = await axios_1.default.post(`${apiBase}/api_biofs_node/job`, {
|
|
52
|
+
jobId,
|
|
53
|
+
biosampleId: serial,
|
|
54
|
+
inputType: 'verkko',
|
|
55
|
+
verkkoHifiBiocids: hifi,
|
|
56
|
+
verkkoNanoBiocids: nano,
|
|
57
|
+
// consent: biofs-node verifyConsent runs over every input biocid (operator => admin-bypass)
|
|
58
|
+
methylBiocid: [...hifi, ...nano].join(','),
|
|
59
|
+
hifiProp: options.hifiProp || '1.0',
|
|
60
|
+
ontMinlen: options.ontMinlen || '100000',
|
|
61
|
+
localMemory: options.localMemory || '320',
|
|
62
|
+
localCpus: options.localCpus || '80',
|
|
63
|
+
manifestUri,
|
|
64
|
+
creatorWallet: credentials.wallet_address,
|
|
65
|
+
creatorSig: credentials.user_signature,
|
|
66
|
+
outputBucket,
|
|
67
|
+
batchId: `verkko-${new Date().toISOString().slice(0, 10)}`,
|
|
68
|
+
}, { timeout: 300000 });
|
|
69
|
+
spinner.succeed(chalk_1.default.green('verkko submitted to biofs-node (biocids gated via biorouter; ClaraJobNFT anchored on success)'));
|
|
70
|
+
if (options.json) {
|
|
71
|
+
console.log(JSON.stringify(response.data, null, 2));
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
console.log();
|
|
75
|
+
console.log(chalk_1.default.bold('Verkko T2T Assembly Job (biofs-node):'));
|
|
76
|
+
console.log(` ${chalk_1.default.cyan('Job ID:')} ${response.data.jobId || jobId}`);
|
|
77
|
+
console.log(` ${chalk_1.default.cyan('Sample:')} ${serial}`);
|
|
78
|
+
console.log(` ${chalk_1.default.cyan('HiFi:')} ${hifi.length} biocid(s) (keep prop ${options.hifiProp || '1.0'})`);
|
|
79
|
+
console.log(` ${chalk_1.default.cyan('ONT:')} ${nano.length} biocid(s) (ultralong >= ${options.ontMinlen || '100000'} bp)`);
|
|
80
|
+
console.log(` ${chalk_1.default.cyan('Gate:')} biorouter biocid -> gs:// + verifyConsent (BioNFT)`);
|
|
81
|
+
console.log(` ${chalk_1.default.cyan('Verkko:')} 2.3.2 local-memory=${options.localMemory || '320'}G local-cpus=${options.localCpus || '80'}`);
|
|
82
|
+
console.log(` ${chalk_1.default.cyan('Status:')} ${response.data.status || 'accepted'} (multi-day run)`);
|
|
83
|
+
console.log();
|
|
84
|
+
console.log(chalk_1.default.gray('Monitor: ') + chalk_1.default.cyan(`biofs job status ${response.data.jobId || jobId}`));
|
|
85
|
+
console.log();
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
spinner.fail(chalk_1.default.red('Failed to submit verkko job'));
|
|
89
|
+
if (error.response)
|
|
90
|
+
logger_1.Logger.error(`Server error (${error.response.status}): ${error.response.data?.error || error.response.data?.message || error.message}`);
|
|
91
|
+
else
|
|
92
|
+
logger_1.Logger.error(`Error: ${error.message}`);
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=submit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../src/commands/verkko/submit.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;AAqBH,kDA6DC;AAhFD,kDAA0B;AAC1B,8CAAsB;AACtB,kDAA0B;AAC1B,4DAA4D;AAC5D,mDAAgD;AAChD,0DAAoD;AAYpD,SAAS,QAAQ,CAAC,CAAS,IAAa,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzF,KAAK,UAAU,mBAAmB,CAAC,MAAc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AAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,eAAK,CAAC,IAAI,CAAC,oBAAoB,QAAQ,CAAC,IAAI,CAAC,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC;QACtG,OAAO,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC,CAAC;QACvD,IAAI,KAAK,CAAC,QAAQ;YAAE,eAAM,CAAC,KAAK,CAAC,iBAAiB,KAAK,CAAC,QAAQ,CAAC,MAAM,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;;YACvJ,eAAM,CAAC,KAAK,CAAC,UAAU,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAC7C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* biofs wavelet-consensus <gene>
|
|
3
|
+
*
|
|
4
|
+
* Continuous-wavelet replacement for `rrm-consensus`. Computes a 2-D
|
|
5
|
+
* (position by scale) magnitude map of a protein family's EIIP-encoded
|
|
6
|
+
* primary sequence using the complex Morlet wavelet, then derives a
|
|
7
|
+
* consensus across the family by log-domain product. The result is a
|
|
8
|
+
* spatial-spectral localization of where, along the residue axis, the
|
|
9
|
+
* family resonates and at what scale (in amino-acid period units).
|
|
10
|
+
*
|
|
11
|
+
* Rationale (response to the v1 paper auditor's third upgrade point).
|
|
12
|
+
* The 1-D Fourier transform measures global periodicity and smears the
|
|
13
|
+
* energy of a single point mutation across all bins. The windowed Fourier
|
|
14
|
+
* we used in §2.4 of the v1 manuscript localizes within a fixed W = 31
|
|
15
|
+
* residue window but uses a single scale. The continuous Morlet wavelet
|
|
16
|
+
* resolves position and scale jointly, which is the correct primitive for
|
|
17
|
+
* cohort-scale variant scoring at multiple structural scales (alpha helix
|
|
18
|
+
* pitch 3.6 aa, beta strand 2 aa, beta turn 4 aa, domain spacing tens to
|
|
19
|
+
* hundreds of aa).
|
|
20
|
+
*
|
|
21
|
+
* Output: cached JSON at ~/.biofs/cache/wavelet/<gene>.json containing the
|
|
22
|
+
* consensus 2-D magnitude map (sub-sampled to keep file size bounded), the
|
|
23
|
+
* dominant peak (position, scale), the family's characteristic scale, and
|
|
24
|
+
* the per-position aggregate magnitude profile for downstream
|
|
25
|
+
* `biofs wavelet-score` per-variant disruption scoring.
|
|
26
|
+
*/
|
|
27
|
+
export interface WaveletConsensusOptions {
|
|
28
|
+
source?: string;
|
|
29
|
+
taxonomy?: string;
|
|
30
|
+
reviewed?: boolean;
|
|
31
|
+
max?: string;
|
|
32
|
+
refresh?: boolean;
|
|
33
|
+
quiet?: boolean;
|
|
34
|
+
uniprot?: string;
|
|
35
|
+
pfam?: string;
|
|
36
|
+
encoding?: string;
|
|
37
|
+
scales?: string;
|
|
38
|
+
}
|
|
39
|
+
interface PeakInfo {
|
|
40
|
+
position: number;
|
|
41
|
+
scale_bin: number;
|
|
42
|
+
scale_aa: number;
|
|
43
|
+
magnitude: number;
|
|
44
|
+
}
|
|
45
|
+
export interface WaveletConsensusResult {
|
|
46
|
+
gene: string;
|
|
47
|
+
uniprot: string;
|
|
48
|
+
source: 'family' | 'orthologs';
|
|
49
|
+
pfam?: string;
|
|
50
|
+
taxonomy: string;
|
|
51
|
+
encoding: string;
|
|
52
|
+
n_sequences: number;
|
|
53
|
+
common_length: number;
|
|
54
|
+
scales_aa: number[];
|
|
55
|
+
consensus_magnitude_subsampled?: number[][];
|
|
56
|
+
position_aggregate_profile?: number[];
|
|
57
|
+
scale_aggregate_profile?: number[];
|
|
58
|
+
dominant_peaks: PeakInfo[];
|
|
59
|
+
characteristic_scale_bin: number;
|
|
60
|
+
characteristic_scale_aa: number;
|
|
61
|
+
background_mean: number;
|
|
62
|
+
background_std: number;
|
|
63
|
+
signal_to_noise_ratio: number;
|
|
64
|
+
generated_at: string;
|
|
65
|
+
uniprot_ids: string[];
|
|
66
|
+
}
|
|
67
|
+
export declare function waveletConsensusCommand(gene: string, opts: WaveletConsensusOptions): Promise<void>;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=wavelet-consensus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wavelet-consensus.d.ts","sourceRoot":"","sources":["../../src/commands/wavelet-consensus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAaH,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,QAAQ;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,8BAA8B,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAC5C,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;IACtC,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,cAAc,EAAE,QAAQ,EAAE,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AA8LD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFxG"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* biofs wavelet-consensus <gene>
|
|
4
|
+
*
|
|
5
|
+
* Continuous-wavelet replacement for `rrm-consensus`. Computes a 2-D
|
|
6
|
+
* (position by scale) magnitude map of a protein family's EIIP-encoded
|
|
7
|
+
* primary sequence using the complex Morlet wavelet, then derives a
|
|
8
|
+
* consensus across the family by log-domain product. The result is a
|
|
9
|
+
* spatial-spectral localization of where, along the residue axis, the
|
|
10
|
+
* family resonates and at what scale (in amino-acid period units).
|
|
11
|
+
*
|
|
12
|
+
* Rationale (response to the v1 paper auditor's third upgrade point).
|
|
13
|
+
* The 1-D Fourier transform measures global periodicity and smears the
|
|
14
|
+
* energy of a single point mutation across all bins. The windowed Fourier
|
|
15
|
+
* we used in §2.4 of the v1 manuscript localizes within a fixed W = 31
|
|
16
|
+
* residue window but uses a single scale. The continuous Morlet wavelet
|
|
17
|
+
* resolves position and scale jointly, which is the correct primitive for
|
|
18
|
+
* cohort-scale variant scoring at multiple structural scales (alpha helix
|
|
19
|
+
* pitch 3.6 aa, beta strand 2 aa, beta turn 4 aa, domain spacing tens to
|
|
20
|
+
* hundreds of aa).
|
|
21
|
+
*
|
|
22
|
+
* Output: cached JSON at ~/.biofs/cache/wavelet/<gene>.json containing the
|
|
23
|
+
* consensus 2-D magnitude map (sub-sampled to keep file size bounded), the
|
|
24
|
+
* dominant peak (position, scale), the family's characteristic scale, and
|
|
25
|
+
* the per-position aggregate magnitude profile for downstream
|
|
26
|
+
* `biofs wavelet-score` per-variant disruption scoring.
|
|
27
|
+
*/
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(o, k2, desc);
|
|
35
|
+
}) : (function(o, m, k, k2) {
|
|
36
|
+
if (k2 === undefined) k2 = k;
|
|
37
|
+
o[k2] = m[k];
|
|
38
|
+
}));
|
|
39
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
+
}) : function(o, v) {
|
|
42
|
+
o["default"] = v;
|
|
43
|
+
});
|
|
44
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
45
|
+
var ownKeys = function(o) {
|
|
46
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
49
|
+
return ar;
|
|
50
|
+
};
|
|
51
|
+
return ownKeys(o);
|
|
52
|
+
};
|
|
53
|
+
return function (mod) {
|
|
54
|
+
if (mod && mod.__esModule) return mod;
|
|
55
|
+
var result = {};
|
|
56
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
57
|
+
__setModuleDefault(result, mod);
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
})();
|
|
61
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
62
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
|
+
};
|
|
64
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
+
exports.waveletConsensusCommand = waveletConsensusCommand;
|
|
66
|
+
const child_process_1 = require("child_process");
|
|
67
|
+
const fs = __importStar(require("fs"));
|
|
68
|
+
const path = __importStar(require("path"));
|
|
69
|
+
const os = __importStar(require("os"));
|
|
70
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
71
|
+
const ora_1 = __importDefault(require("ora"));
|
|
72
|
+
const gene_map_1 = require("../lib/gene-map");
|
|
73
|
+
const WAVELET_CACHE_DIR = path.join(os.homedir(), '.biofs', 'cache', 'wavelet');
|
|
74
|
+
const EIIP_PY_LITERAL = `{
|
|
75
|
+
'A': 0.0373, 'R': 0.0959, 'N': 0.0036, 'D': 0.1263, 'C': 0.0829,
|
|
76
|
+
'E': 0.0058, 'Q': 0.0761, 'G': 0.0050, 'H': 0.0242, 'I': 0.0000,
|
|
77
|
+
'L': 0.0000, 'K': 0.0371, 'M': 0.0823, 'F': 0.0946, 'P': 0.0198,
|
|
78
|
+
'S': 0.0829, 'T': 0.0941, 'W': 0.0548, 'Y': 0.0516, 'V': 0.0057,
|
|
79
|
+
}`;
|
|
80
|
+
const PIEZO_PY_LITERAL = `{
|
|
81
|
+
'A': 0.40, 'R': 13.5, 'N': 3.50, 'D': 7.20, 'C': 1.40,
|
|
82
|
+
'E': 7.00, 'Q': 3.60, 'G': 0.00, 'H': 2.30, 'I': 0.13,
|
|
83
|
+
'L': 0.13, 'K': 8.30, 'M': 1.20, 'F': 0.13, 'P': 0.00,
|
|
84
|
+
'S': 1.70, 'T': 1.70, 'W': 2.10, 'Y': 1.60, 'V': 0.13,
|
|
85
|
+
}`;
|
|
86
|
+
function buildPyConsensus(encoding) {
|
|
87
|
+
const indexLiteral = encoding === 'piezo' ? PIEZO_PY_LITERAL : EIIP_PY_LITERAL;
|
|
88
|
+
return `
|
|
89
|
+
import sys, json, re, math
|
|
90
|
+
import numpy as np
|
|
91
|
+
|
|
92
|
+
AA_INDEX = ${indexLiteral}
|
|
93
|
+
|
|
94
|
+
# --- Morlet CWT ---
|
|
95
|
+
# Complex Morlet wavelet with central frequency parameter w.
|
|
96
|
+
# coef[i,j] = (mother wavelet at scale s_i, translated to position j) convolved
|
|
97
|
+
# with the signal. We return |coef| as the spatial-spectral magnitude.
|
|
98
|
+
def morlet_wavelet(M, s, w=6.0):
|
|
99
|
+
x = np.linspace(-2 * np.pi, 2 * np.pi, M) * s
|
|
100
|
+
psi = np.exp(1j * w * x / s) * np.exp(-0.5 * (x / s) ** 2) * (np.pi ** -0.25) / np.sqrt(s)
|
|
101
|
+
# Subtract the admissibility correction term
|
|
102
|
+
psi -= np.exp(-0.5 * w ** 2) * np.exp(-0.5 * (x / s) ** 2) * (np.pi ** -0.25) / np.sqrt(s)
|
|
103
|
+
return psi
|
|
104
|
+
|
|
105
|
+
def cwt_morlet(signal, scales, w=6.0):
|
|
106
|
+
n = len(signal)
|
|
107
|
+
out = np.zeros((len(scales), n), dtype=float)
|
|
108
|
+
for i, s in enumerate(scales):
|
|
109
|
+
M = min(n, int(10 * s) + 1)
|
|
110
|
+
if M < 4:
|
|
111
|
+
M = 4
|
|
112
|
+
psi = morlet_wavelet(M, s, w=w)
|
|
113
|
+
# Convolve signal with conjugate-reversed wavelet for cross-correlation.
|
|
114
|
+
conv = np.convolve(signal, np.conj(psi[::-1]), mode='same')
|
|
115
|
+
out[i] = np.abs(conv)
|
|
116
|
+
return out
|
|
117
|
+
|
|
118
|
+
# --- input parsing ---
|
|
119
|
+
cfg = json.loads(sys.stdin.read())
|
|
120
|
+
fasta = cfg['fasta']
|
|
121
|
+
scales_str = cfg.get('scales') or '2,3,4,6,8,12,16,24,32,48,64,96'
|
|
122
|
+
scales = np.array([float(x) for x in scales_str.split(',')])
|
|
123
|
+
|
|
124
|
+
entries = []
|
|
125
|
+
parts = re.split(r'^>([^\\n]+)\\n', fasta, flags=re.M)
|
|
126
|
+
parts = parts[1:]
|
|
127
|
+
for i in range(0, len(parts), 2):
|
|
128
|
+
hdr = parts[i]
|
|
129
|
+
seq = re.sub(r'\\s', '', parts[i+1] if i+1 < len(parts) else '').upper()
|
|
130
|
+
acc_match = re.match(r'(sp|tr)\\|([A-Z0-9]+)\\|', hdr)
|
|
131
|
+
acc = acc_match.group(2) if acc_match else hdr.split(' ')[0]
|
|
132
|
+
if len(seq) >= 100:
|
|
133
|
+
entries.append({'accession': acc, 'sequence': seq, 'length': len(seq)})
|
|
134
|
+
|
|
135
|
+
if len(entries) < 5:
|
|
136
|
+
print(json.dumps({'error': f'too few sequences ({len(entries)}); need at least 5'}))
|
|
137
|
+
sys.exit(2)
|
|
138
|
+
|
|
139
|
+
lengths = [e['length'] for e in entries]
|
|
140
|
+
common_length = int(np.median(lengths))
|
|
141
|
+
|
|
142
|
+
# --- compute per-sequence CWT magnitude map, then geometric-mean consensus ---
|
|
143
|
+
print(f' Computing CWT for {len(entries)} sequences across {len(scales)} scales (target length {common_length} aa)...', file=sys.stderr)
|
|
144
|
+
all_maps = []
|
|
145
|
+
for idx, e in enumerate(entries):
|
|
146
|
+
s = e['sequence'][:common_length]
|
|
147
|
+
if len(s) < common_length:
|
|
148
|
+
s = s + 'X' * (common_length - len(s))
|
|
149
|
+
encoded = np.array([AA_INDEX.get(aa, 0.0) for aa in s], dtype=float)
|
|
150
|
+
encoded = encoded - encoded.mean()
|
|
151
|
+
mag = cwt_morlet(encoded, scales)
|
|
152
|
+
total = mag.sum()
|
|
153
|
+
if total > 0:
|
|
154
|
+
mag = mag / total
|
|
155
|
+
all_maps.append(mag)
|
|
156
|
+
|
|
157
|
+
stacked = np.stack(all_maps) # (M, n_scales, n_pos)
|
|
158
|
+
|
|
159
|
+
log_stack = np.log(stacked + 1e-12)
|
|
160
|
+
consensus = np.exp(log_stack.sum(axis=0))
|
|
161
|
+
csum = consensus.sum()
|
|
162
|
+
if csum > 0:
|
|
163
|
+
consensus = consensus / csum
|
|
164
|
+
|
|
165
|
+
bg_mean = float(np.median(consensus))
|
|
166
|
+
bg_std = float(np.std(consensus))
|
|
167
|
+
threshold = bg_mean + 3 * bg_std
|
|
168
|
+
|
|
169
|
+
# Top peaks (2-D maxima above threshold, suppress neighbors within +/- 4 pos and +/- 1 scale)
|
|
170
|
+
flat = consensus.flatten()
|
|
171
|
+
sort_idx = np.argsort(flat)[::-1]
|
|
172
|
+
peaks = []
|
|
173
|
+
claimed = np.zeros_like(consensus, dtype=bool)
|
|
174
|
+
for ix in sort_idx[:200]:
|
|
175
|
+
si, pi = np.unravel_index(ix, consensus.shape)
|
|
176
|
+
if claimed[si, pi]:
|
|
177
|
+
continue
|
|
178
|
+
if consensus[si, pi] <= threshold:
|
|
179
|
+
break
|
|
180
|
+
peaks.append({
|
|
181
|
+
'position': int(pi),
|
|
182
|
+
'scale_bin': int(si),
|
|
183
|
+
'scale_aa': float(scales[si]),
|
|
184
|
+
'magnitude': float(consensus[si, pi]),
|
|
185
|
+
})
|
|
186
|
+
lo_s = max(0, si - 1)
|
|
187
|
+
hi_s = min(consensus.shape[0], si + 2)
|
|
188
|
+
lo_p = max(0, pi - 4)
|
|
189
|
+
hi_p = min(consensus.shape[1], pi + 5)
|
|
190
|
+
claimed[lo_s:hi_s, lo_p:hi_p] = True
|
|
191
|
+
if len(peaks) >= 16:
|
|
192
|
+
break
|
|
193
|
+
|
|
194
|
+
if not peaks:
|
|
195
|
+
# fall back to argmax
|
|
196
|
+
si, pi = np.unravel_index(np.argmax(consensus), consensus.shape)
|
|
197
|
+
peaks = [{
|
|
198
|
+
'position': int(pi),
|
|
199
|
+
'scale_bin': int(si),
|
|
200
|
+
'scale_aa': float(scales[si]),
|
|
201
|
+
'magnitude': float(consensus[si, pi]),
|
|
202
|
+
}]
|
|
203
|
+
|
|
204
|
+
top = peaks[0]
|
|
205
|
+
snr = float((top['magnitude'] - bg_mean) / (bg_std + 1e-12))
|
|
206
|
+
|
|
207
|
+
# Position aggregate (sum over scales) and scale aggregate (sum over positions)
|
|
208
|
+
pos_profile = consensus.sum(axis=0).tolist()
|
|
209
|
+
scale_profile = consensus.sum(axis=1).tolist()
|
|
210
|
+
|
|
211
|
+
# Subsample 2-D map for disk economy: keep up to 600 positions x all scales
|
|
212
|
+
n_pos = consensus.shape[1]
|
|
213
|
+
if n_pos <= 600:
|
|
214
|
+
submap = consensus.tolist()
|
|
215
|
+
else:
|
|
216
|
+
stride = max(1, n_pos // 600)
|
|
217
|
+
submap = consensus[:, ::stride].tolist()
|
|
218
|
+
|
|
219
|
+
result = {
|
|
220
|
+
'n_sequences': len(entries),
|
|
221
|
+
'common_length': common_length,
|
|
222
|
+
'scales_aa': scales.tolist(),
|
|
223
|
+
'consensus_magnitude_subsampled': submap,
|
|
224
|
+
'position_aggregate_profile': pos_profile,
|
|
225
|
+
'scale_aggregate_profile': scale_profile,
|
|
226
|
+
'dominant_peaks': peaks,
|
|
227
|
+
'characteristic_scale_bin': top['scale_bin'],
|
|
228
|
+
'characteristic_scale_aa': top['scale_aa'],
|
|
229
|
+
'background_mean': bg_mean,
|
|
230
|
+
'background_std': bg_std,
|
|
231
|
+
'signal_to_noise_ratio': snr,
|
|
232
|
+
'uniprot_ids': [e['accession'] for e in entries],
|
|
233
|
+
}
|
|
234
|
+
print(json.dumps(result))
|
|
235
|
+
`;
|
|
236
|
+
}
|
|
237
|
+
function printSummary(r) {
|
|
238
|
+
console.log(chalk_1.default.cyan(`\n🌊 Wavelet Consensus Map ${r.gene} (${r.uniprot})`));
|
|
239
|
+
console.log(chalk_1.default.cyan('─'.repeat(72)));
|
|
240
|
+
console.log(` encoding: ${r.encoding}`);
|
|
241
|
+
console.log(` source: ${r.source}${r.pfam ? `, Pfam ${r.pfam}` : ''}`);
|
|
242
|
+
console.log(` taxonomy id: ${r.taxonomy}`);
|
|
243
|
+
console.log(` sequences: ${r.n_sequences}`);
|
|
244
|
+
console.log(` common length: ${r.common_length} aa`);
|
|
245
|
+
console.log(` scales (aa): ${r.scales_aa.join(', ')}`);
|
|
246
|
+
console.log(chalk_1.default.cyan('─'.repeat(72)));
|
|
247
|
+
console.log(chalk_1.default.bold(` Characteristic scale s_c:`));
|
|
248
|
+
console.log(` bin ${r.characteristic_scale_bin}`);
|
|
249
|
+
console.log(` scale (aa) ${r.characteristic_scale_aa.toFixed(2)}`);
|
|
250
|
+
console.log(` signal-to-noise ${r.signal_to_noise_ratio.toFixed(2)} σ above background`);
|
|
251
|
+
console.log(chalk_1.default.cyan('─'.repeat(72)));
|
|
252
|
+
console.log(' Top dominant peaks (position, scale, magnitude):');
|
|
253
|
+
for (const p of r.dominant_peaks.slice(0, 6)) {
|
|
254
|
+
console.log(` pos ${String(p.position).padStart(4)} scale ${p.scale_aa.toFixed(1).padStart(5)} aa mag ${p.magnitude.toExponential(3)}`);
|
|
255
|
+
}
|
|
256
|
+
console.log('');
|
|
257
|
+
}
|
|
258
|
+
async function waveletConsensusCommand(gene, opts) {
|
|
259
|
+
const upper = gene.toUpperCase();
|
|
260
|
+
const uniprot = opts.uniprot || gene_map_1.GENE_TO_UNIPROT[upper];
|
|
261
|
+
if (!uniprot) {
|
|
262
|
+
throw new Error(`No UniProt mapping for ${upper}. Pass --uniprot <ACC>. Built-in: ${Object.keys(gene_map_1.GENE_TO_UNIPROT).join(', ')}`);
|
|
263
|
+
}
|
|
264
|
+
const encoding = (opts.encoding || 'eiip').toLowerCase();
|
|
265
|
+
if (encoding !== 'eiip' && encoding !== 'piezo') {
|
|
266
|
+
throw new Error(`--encoding must be 'eiip' or 'piezo' (got '${encoding}')`);
|
|
267
|
+
}
|
|
268
|
+
fs.mkdirSync(WAVELET_CACHE_DIR, { recursive: true });
|
|
269
|
+
const cachePath = path.join(WAVELET_CACHE_DIR, `${upper}_${encoding}.json`);
|
|
270
|
+
if (fs.existsSync(cachePath) && !opts.refresh) {
|
|
271
|
+
if (!opts.quiet)
|
|
272
|
+
console.error(chalk_1.default.gray(`✓ Cached at ${cachePath} (use --refresh to recompute)`));
|
|
273
|
+
const cached = JSON.parse(fs.readFileSync(cachePath, 'utf8'));
|
|
274
|
+
printSummary(cached);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
const source = opts.source || 'orthologs';
|
|
278
|
+
const taxonomy = opts.taxonomy || '7742';
|
|
279
|
+
const reviewed = opts.reviewed !== false;
|
|
280
|
+
const maxN = parseInt(opts.max || '100', 10);
|
|
281
|
+
const pfam = opts.pfam || gene_map_1.GENE_TO_PFAM[upper];
|
|
282
|
+
let query;
|
|
283
|
+
if (source === 'family') {
|
|
284
|
+
if (!pfam)
|
|
285
|
+
throw new Error(`No Pfam mapping for ${upper}. Pass --pfam <PFXXXXX>.`);
|
|
286
|
+
query = `xref:pfam-${pfam}+AND+taxonomy_id:${taxonomy}`;
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
query = `gene_exact:${upper}+AND+taxonomy_id:${taxonomy}`;
|
|
290
|
+
}
|
|
291
|
+
if (reviewed)
|
|
292
|
+
query += '+AND+reviewed:true';
|
|
293
|
+
const url = `https://rest.uniprot.org/uniprotkb/search?query=${query}&format=fasta&size=${maxN}`;
|
|
294
|
+
const spinner = opts.quiet ? null : (0, ora_1.default)(`Fetching ${source} sequences from UniProt (taxonomy ${taxonomy})...`).start();
|
|
295
|
+
const fastaResult = (0, child_process_1.spawnSync)('curl', ['-sS', '-A', 'biofs/3.7.0', '--max-time', '60', url], {
|
|
296
|
+
encoding: 'utf8',
|
|
297
|
+
maxBuffer: 50 * 1024 * 1024,
|
|
298
|
+
});
|
|
299
|
+
if (fastaResult.status !== 0 || !fastaResult.stdout.startsWith('>')) {
|
|
300
|
+
if (spinner)
|
|
301
|
+
spinner.fail('UniProt fetch failed');
|
|
302
|
+
throw new Error(`UniProt fetch failed (HTTP/curl): ${fastaResult.stderr || 'no FASTA returned'}`);
|
|
303
|
+
}
|
|
304
|
+
const seqCount = (fastaResult.stdout.match(/^>/gm) || []).length;
|
|
305
|
+
if (spinner)
|
|
306
|
+
spinner.succeed(`Fetched ${seqCount} sequences`);
|
|
307
|
+
const PY_CONSENSUS = buildPyConsensus(encoding);
|
|
308
|
+
const pyResult = (0, child_process_1.spawnSync)('python3', ['-c', PY_CONSENSUS], {
|
|
309
|
+
encoding: 'utf8',
|
|
310
|
+
input: JSON.stringify({ fasta: fastaResult.stdout, scales: opts.scales || '' }),
|
|
311
|
+
maxBuffer: 500 * 1024 * 1024,
|
|
312
|
+
timeout: 600000,
|
|
313
|
+
});
|
|
314
|
+
if (pyResult.status !== 0) {
|
|
315
|
+
throw new Error(`Wavelet consensus computation failed: ${pyResult.stderr || pyResult.stdout}`);
|
|
316
|
+
}
|
|
317
|
+
if (!opts.quiet)
|
|
318
|
+
process.stderr.write(pyResult.stderr);
|
|
319
|
+
const parsed = JSON.parse(pyResult.stdout);
|
|
320
|
+
if (parsed.error) {
|
|
321
|
+
throw new Error(`Wavelet computation: ${parsed.error}`);
|
|
322
|
+
}
|
|
323
|
+
const result = {
|
|
324
|
+
gene: upper,
|
|
325
|
+
uniprot,
|
|
326
|
+
source,
|
|
327
|
+
pfam,
|
|
328
|
+
taxonomy,
|
|
329
|
+
encoding,
|
|
330
|
+
...parsed,
|
|
331
|
+
generated_at: new Date().toISOString(),
|
|
332
|
+
};
|
|
333
|
+
fs.writeFileSync(cachePath, JSON.stringify(result, null, 2));
|
|
334
|
+
if (!opts.quiet)
|
|
335
|
+
console.error(chalk_1.default.green(`✓ Cached wavelet consensus to ${cachePath}`));
|
|
336
|
+
printSummary(result);
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=wavelet-consensus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wavelet-consensus.js","sourceRoot":"","sources":["../../src/commands/wavelet-consensus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoPH,0DAgFC;AAlUD,iDAA0C;AAC1C,uCAAyB;AACzB,2CAA6B;AAC7B,uCAAyB;AACzB,kDAA0B;AAC1B,8CAAsB;AAEtB,8CAAgE;AAEhE,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AA6ChF,MAAM,eAAe,GAAG;;;;;EAKtB,CAAC;AAEH,MAAM,gBAAgB,GAAG;;;;;EAKvB,CAAC;AAEH,SAAS,gBAAgB,CAAC,QAA0B;IAClD,MAAM,YAAY,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,eAAe,CAAC;IAC/E,OAAO;;;;aAII,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IxB,CAAC;AACF,CAAC;AAED,SAAS,YAAY,CAAC,CAAyB;IAC7C,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;IAChF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,C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AC,CAAC;IACH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,wBAAwB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,MAAM,GAA2B;QACrC,IAAI,EAAE,KAAK;QACX,OAAO;QACP,MAAM;QACN,IAAI;QACJ,QAAQ;QACR,QAAQ;QACR,GAAG,MAAM;QACT,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACvC,CAAC;IAEF,EAAE,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7D,IAAI,CAAC,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,KAAK,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAC,CAAC;IAE1F,YAAY,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* biofs workspace <verb> — the shared intra-LLM case workspace.
|
|
3
|
+
*
|
|
4
|
+
* Thin clients of biofs-node's /agent/workspace/* endpoints. Two LLM clients
|
|
5
|
+
* (Claude Code + Grok Build) co-work one case through this append-only,
|
|
6
|
+
* hash-chained log; biofs-node is the single authority for seq + chain. These
|
|
7
|
+
* verbs let a human (or the `biofs duet` conductor) seed, inspect, and audit
|
|
8
|
+
* the conversation from the CLI.
|
|
9
|
+
*
|
|
10
|
+
* Path convention matches `biofs annotate submit`: BIOFS_NODE_URL carries the
|
|
11
|
+
* routing prefix (`.../api_biofs_node` via nginx → biofs-node /agent/*, or
|
|
12
|
+
* `http://host:8787/agent` direct); the verb path appended here is bare.
|
|
13
|
+
*/
|
|
14
|
+
export interface WorkspaceOptions {
|
|
15
|
+
node?: string;
|
|
16
|
+
json?: boolean;
|
|
17
|
+
quiet?: boolean;
|
|
18
|
+
title?: string;
|
|
19
|
+
biocid?: string[];
|
|
20
|
+
sinceSeq?: string;
|
|
21
|
+
limit?: string;
|
|
22
|
+
as?: string;
|
|
23
|
+
role?: string;
|
|
24
|
+
content?: string;
|
|
25
|
+
ref?: string[];
|
|
26
|
+
status?: string;
|
|
27
|
+
expectedVersion?: string;
|
|
28
|
+
activeEditor?: string;
|
|
29
|
+
holder?: string;
|
|
30
|
+
ttl?: string;
|
|
31
|
+
release?: boolean;
|
|
32
|
+
upToSeq?: string;
|
|
33
|
+
subject?: string;
|
|
34
|
+
classification?: string;
|
|
35
|
+
criteria?: string;
|
|
36
|
+
confidence?: string;
|
|
37
|
+
rationale?: string;
|
|
38
|
+
strength?: string;
|
|
39
|
+
out?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function bioNodeBase(override?: string): string;
|
|
42
|
+
interface NodeResult {
|
|
43
|
+
status: number;
|
|
44
|
+
data: any;
|
|
45
|
+
}
|
|
46
|
+
export declare function wsNode(method: 'GET' | 'POST', path: string, body?: any, base?: string): Promise<NodeResult>;
|
|
47
|
+
export declare function workspaceOpenCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
48
|
+
export declare function workspaceReadCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
49
|
+
export declare function workspaceAppendCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
50
|
+
export declare function workspaceCaseCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
51
|
+
export declare function workspaceLeaseCommand(resource: string, options?: WorkspaceOptions): Promise<void>;
|
|
52
|
+
export declare function workspaceReplayCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
53
|
+
export declare function workspaceAnchorCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
54
|
+
export declare function workspaceClassifyCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
55
|
+
export declare function workspaceConsensusCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
56
|
+
export declare function workspaceExportCommand(caseId: string, options?: WorkspaceOptions): Promise<void>;
|
|
57
|
+
export declare function workspaceVerifyCommand(file: string, options?: WorkspaceOptions): Promise<void>;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/commands/workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAoBH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;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