gramene-search 1.6.43 → 1.6.44
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/.parcel-cache/83e7562660f7cc15-BundleGraph +0 -0
- package/.parcel-cache/9a0d07555444f4da-AssetGraph +0 -0
- package/.parcel-cache/d3a1b9507cb44047-AssetGraph +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/dc1da35000e13623-RequestGraph +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-dc1da35000e13623.txt +2 -2
- package/dist/index.js +31 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/api.js +8 -1
- package/src/components/results/details/VEP.js +17 -1
- package/src/demo.js +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
595764514
|
|
2
|
+
1762357265998353000
|
package/dist/index.js
CHANGED
|
@@ -263,7 +263,12 @@ const $9d9aeaf9299e61a1$var$grameneGermplasm = (0, $gXNCa$reduxbundler.createAsy
|
|
|
263
263
|
actionBaseType: 'GRAMENE_GERMPLASM',
|
|
264
264
|
persist: true,
|
|
265
265
|
getPromise: ({ store: store })=>{
|
|
266
|
-
return fetch(`${store.selectGrameneAPI()}/germplasm?rows=-1`).then((res)=>res.json()).then((res)=>
|
|
266
|
+
return fetch(`${store.selectGrameneAPI()}/germplasm?rows=-1`).then((res)=>res.json()).then((res)=>{
|
|
267
|
+
res.forEach((g)=>{
|
|
268
|
+
if (!g.subpop) g.subpop = "?";
|
|
269
|
+
});
|
|
270
|
+
return (0, ($parcel$interopDefault($gXNCa$lodash))).groupBy(res, 'ens_id');
|
|
271
|
+
});
|
|
267
272
|
}
|
|
268
273
|
});
|
|
269
274
|
$9d9aeaf9299e61a1$var$grameneGermplasm.reactGrameneGermplasm = (0, $gXNCa$reduxbundler.createSelector)('selectGrameneGermplasmShouldUpdate', (shouldUpdate)=>{
|
|
@@ -3609,6 +3614,19 @@ const $283508ffcf8a47c4$var$AccessionLink = ({ germplasm: germplasm, gene_id: ge
|
|
|
3609
3614
|
children: germplasm.pub_id
|
|
3610
3615
|
});
|
|
3611
3616
|
};
|
|
3617
|
+
function $283508ffcf8a47c4$var$compareGermplasm(a, b) {
|
|
3618
|
+
const aSub = a?.germplasm?.subpop ?? '';
|
|
3619
|
+
const bSub = b?.germplasm?.subpop ?? '';
|
|
3620
|
+
const subCmp = aSub.localeCompare(bSub, 'en', {
|
|
3621
|
+
sensitivity: 'accent'
|
|
3622
|
+
});
|
|
3623
|
+
if (subCmp !== 0) return subCmp;
|
|
3624
|
+
const aPub = a?.germplasm?.pub_id ?? '';
|
|
3625
|
+
const bPub = b?.germplasm?.pub_id ?? '';
|
|
3626
|
+
return aPub.localeCompare(bPub, 'en', {
|
|
3627
|
+
sensitivity: 'accent'
|
|
3628
|
+
});
|
|
3629
|
+
}
|
|
3612
3630
|
function $283508ffcf8a47c4$var$group_germplasm(gene, germplasmLUT, vep_obj) {
|
|
3613
3631
|
let accessionTable = [];
|
|
3614
3632
|
Object.entries(vep_obj).forEach(([key, accessions])=>{
|
|
@@ -3649,7 +3667,7 @@ function $283508ffcf8a47c4$var$group_germplasm(gene, germplasmLUT, vep_obj) {
|
|
|
3649
3667
|
status: status,
|
|
3650
3668
|
tally: tally
|
|
3651
3669
|
});
|
|
3652
|
-
groups[group].forEach((acc)=>{
|
|
3670
|
+
groups[group].sort($283508ffcf8a47c4$var$compareGermplasm).forEach((acc)=>{
|
|
3653
3671
|
id++;
|
|
3654
3672
|
grouped.push({
|
|
3655
3673
|
id: id,
|
|
@@ -3767,6 +3785,17 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3767
3785
|
return null;
|
|
3768
3786
|
}
|
|
3769
3787
|
},
|
|
3788
|
+
{
|
|
3789
|
+
field: 'subpop',
|
|
3790
|
+
headerName: 'Subpopulation',
|
|
3791
|
+
filter: false,
|
|
3792
|
+
sortable: false,
|
|
3793
|
+
flex: 1,
|
|
3794
|
+
cellRenderer: (params)=>{
|
|
3795
|
+
if (params.data.accession && params.data.accession.germplasm.subpop && params.data.accession.germplasm.subpop !== "?") return params.data.accession.germplasm.subpop;
|
|
3796
|
+
return null;
|
|
3797
|
+
}
|
|
3798
|
+
},
|
|
3770
3799
|
{
|
|
3771
3800
|
field: 'search',
|
|
3772
3801
|
headerName: 'All LOF Genes',
|