@genobank/biofs 3.21.1 → 3.22.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/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/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/neoantigen-pipeline/index.d.ts +35 -1
- package/dist/commands/neoantigen-pipeline/index.d.ts.map +1 -1
- package/dist/commands/neoantigen-pipeline/index.js +107 -1
- package/dist/commands/neoantigen-pipeline/index.js.map +1 -1
- package/dist/commands/parabricks/index.d.ts +83 -0
- package/dist/commands/parabricks/index.d.ts.map +1 -0
- package/dist/commands/parabricks/index.js +340 -0
- package/dist/commands/parabricks/index.js.map +1 -0
- package/dist/commands/parabricks/registry.json +15100 -0
- 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/index.js +134 -0
- package/dist/index.js.map +1 -1
- 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
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.REGISTRY_SHA256 = exports.registry = void 0;
|
|
40
|
+
exports.buildParabricksBody = buildParabricksBody;
|
|
41
|
+
exports.addToolOptions = addToolOptions;
|
|
42
|
+
exports.rawFromCommand = rawFromCommand;
|
|
43
|
+
exports.registerParabricksCommands = registerParabricksCommands;
|
|
44
|
+
/**
|
|
45
|
+
* biofs pbrun <tool> <caseId> [options] one verb for each NVIDIA Parabricks tool (fq2bam, bqsr, applybqsr, haplotypecaller, deepvariant, deepsomatic, somatic, ...)
|
|
46
|
+
* biofs pbrun list every tool, its family and whether its real run has been validated
|
|
47
|
+
* biofs pbrun status <job> a pbrun job (only the signer who submitted it can read it)
|
|
48
|
+
*
|
|
49
|
+
* CLIENT verbs. The options are the ones of NVIDIA's own tool pages (the registry in registry.json is built from them, not typed by hand), with three differences that keep the
|
|
50
|
+
* protocol rules: (1) every input file is a biocid of yours, never a path; reference data is named (--ref hg38, --knownSites hg38:mills_1000g); (2) output files are never named by
|
|
51
|
+
* the caller: the job writes them under your biowallet and each becomes its own biocid with the input biocids as parents; the options that ask for an extra output are switches;
|
|
52
|
+
* (3) FASTQ input needs an explicit sample name (--sample-name), because a default read group would give a tumor and its normal the same name.
|
|
53
|
+
*
|
|
54
|
+
* Dispatched through biofs-node to a GPU worker agent (POST /neoantigen_parabricks). The node and the worker validate the job again against their own copy of the registry. A tool whose
|
|
55
|
+
* real run has not been validated against an independent result is refused unless you pass --acknowledge-untested, which is recorded in the run report. `mutectcaller` is not here: it is
|
|
56
|
+
* `biofs somatic-mutect`. Decision support for a human review, never a clinical device.
|
|
57
|
+
*/
|
|
58
|
+
const commander_1 = require("commander");
|
|
59
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
60
|
+
const crypto = __importStar(require("crypto"));
|
|
61
|
+
const fs = __importStar(require("fs"));
|
|
62
|
+
const registry_json_1 = __importDefault(require("./registry.json"));
|
|
63
|
+
const neoantigen_pipeline_1 = require("../neoantigen-pipeline");
|
|
64
|
+
const logger_1 = require("../../lib/utils/logger");
|
|
65
|
+
const job_view_1 = require("../job-view");
|
|
66
|
+
exports.registry = registry_json_1.default;
|
|
67
|
+
exports.REGISTRY_SHA256 = crypto.createHash('sha256').update(fs.readFileSync(require.resolve('./registry.json'))).digest('hex');
|
|
68
|
+
const EXTRA_FLAGS = ['--out-name', '--sample-name', '--library', '--platform', '--tumor-sample', '--normal-sample', '--acknowledge-untested', '--max-read-loss-fraction', '--owner', '--wait', '--json', '--check', '--ref', '--validate-with-bwa', '--validate-against-bam'];
|
|
69
|
+
const VARIADIC = ['fq_pairs', 'fq_single', 'known_sites', 'intervals'];
|
|
70
|
+
const NAME_RE = /^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/;
|
|
71
|
+
const CASE_RE = /^[A-Za-z0-9_-]{1,64}$/;
|
|
72
|
+
function biocidOf(flag, v) {
|
|
73
|
+
if (typeof v !== 'string' || !neoantigen_pipeline_1.BIOCID_RE.test(v))
|
|
74
|
+
throw new Error(`${flag} must be a biocid of yours (biocid://...), never a path or a bucket URL`);
|
|
75
|
+
return v;
|
|
76
|
+
}
|
|
77
|
+
/** Build the job body (and, for --check, nothing more) from what was typed. Throws a plain message for anything the registry already shows to be wrong; the node checks the rest. */
|
|
78
|
+
function buildParabricksBody(tool, caseId, raw, wallet, signature, reg = exports.registry, sha = exports.REGISTRY_SHA256) {
|
|
79
|
+
if (reg.already_a_verb[tool])
|
|
80
|
+
throw new Error(`${tool} is already a verb: use ${reg.already_a_verb[tool]}`);
|
|
81
|
+
const meta = reg.tools[tool];
|
|
82
|
+
if (!meta)
|
|
83
|
+
throw new Error(`unknown pbrun tool ${tool}`);
|
|
84
|
+
if (!CASE_RE.test(caseId))
|
|
85
|
+
throw new Error('caseId must be a case identifier of letters, digits, _ or - (never a person name)');
|
|
86
|
+
const outName = raw.outName ?? `${caseId}_${tool}`;
|
|
87
|
+
if (!NAME_RE.test(outName))
|
|
88
|
+
throw new Error('--out-name must be letters, digits, _ or - (at most 64)');
|
|
89
|
+
const inputs = {};
|
|
90
|
+
const passFlags = {};
|
|
91
|
+
const outputs = [];
|
|
92
|
+
for (const [flag, given] of Object.entries(raw.flags)) {
|
|
93
|
+
const e = meta.flags[flag];
|
|
94
|
+
if (!e)
|
|
95
|
+
throw new Error(`${flag} is not an option of pbrun ${tool}`);
|
|
96
|
+
if (e.class === 'engine' || e.class === 'unsupported')
|
|
97
|
+
throw new Error(`${flag}: ${e.reason}`);
|
|
98
|
+
if (e.class === 'in') {
|
|
99
|
+
const k = e.kind;
|
|
100
|
+
const list = Array.isArray(given) ? given : [given];
|
|
101
|
+
if (k === 'fq_pairs') {
|
|
102
|
+
if (list.length % 2 !== 0)
|
|
103
|
+
throw new Error(`${flag} takes the two mates of each pair: R1 biocid then R2 biocid (an odd number of values was given)`);
|
|
104
|
+
const pairs = [];
|
|
105
|
+
for (let i = 0; i < list.length; i += 2)
|
|
106
|
+
pairs.push([biocidOf(flag, list[i]), biocidOf(flag, list[i + 1])]);
|
|
107
|
+
inputs[flag] = pairs;
|
|
108
|
+
}
|
|
109
|
+
else if (k === 'fq_single') {
|
|
110
|
+
inputs[flag] = list.map((x) => biocidOf(flag, x));
|
|
111
|
+
}
|
|
112
|
+
else if (k === 'known_sites') {
|
|
113
|
+
inputs[flag] = list.map(String);
|
|
114
|
+
}
|
|
115
|
+
else if (k === 'intervals') {
|
|
116
|
+
inputs[flag] = list.map(String);
|
|
117
|
+
}
|
|
118
|
+
else if (['bam', 'recal', 'vcf', 'gvcf'].includes(k)) {
|
|
119
|
+
if (list.length !== 1)
|
|
120
|
+
throw new Error(`${flag} takes one value`);
|
|
121
|
+
inputs[flag] = biocidOf(flag, list[0]);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
if (list.length !== 1)
|
|
125
|
+
throw new Error(`${flag} takes one value`);
|
|
126
|
+
inputs[flag] = String(list[0]);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (e.class === 'out') {
|
|
130
|
+
if (given !== true)
|
|
131
|
+
throw new Error(`${flag} is a switch: output files are named by the job, not by you`);
|
|
132
|
+
outputs.push(flag);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
if (e.nargs === null)
|
|
136
|
+
passFlags[flag] = true;
|
|
137
|
+
else
|
|
138
|
+
passFlags[flag] = Array.isArray(given) ? given.map(String) : String(given);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const body = {
|
|
142
|
+
wallet: (0, neoantigen_pipeline_1.ownerOr)(raw.owner, wallet), signature, case_id: caseId, executor: 'worker', tool, out_name: outName, registry_sha256: sha, inputs,
|
|
143
|
+
};
|
|
144
|
+
if (raw.ref)
|
|
145
|
+
body.reference = raw.ref;
|
|
146
|
+
if (outputs.length)
|
|
147
|
+
body.outputs = outputs;
|
|
148
|
+
if (Object.keys(passFlags).length)
|
|
149
|
+
body.flags = passFlags;
|
|
150
|
+
if (raw.acknowledgeUntested)
|
|
151
|
+
body.acknowledge_untested = true;
|
|
152
|
+
if (raw.validateWithBwa || raw.validateAgainstBam) {
|
|
153
|
+
// the comparison of the fq2bam BAM with an independent bwa (and/or an earlier run), run inside the same governed job and sealed with it
|
|
154
|
+
if (tool !== 'fq2bam')
|
|
155
|
+
throw new Error('--validate-with-bwa and --validate-against-bam apply only to fq2bam');
|
|
156
|
+
const v = {};
|
|
157
|
+
if (raw.validateWithBwa)
|
|
158
|
+
v.bwa = true;
|
|
159
|
+
if (raw.validateAgainstBam)
|
|
160
|
+
v.against_bam = biocidOf('--validate-against-bam', raw.validateAgainstBam);
|
|
161
|
+
body.validation = v;
|
|
162
|
+
}
|
|
163
|
+
if (raw.maxReadLossFraction !== undefined && raw.maxReadLossFraction !== '') {
|
|
164
|
+
const x = Number(raw.maxReadLossFraction);
|
|
165
|
+
if (!isFinite(x) || x < 0 || x > 0.05)
|
|
166
|
+
throw new Error('--max-read-loss-fraction must be between 0 and 0.05');
|
|
167
|
+
body.max_read_loss_fraction = x;
|
|
168
|
+
}
|
|
169
|
+
if (meta.fastq) {
|
|
170
|
+
const lib = raw.library, plat = raw.platform;
|
|
171
|
+
if (meta.somatic_fastq) {
|
|
172
|
+
if (!raw.tumorSample || !raw.normalSample)
|
|
173
|
+
throw new Error('give --tumor-sample and --normal-sample (a tumor and a normal must not share a sample name)');
|
|
174
|
+
if (raw.tumorSample === raw.normalSample)
|
|
175
|
+
throw new Error('--tumor-sample and --normal-sample must differ');
|
|
176
|
+
body.read_groups = { tumor: rg(raw.tumorSample, lib, plat), normal: rg(raw.normalSample, lib, plat) };
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
if (!raw.sampleName)
|
|
180
|
+
throw new Error('--sample-name is required for FASTQ input: it becomes the SM of every read group, and a default would give a tumor and its normal the same name');
|
|
181
|
+
body.read_group = rg(raw.sampleName, lib, plat);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
else if (raw.sampleName || raw.tumorSample || raw.normalSample) {
|
|
185
|
+
throw new Error('--sample-name, --tumor-sample and --normal-sample apply only to tools that read FASTQ');
|
|
186
|
+
}
|
|
187
|
+
return body;
|
|
188
|
+
}
|
|
189
|
+
function rg(sample, library, platform) {
|
|
190
|
+
if (!NAME_RE.test(sample))
|
|
191
|
+
throw new Error('a sample name must be letters, digits, _ or - (at most 64)');
|
|
192
|
+
const out = { sample };
|
|
193
|
+
if (library)
|
|
194
|
+
out.library = library;
|
|
195
|
+
if (platform)
|
|
196
|
+
out.platform = platform;
|
|
197
|
+
return out;
|
|
198
|
+
}
|
|
199
|
+
function describeIn(flag, e) {
|
|
200
|
+
const base = e.desc || '';
|
|
201
|
+
switch (e.kind) {
|
|
202
|
+
case 'fq_pairs': return `${base} Give the biocids of each pair: R1 then R2 (repeat the option for more lanes)`;
|
|
203
|
+
case 'fq_single': return `${base} Biocids of single-end FASTQ files`;
|
|
204
|
+
case 'known_sites': return `${base} Catalog names like hg38:mills_1000g (or a reference object); repeatable`;
|
|
205
|
+
case 'intervals': return `${base} A biocid of a BED/interval file, or a reference object; repeatable`;
|
|
206
|
+
case 'bam':
|
|
207
|
+
case 'recal':
|
|
208
|
+
case 'vcf':
|
|
209
|
+
case 'gvcf': return `${base} A biocid of yours`;
|
|
210
|
+
case 'file': return `${base} A biocid of yours, or a reference object`;
|
|
211
|
+
case 'asset': return `${base} A reference object (catalog name or an approved reference path)`;
|
|
212
|
+
case 'refdir': return `${base} A reference library by name`;
|
|
213
|
+
default: return base;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function addToolOptions(cmd, tool, meta) {
|
|
217
|
+
const longs = new Set();
|
|
218
|
+
for (const [flag, e] of Object.entries(meta.flags)) {
|
|
219
|
+
if (EXTRA_FLAGS.includes(flag) && flag !== '--ref')
|
|
220
|
+
throw new Error(`pbrun ${tool} has the option ${flag}, which biofs uses for something else`);
|
|
221
|
+
if (e.class === 'in') {
|
|
222
|
+
if (e.kind === 'ref')
|
|
223
|
+
continue; // --ref is added once below
|
|
224
|
+
const variadic = VARIADIC.includes(e.kind);
|
|
225
|
+
cmd.addOption(new commander_1.Option(`${flag} ${variadic ? '<values...>' : '<value>'}`, describeIn(flag, e)));
|
|
226
|
+
longs.add(flag);
|
|
227
|
+
}
|
|
228
|
+
else if (e.class === 'out' && e.optional) {
|
|
229
|
+
cmd.addOption(new commander_1.Option(flag, `Also write this output (${e.biodata_type})${(e.needs || []).length ? `; needs ${(e.needs || []).join(', ')}` : ''}. ${e.desc}`));
|
|
230
|
+
longs.add(flag);
|
|
231
|
+
}
|
|
232
|
+
else if (e.class === 'pass') {
|
|
233
|
+
cmd.addOption(new commander_1.Option(e.nargs === null ? flag : `${flag} <value>`, e.desc));
|
|
234
|
+
longs.add(flag);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
const hasRef = Object.values(meta.flags).some((e) => e.class === 'in' && e.kind === 'ref');
|
|
238
|
+
if (hasRef)
|
|
239
|
+
cmd.addOption(new commander_1.Option('--ref <build>', `The reference genome: ${Object.keys(exports.registry.references).join(', ')}${meta.align ? ' (alignment needs hg38, the only build with a BWA index)' : ''}`));
|
|
240
|
+
cmd.option('--out-name <stem>', 'Stem of every output file name (default: <caseId>_<tool>)');
|
|
241
|
+
if (meta.fastq && meta.somatic_fastq) {
|
|
242
|
+
cmd.option('--tumor-sample <name>', 'Sample name (SM) of the tumor read groups');
|
|
243
|
+
cmd.option('--normal-sample <name>', 'Sample name (SM) of the normal read groups, different from the tumor');
|
|
244
|
+
}
|
|
245
|
+
else if (meta.fastq) {
|
|
246
|
+
cmd.option('--sample-name <name>', 'Sample name (SM) of the read groups (required: no default is ever used)');
|
|
247
|
+
}
|
|
248
|
+
if (meta.fastq) {
|
|
249
|
+
cmd.option('--library <name>', 'Library name (LB), default the sample name');
|
|
250
|
+
cmd.option('--platform <name>', 'ILLUMINA (default), ELEMENT, PACBIO or ONT');
|
|
251
|
+
}
|
|
252
|
+
if (meta.align || meta.fastq)
|
|
253
|
+
cmd.option('--max-read-loss-fraction <x>', 'Allow up to this share of FASTQ reads to be missing from the BAM (0 to 0.05; default 0: any loss fails the job)');
|
|
254
|
+
if (tool === 'fq2bam') {
|
|
255
|
+
cmd.option('--validate-with-bwa', 'Also run an independent CPU bwa mem 0.7.17 -K 10000000 on the same reads and compare every primary record; the comparison report is a sealed output (one read pair only)');
|
|
256
|
+
cmd.option('--validate-against-bam <biocid>', 'Also compare the BAM record by record with the BAM of an earlier job of yours (run-to-run determinism)');
|
|
257
|
+
}
|
|
258
|
+
cmd.option('--acknowledge-untested', 'Run a tool whose real run has not been validated yet; recorded in the run report');
|
|
259
|
+
cmd.option('--owner <biowallet>', 'Owner biowallet when an operator runs the job for a custodial biowallet (default: the signer)');
|
|
260
|
+
cmd.option('--check', 'Validate and print the job body without sending it');
|
|
261
|
+
cmd.option('--wait', 'Poll until the job finishes');
|
|
262
|
+
cmd.option('--json', 'Emit JSON');
|
|
263
|
+
}
|
|
264
|
+
/** Read what the user typed back out of a parsed command, by the flag spelling of NVIDIA's page (never by commander's attribute guess). */
|
|
265
|
+
function rawFromCommand(cmd, meta) {
|
|
266
|
+
const opts = cmd.opts();
|
|
267
|
+
const flags = {};
|
|
268
|
+
for (const o of cmd.options) {
|
|
269
|
+
if (!o.long || EXTRA_FLAGS.includes(o.long))
|
|
270
|
+
continue;
|
|
271
|
+
const key = o.attributeName();
|
|
272
|
+
if (cmd.getOptionValueSource(key) !== 'cli')
|
|
273
|
+
continue;
|
|
274
|
+
const v = opts[key];
|
|
275
|
+
if (!(o.long in meta.flags))
|
|
276
|
+
continue;
|
|
277
|
+
flags[o.long] = v;
|
|
278
|
+
}
|
|
279
|
+
return {
|
|
280
|
+
flags, ref: opts.ref, outName: opts.outName, sampleName: opts.sampleName, library: opts.library, platform: opts.platform, tumorSample: opts.tumorSample, normalSample: opts.normalSample,
|
|
281
|
+
acknowledgeUntested: opts.acknowledgeUntested, validateWithBwa: opts.validateWithBwa, validateAgainstBam: opts.validateAgainstBam, maxReadLossFraction: opts.maxReadLossFraction, owner: opts.owner, wait: opts.wait, json: opts.json, check: opts.check,
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
function registerParabricksCommands(program) {
|
|
285
|
+
const group = program
|
|
286
|
+
.command('pbrun')
|
|
287
|
+
.description('NVIDIA Parabricks (pbrun) tools as biofs verbs: inputs and outputs are biocids, jobs run on a GPU worker through biofs-node. See: biofs pbrun list');
|
|
288
|
+
group.command('list')
|
|
289
|
+
.description('Every pbrun tool, its family and whether its real run has been validated against an independent result')
|
|
290
|
+
.option('--json', 'Emit JSON')
|
|
291
|
+
.action((o) => {
|
|
292
|
+
const rows = Object.entries(exports.registry.tools).map(([t, m]) => ({ tool: t, family: m.family, validation: m.validation.status, reads_fastq: m.fastq, aligns: m.align }));
|
|
293
|
+
if (o.json) {
|
|
294
|
+
console.log(JSON.stringify({ registry_sha256: exports.REGISTRY_SHA256, docs_version: exports.registry.docs_version, image_version: exports.registry.image_version, tools: rows, already_a_verb: exports.registry.already_a_verb }, null, 2));
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
for (const r of rows)
|
|
298
|
+
console.log(`${chalk_1.default.cyan(r.tool.padEnd(30))} ${r.family.padEnd(10)} ${r.validation === 'passed' ? chalk_1.default.green('validated') : chalk_1.default.yellow('untested ')}`);
|
|
299
|
+
console.log(chalk_1.default.gray(`\nregistry ${exports.REGISTRY_SHA256.slice(0, 12)} from NVIDIA Parabricks docs ${exports.registry.docs_version} (image ${exports.registry.image_version}). mutectcaller: use biofs somatic-mutect.`));
|
|
300
|
+
});
|
|
301
|
+
group.command('status <job>')
|
|
302
|
+
.description('Show a pbrun job (only the signer who submitted it can read it)')
|
|
303
|
+
.option('--wait', 'Poll until done or failed')
|
|
304
|
+
.option('--json', 'Emit JSON')
|
|
305
|
+
.action(async (id, o) => { await (0, neoantigen_pipeline_1.neoantigenStatusCommand)('parabricks', id, o); });
|
|
306
|
+
group.command('logs <job>')
|
|
307
|
+
.description('The run log of a pbrun job (pbrun\'s own output), live with --follow')
|
|
308
|
+
.option('--follow', 'Stream until the job ends')
|
|
309
|
+
.option('--from <n>', 'Byte offset to start from (the next offset of the previous call)')
|
|
310
|
+
.option('--json', 'Emit JSON lines')
|
|
311
|
+
.action(async (id, o) => {
|
|
312
|
+
try {
|
|
313
|
+
await (0, job_view_1.jobLogCommand)(id, o);
|
|
314
|
+
}
|
|
315
|
+
catch (e) {
|
|
316
|
+
logger_1.Logger.error(`pbrun logs failed: ${e.message}`);
|
|
317
|
+
process.exit(1);
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
for (const [tool, meta] of Object.entries(exports.registry.tools)) {
|
|
321
|
+
const cmd = group.command(`${tool} <caseId>`)
|
|
322
|
+
.description(`pbrun ${tool} (${meta.family}${meta.validation.status === 'passed' ? ', validated' : ', untested: needs --acknowledge-untested'})`);
|
|
323
|
+
addToolOptions(cmd, tool, meta);
|
|
324
|
+
cmd.action(async (caseId) => {
|
|
325
|
+
try {
|
|
326
|
+
const raw = rawFromCommand(cmd, meta);
|
|
327
|
+
if (raw.check) {
|
|
328
|
+
console.log(JSON.stringify(buildParabricksBody(tool, caseId, raw, '0x' + '0'.repeat(40), '<signature>'), null, 2));
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
await (0, neoantigen_pipeline_1.parabricksSubmit)((w, s) => buildParabricksBody(tool, caseId, raw, w, s), raw);
|
|
332
|
+
}
|
|
333
|
+
catch (e) {
|
|
334
|
+
logger_1.Logger.error(`pbrun ${tool} failed: ${e.message}`);
|
|
335
|
+
process.exit(1);
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/parabricks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,kDA6EC;AAyBD,wCAqCC;AAGD,wCAeC;AAED,gEA4CC;AA5PD;;;;;;;;;;;;;GAaG;AACH,yCAA4C;AAC5C,kDAA0B;AAC1B,+CAAiC;AACjC,uCAAyB;AACzB,oEAA2C;AAC3C,gEAAuG;AACvG,mDAAgD;AAChD,0CAA4C;AAM/B,QAAA,QAAQ,GAAG,uBAAwC,CAAC;AACpD,QAAA,eAAe,GAAW,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAE7I,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,CAAC,CAAC;A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