@abi-software/flatmapvuer 1.10.3-beta.0 → 1.10.3-beta.1
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/flatmapvuer.js +443 -427
- package/dist/flatmapvuer.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/FlatmapVuer.vue +30 -1
package/package.json
CHANGED
|
@@ -2986,6 +2986,23 @@ export default {
|
|
|
2986
2986
|
}
|
|
2987
2987
|
const connectionFilters = [];
|
|
2988
2988
|
const flatmapKnowledge = _flatmapKnowledge || this.getFlatmapKnowledge();
|
|
2989
|
+
const mapKnowledge = this.mapImp.pathways.paths;
|
|
2990
|
+
flatmapKnowledge.forEach((knowledge) => {
|
|
2991
|
+
const id = knowledge.id;
|
|
2992
|
+
if (id) {
|
|
2993
|
+
const matchObj = mapKnowledge[id];
|
|
2994
|
+
if (matchObj) {
|
|
2995
|
+
const mapConnectivity = matchObj.connectivity;
|
|
2996
|
+
const mapNodePhenotypes = matchObj['node-phenotypes'];
|
|
2997
|
+
knowledge.connectivity = [...knowledge.connectivity, ...mapConnectivity];
|
|
2998
|
+
for (let key in knowledge['node-phenotypes']) {
|
|
2999
|
+
if (mapNodePhenotypes[key]) {
|
|
3000
|
+
knowledge['node-phenotypes'][key].push(...mapNodePhenotypes[key]);
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
})
|
|
2989
3006
|
const originItems = await extractOriginItems(this.flatmapAPI, flatmapKnowledge);
|
|
2990
3007
|
const viaItems = await extractViaItems(this.flatmapAPI, flatmapKnowledge);
|
|
2991
3008
|
const destinationItems = await extractDestinationItems(this.flatmapAPI, flatmapKnowledge);
|
|
@@ -2994,7 +3011,7 @@ export default {
|
|
|
2994
3011
|
const key = JSON.stringify(item.key);
|
|
2995
3012
|
return {
|
|
2996
3013
|
key: `flatmap.connectivity.source.${facet}.${key}`,
|
|
2997
|
-
label: item.label
|
|
3014
|
+
label: item.label || key
|
|
2998
3015
|
};
|
|
2999
3016
|
}
|
|
3000
3017
|
|
|
@@ -3008,6 +3025,18 @@ export default {
|
|
|
3008
3025
|
childrenList = destinationItems.map((item) => transformItem(facet, item));
|
|
3009
3026
|
}
|
|
3010
3027
|
|
|
3028
|
+
// Those without label but key should be below
|
|
3029
|
+
childrenList = childrenList.sort((a, b) => {
|
|
3030
|
+
const isAlpha = (str) => /^[a-zA-Z]/.test(str);
|
|
3031
|
+
const aAlpha = isAlpha(a.label);
|
|
3032
|
+
const bAlpha = isAlpha(b.label);
|
|
3033
|
+
|
|
3034
|
+
if (aAlpha && !bAlpha) return -1;
|
|
3035
|
+
if (!aAlpha && bAlpha) return 1;
|
|
3036
|
+
|
|
3037
|
+
return a.label.localeCompare(b.label);
|
|
3038
|
+
});
|
|
3039
|
+
|
|
3011
3040
|
connectionFilters.push({
|
|
3012
3041
|
key: `flatmap.connectivity.source.${facet}`,
|
|
3013
3042
|
label: facet,
|