gramene-search 1.6.43 → 1.6.45
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 +55 -9
- 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 +21 -8
- 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
|
+
598216809
|
|
2
|
+
1762432192267659000
|
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)=>{
|
|
@@ -3550,13 +3555,30 @@ const $283508ffcf8a47c4$var$study_info = {
|
|
|
3550
3555
|
type: 'NAT'
|
|
3551
3556
|
}
|
|
3552
3557
|
},
|
|
3553
|
-
'oryza_aus':
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
'
|
|
3558
|
+
'oryza_aus': {
|
|
3559
|
+
'20': {
|
|
3560
|
+
label: '20K-RGP',
|
|
3561
|
+
type: 'NAT'
|
|
3562
|
+
}
|
|
3563
|
+
},
|
|
3564
|
+
'oryza_sativa117425': {
|
|
3565
|
+
'20': {
|
|
3566
|
+
label: '20K-RGP',
|
|
3567
|
+
type: 'NAT'
|
|
3568
|
+
}
|
|
3569
|
+
},
|
|
3570
|
+
'oryza_sativair64rs2': {
|
|
3571
|
+
'20': {
|
|
3572
|
+
label: '20K-RGP',
|
|
3573
|
+
type: 'NAT'
|
|
3574
|
+
}
|
|
3575
|
+
},
|
|
3576
|
+
'oryza_sativamh63': {
|
|
3577
|
+
'20': {
|
|
3578
|
+
label: '20K-RGP',
|
|
3579
|
+
type: 'NAT'
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3560
3582
|
};
|
|
3561
3583
|
const $283508ffcf8a47c4$var$AccessionLink = ({ germplasm: germplasm, gene_id: gene_id })=>{
|
|
3562
3584
|
const genebank = germplasm.stock_center;
|
|
@@ -3609,6 +3631,19 @@ const $283508ffcf8a47c4$var$AccessionLink = ({ germplasm: germplasm, gene_id: ge
|
|
|
3609
3631
|
children: germplasm.pub_id
|
|
3610
3632
|
});
|
|
3611
3633
|
};
|
|
3634
|
+
function $283508ffcf8a47c4$var$compareGermplasm(a, b) {
|
|
3635
|
+
const aSub = a?.germplasm?.subpop ?? '';
|
|
3636
|
+
const bSub = b?.germplasm?.subpop ?? '';
|
|
3637
|
+
const subCmp = aSub.localeCompare(bSub, 'en', {
|
|
3638
|
+
sensitivity: 'accent'
|
|
3639
|
+
});
|
|
3640
|
+
if (subCmp !== 0) return subCmp;
|
|
3641
|
+
const aPub = a?.germplasm?.pub_id ?? '';
|
|
3642
|
+
const bPub = b?.germplasm?.pub_id ?? '';
|
|
3643
|
+
return aPub.localeCompare(bPub, 'en', {
|
|
3644
|
+
sensitivity: 'accent'
|
|
3645
|
+
});
|
|
3646
|
+
}
|
|
3612
3647
|
function $283508ffcf8a47c4$var$group_germplasm(gene, germplasmLUT, vep_obj) {
|
|
3613
3648
|
let accessionTable = [];
|
|
3614
3649
|
Object.entries(vep_obj).forEach(([key, accessions])=>{
|
|
@@ -3649,7 +3684,7 @@ function $283508ffcf8a47c4$var$group_germplasm(gene, germplasmLUT, vep_obj) {
|
|
|
3649
3684
|
status: status,
|
|
3650
3685
|
tally: tally
|
|
3651
3686
|
});
|
|
3652
|
-
groups[group].forEach((acc)=>{
|
|
3687
|
+
groups[group].sort($283508ffcf8a47c4$var$compareGermplasm).forEach((acc)=>{
|
|
3653
3688
|
id++;
|
|
3654
3689
|
grouped.push({
|
|
3655
3690
|
id: id,
|
|
@@ -3767,6 +3802,17 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3767
3802
|
return null;
|
|
3768
3803
|
}
|
|
3769
3804
|
},
|
|
3805
|
+
{
|
|
3806
|
+
field: 'subpop',
|
|
3807
|
+
headerName: 'Subpopulation',
|
|
3808
|
+
filter: false,
|
|
3809
|
+
sortable: false,
|
|
3810
|
+
flex: 1,
|
|
3811
|
+
cellRenderer: (params)=>{
|
|
3812
|
+
if (params.data.accession && params.data.accession.germplasm.subpop && params.data.accession.germplasm.subpop !== "?") return params.data.accession.germplasm.subpop;
|
|
3813
|
+
return null;
|
|
3814
|
+
}
|
|
3815
|
+
},
|
|
3770
3816
|
{
|
|
3771
3817
|
field: 'search',
|
|
3772
3818
|
headerName: 'All LOF Genes',
|