@platforma-open/milaboratories.top-antibodies 3.2.7 → 4.0.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/block-pack/description.md +1 -1
- package/block-pack/main.plj.gz +0 -0
- package/block-pack/manifest.json +1 -1
- package/block-pack/model.json +1 -1
- package/block-pack/published.json +1 -1
- package/block-pack/ui.tgz +0 -0
- package/dist/AGENTS.d.ts +1 -1
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -35
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -10726,7 +10726,7 @@ function matchToColumnId(match, anchorRef) {
|
|
|
10726
10726
|
column: match.column.id
|
|
10727
10727
|
};
|
|
10728
10728
|
}
|
|
10729
|
-
const
|
|
10729
|
+
const REPERTOIRE_SCORE_COLUMN_NAME = "pl7.app/vdj/repertoireScore";
|
|
10730
10730
|
const IN_VIVO_MUTATION_COLUMNS = /* @__PURE__ */ new Set([
|
|
10731
10731
|
"pl7.app/vdj/sequence/fractionCDRMutations",
|
|
10732
10732
|
"pl7.app/vdj/sequence/nMutations",
|
|
@@ -10736,13 +10736,12 @@ const IN_VIVO_MUTATION_COLUMNS = /* @__PURE__ */ new Set([
|
|
|
10736
10736
|
const IN_VIVO_FILTER_SPEC_NAMES = /* @__PURE__ */ new Set([
|
|
10737
10737
|
"pl7.app/vdj/isProductive",
|
|
10738
10738
|
"pl7.app/developabilityRisk",
|
|
10739
|
-
"pl7.app/vdj/developabilityRisk"
|
|
10740
|
-
"pl7.app/vdj/convergence/fastStar"
|
|
10739
|
+
"pl7.app/vdj/developabilityRisk"
|
|
10741
10740
|
]);
|
|
10742
10741
|
const IN_VIVO_RANKING_SPEC_NAMES = /* @__PURE__ */ new Set([
|
|
10742
|
+
"pl7.app/vdj/repertoireScore",
|
|
10743
10743
|
"pl7.app/developabilityScore",
|
|
10744
|
-
"pl7.app/vdj/developabilityScore"
|
|
10745
|
-
"pl7.app/vdj/convergence/nbFreq"
|
|
10744
|
+
"pl7.app/vdj/developabilityScore"
|
|
10746
10745
|
]);
|
|
10747
10746
|
const IN_VITRO_FILTER_SPEC_NAMES = /* @__PURE__ */ new Set([
|
|
10748
10747
|
"pl7.app/vdj/isProductive",
|
|
@@ -10839,23 +10838,20 @@ function computeDefaultFilters(scores, anchorRef) {
|
|
|
10839
10838
|
}
|
|
10840
10839
|
function computePresets(scores, defaultFilters, anchorRef, anchorSpec) {
|
|
10841
10840
|
const isPeptide = anchorSpec.axesSpec[1]?.name === "pl7.app/variantKey";
|
|
10842
|
-
const
|
|
10841
|
+
const repertoireScore = scores.find((s) => s.column.spec.name === REPERTOIRE_SCORE_COLUMN_NAME);
|
|
10842
|
+
const hasRepertoireScore = repertoireScore !== void 0;
|
|
10843
10843
|
const isEnrichmentColumn = (name) => name.startsWith("pl7.app/enrichment") || name.startsWith("pl7.app/vdj/enrichment");
|
|
10844
10844
|
const hasEnrichmentScores = scores.some((s) => isEnrichmentColumn(s.column.spec.name));
|
|
10845
|
-
const detectedPreset = isPeptide ? "peptide" :
|
|
10846
|
-
const defaultRankingOrder = scores.filter((s) => s.column.spec.valueType !== "String").filter((s) => !
|
|
10845
|
+
const detectedPreset = isPeptide ? "peptide" : hasRepertoireScore ? "in-vivo" : hasEnrichmentScores ? "in-vitro" : void 0;
|
|
10846
|
+
const defaultRankingOrder = scores.filter((s) => s.column.spec.valueType !== "String").filter((s) => !hasRepertoireScore || s.column.spec.name !== "pl7.app/vdj/repertoireScore").filter((s) => !hasRepertoireScore || !IN_VIVO_MUTATION_COLUMNS.has(s.column.spec.name)).map((s) => ({
|
|
10847
10847
|
id: `default-rank-${s.column.id}`,
|
|
10848
10848
|
value: matchToColumnId(s, anchorRef),
|
|
10849
10849
|
rankingOrder: s.column.spec.annotations?.["pl7.app/score/rankingOrder"] ?? "decreasing",
|
|
10850
10850
|
isExpanded: false
|
|
10851
10851
|
}));
|
|
10852
|
-
if (
|
|
10853
|
-
value:
|
|
10854
|
-
|
|
10855
|
-
anchorName: "main",
|
|
10856
|
-
column: IN_VIVO_SCORE_COLUMN_ID
|
|
10857
|
-
},
|
|
10858
|
-
rankingOrder: "decreasing"
|
|
10852
|
+
if (repertoireScore) defaultRankingOrder.unshift({
|
|
10853
|
+
value: matchToColumnId(repertoireScore, anchorRef),
|
|
10854
|
+
rankingOrder: repertoireScore.column.spec.annotations?.["pl7.app/score/rankingOrder"] ?? "decreasing"
|
|
10859
10855
|
});
|
|
10860
10856
|
const specNameByColumnId = new Map(scores.map((s) => [matchToColumnId(s, anchorRef).column, s.column.spec.name]));
|
|
10861
10857
|
const inVitroFilters = defaultFilters.filter((f) => {
|
|
@@ -10893,13 +10889,12 @@ function computePresets(scores, defaultFilters, anchorRef, anchorSpec) {
|
|
|
10893
10889
|
});
|
|
10894
10890
|
return {
|
|
10895
10891
|
defaultRankingOrder,
|
|
10896
|
-
|
|
10892
|
+
hasRepertoireScore,
|
|
10897
10893
|
hasEnrichmentScores,
|
|
10898
10894
|
detectedPreset,
|
|
10899
10895
|
inVivoDefaults: {
|
|
10900
10896
|
rankingOrder: defaultRankingOrder.filter((r) => {
|
|
10901
10897
|
const col = r.value?.column;
|
|
10902
|
-
if (col === "pl7.app/vdj/inVivoScore") return true;
|
|
10903
10898
|
if (col === void 0) return false;
|
|
10904
10899
|
const specName = specNameByColumnId.get(col);
|
|
10905
10900
|
return specName !== void 0 && IN_VIVO_RANKING_SPEC_NAMES.has(specName);
|
|
@@ -11111,23 +11106,14 @@ const platforma$1 = BlockModelV3.create(blockDataModel).args((data) => {
|
|
|
11111
11106
|
const inputAnchor = getInputAnchorRef(ctx.data);
|
|
11112
11107
|
const result = buildCollection(ctx, inputAnchor);
|
|
11113
11108
|
if (!result) return void 0;
|
|
11114
|
-
const options = deriveLabels(result.collection.findColumns({
|
|
11115
|
-
mode: "enrichment",
|
|
11116
|
-
exclude: commonExcludeSelectors
|
|
11117
|
-
}).filter((m) => isSelectableMatch(m, result.sampleAxisName) && m.column.spec.valueType !== "String"), (m) => m.column.spec, { includeNativeLabel: true }).map(({ value, label }) => ({
|
|
11118
|
-
label,
|
|
11119
|
-
value: matchToColumnId(value, inputAnchor)
|
|
11120
|
-
}));
|
|
11121
|
-
if (result.meta.hasInVivoScore) options.unshift({
|
|
11122
|
-
label: "In Vivo Score",
|
|
11123
|
-
value: {
|
|
11124
|
-
anchorRef: inputAnchor,
|
|
11125
|
-
anchorName: "main",
|
|
11126
|
-
column: IN_VIVO_SCORE_COLUMN_ID
|
|
11127
|
-
}
|
|
11128
|
-
});
|
|
11129
11109
|
return {
|
|
11130
|
-
options
|
|
11110
|
+
options: deriveLabels(result.collection.findColumns({
|
|
11111
|
+
mode: "enrichment",
|
|
11112
|
+
exclude: commonExcludeSelectors
|
|
11113
|
+
}).filter((m) => isSelectableMatch(m, result.sampleAxisName) && m.column.spec.valueType !== "String"), (m) => m.column.spec, { includeNativeLabel: true }).map(({ value, label }) => ({
|
|
11114
|
+
label,
|
|
11115
|
+
value: matchToColumnId(value, inputAnchor)
|
|
11116
|
+
})),
|
|
11131
11117
|
defaults: result.meta.defaultRankingOrder,
|
|
11132
11118
|
inVivoDefaults: result.meta.inVivoDefaults.rankingOrder,
|
|
11133
11119
|
inVitroDefaults: result.meta.inVitroDefaults.rankingOrder,
|
|
@@ -11138,7 +11124,7 @@ const platforma$1 = BlockModelV3.create(blockDataModel).args((data) => {
|
|
|
11138
11124
|
if (!result) return void 0;
|
|
11139
11125
|
return {
|
|
11140
11126
|
detectedPreset: result.meta.detectedPreset,
|
|
11141
|
-
|
|
11127
|
+
hasRepertoireScore: result.meta.hasRepertoireScore,
|
|
11142
11128
|
hasEnrichmentScores: result.meta.hasEnrichmentScores
|
|
11143
11129
|
};
|
|
11144
11130
|
}, { retentive: true }).outputWithStatus("pf", (ctx) => {
|
|
@@ -11275,7 +11261,7 @@ const platforma$1 = BlockModelV3.create(blockDataModel).args((data) => {
|
|
|
11275
11261
|
],
|
|
11276
11262
|
visibility: [
|
|
11277
11263
|
{
|
|
11278
|
-
match: (spec) => spec.name === "pl7.app/ranking-order" ||
|
|
11264
|
+
match: (spec) => spec.name === "pl7.app/ranking-order" || isFilterOrRank(spec) || spec.name === Annotation.Label && spec.axesSpec.length === 1 && (spec.axesSpec[0].name === "pl7.app/vdj/clonotypeKey" || spec.axesSpec[0].name === "pl7.app/vdj/scClonotypeKey" || spec.axesSpec[0].name === "pl7.app/variantKey") || spec.annotations?.["pl7.app/vdj/isAssemblingFeature"] === "true" && spec.annotations?.["pl7.app/vdj/isMainSequence"] === "true" && spec.domain?.["pl7.app/alphabet"] === "aminoacid" || spec.annotations?.["pl7.app/isAssemblingFeature"] === "true" && spec.annotations?.["pl7.app/isMainSequence"] === "true" && spec.domain?.["pl7.app/alphabet"] === "aminoacid" || kabatEnabled && spec.name.startsWith("pl7.app/vdj/kabatSequence"),
|
|
11279
11265
|
visibility: "default"
|
|
11280
11266
|
},
|
|
11281
11267
|
{
|