gramene-search 1.6.7 → 1.6.9
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/4987902b3f9787cc-BundleGraph-0 +0 -0
- package/.parcel-cache/70f1f7555dda250d-AssetGraph-0 +0 -0
- package/.parcel-cache/7b8e4611c0f03524-AssetGraph-0 +0 -0
- package/.parcel-cache/adb9e64d5da6fbba-AssetGraph-0 +0 -0
- package/.parcel-cache/d48c91545c145068-BundleGraph-0 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/requestGraph-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/requestGraph-524f09471ce7017b-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-524f09471ce7017b-0 +0 -0
- package/.parcel-cache/snapshot-369948a06d23ec44.txt +2 -2
- package/.parcel-cache/snapshot-524f09471ce7017b.txt +2 -0
- package/dist/index.js +17 -80
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/results/details/VEP.js +14 -60
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
156394149
|
|
2
|
+
1729101128735480000
|
package/dist/index.js
CHANGED
|
@@ -3287,87 +3287,12 @@ var $54c74a4689d5a778$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
|
|
|
3287
3287
|
|
|
3288
3288
|
|
|
3289
3289
|
|
|
3290
|
-
|
|
3291
3290
|
const $283508ffcf8a47c4$var$ggURL = {
|
|
3292
3291
|
IRRI: "https://gringlobal.irri.org/gringlobal/accessiondetail?id=",
|
|
3293
3292
|
ARS: "https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=",
|
|
3294
3293
|
ICRISAT: "https://genebank.icrisat.org/IND/PassportSummary?ID=",
|
|
3295
3294
|
sorbmutdb: "https://www.depts.ttu.edu/igcast/sorbmutdb.php"
|
|
3296
3295
|
};
|
|
3297
|
-
const $283508ffcf8a47c4$var$metaRenderer = (params)=>{
|
|
3298
|
-
if (params.value.field === "accessions") {
|
|
3299
|
-
const accs = params.value.accessions;
|
|
3300
|
-
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion), {
|
|
3301
|
-
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Accordion).Item, {
|
|
3302
|
-
children: [
|
|
3303
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Header, {
|
|
3304
|
-
children: accs.length
|
|
3305
|
-
}),
|
|
3306
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Body, {
|
|
3307
|
-
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("p", {
|
|
3308
|
-
children: 'This is where the "table" goes'
|
|
3309
|
-
})
|
|
3310
|
-
})
|
|
3311
|
-
]
|
|
3312
|
-
})
|
|
3313
|
-
});
|
|
3314
|
-
}
|
|
3315
|
-
if (params.value.field === "germplasm") {
|
|
3316
|
-
const genebank = params.value.stock_center;
|
|
3317
|
-
const url = $283508ffcf8a47c4$var$ggURL[genebank];
|
|
3318
|
-
if (params.value.germplasm_dbid && url && params.value.germplasm_dbid !== "0") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("a", {
|
|
3319
|
-
target: "_blank",
|
|
3320
|
-
href: `${url}${params.value.germplasm_dbid}`,
|
|
3321
|
-
children: [
|
|
3322
|
-
params.value.pub_id,
|
|
3323
|
-
" (",
|
|
3324
|
-
genebank,
|
|
3325
|
-
")"
|
|
3326
|
-
]
|
|
3327
|
-
});
|
|
3328
|
-
if (genebank === "sorbmutdb") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("form", {
|
|
3329
|
-
id: params.value.pub_id,
|
|
3330
|
-
action: url,
|
|
3331
|
-
method: "post",
|
|
3332
|
-
target: "_blank",
|
|
3333
|
-
children: [
|
|
3334
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
|
|
3335
|
-
type: "hidden",
|
|
3336
|
-
name: "search",
|
|
3337
|
-
value: params.value.gene_id.replace("SORBI_3", "Sobic.")
|
|
3338
|
-
}),
|
|
3339
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
|
|
3340
|
-
type: "hidden",
|
|
3341
|
-
name: "submit",
|
|
3342
|
-
value: "Search"
|
|
3343
|
-
}),
|
|
3344
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("button", {
|
|
3345
|
-
type: "submit",
|
|
3346
|
-
className: "button-like-link",
|
|
3347
|
-
children: "SorbMutDB"
|
|
3348
|
-
})
|
|
3349
|
-
]
|
|
3350
|
-
});
|
|
3351
|
-
}
|
|
3352
|
-
if (params.value.field === "search") {
|
|
3353
|
-
const currentURL = new URL(window.location.href);
|
|
3354
|
-
currentURL.search = "";
|
|
3355
|
-
currentURL.searchParams.set("category", "Germplasm");
|
|
3356
|
-
currentURL.searchParams.set("fq_field", `VEP__merged__${params.value.pop_type}__attr_ss`);
|
|
3357
|
-
currentURL.searchParams.set("fq_value", params.value.ens_id);
|
|
3358
|
-
currentURL.searchParams.set("name", params.value.ens_id);
|
|
3359
|
-
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Button), {
|
|
3360
|
-
size: "sm",
|
|
3361
|
-
href: currentURL.toString(),
|
|
3362
|
-
children: "Search"
|
|
3363
|
-
});
|
|
3364
|
-
}
|
|
3365
|
-
return params.value.label;
|
|
3366
|
-
};
|
|
3367
|
-
const $283508ffcf8a47c4$var$sortByLabel = (valueA, valueB, nodeA, nodeB, isDescending)=>{
|
|
3368
|
-
if (valueA.label === valueB.label) return 0;
|
|
3369
|
-
return valueA.label > valueB.label ? 1 : -1;
|
|
3370
|
-
};
|
|
3371
3296
|
const $283508ffcf8a47c4$var$rice_studies = {
|
|
3372
3297
|
"1": {
|
|
3373
3298
|
label: "Rice 3K",
|
|
@@ -3534,7 +3459,6 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3534
3459
|
if (row.summary) initialExpanded[row.group] = row.tally < $283508ffcf8a47c4$var$THRESHOLD;
|
|
3535
3460
|
});
|
|
3536
3461
|
const [expandedGroups, setExpandedGroups] = (0, $gXNCa$react.useState)(initialExpanded);
|
|
3537
|
-
// const gridRef = useRef();
|
|
3538
3462
|
// Toggle group visibility
|
|
3539
3463
|
const toggleGroup = (group)=>{
|
|
3540
3464
|
setExpandedGroups((prevExpandedGroups)=>({
|
|
@@ -3557,6 +3481,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3557
3481
|
{
|
|
3558
3482
|
field: "pop",
|
|
3559
3483
|
headerName: "Study",
|
|
3484
|
+
flex: 1,
|
|
3560
3485
|
cellRenderer: (params)=>{
|
|
3561
3486
|
if (params.data.summary || params.data.tally === 1) return params.value;
|
|
3562
3487
|
return null;
|
|
@@ -3565,6 +3490,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3565
3490
|
{
|
|
3566
3491
|
field: "conseq",
|
|
3567
3492
|
headerName: "VEP consequence",
|
|
3493
|
+
flex: 1,
|
|
3568
3494
|
cellRenderer: (params)=>{
|
|
3569
3495
|
if (params.data.summary || params.data.tally === 1) return params.value;
|
|
3570
3496
|
return null;
|
|
@@ -3573,6 +3499,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3573
3499
|
{
|
|
3574
3500
|
field: "status",
|
|
3575
3501
|
headerName: "Allele status",
|
|
3502
|
+
flex: 1,
|
|
3576
3503
|
cellRenderer: (params)=>{
|
|
3577
3504
|
if (params.data.summary || params.data.tally === 1) return params.value;
|
|
3578
3505
|
return null;
|
|
@@ -3581,6 +3508,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3581
3508
|
{
|
|
3582
3509
|
field: "accession",
|
|
3583
3510
|
headerName: "Order Germplasm",
|
|
3511
|
+
flex: 1,
|
|
3584
3512
|
cellRenderer: (params)=>{
|
|
3585
3513
|
if (params.value) return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($283508ffcf8a47c4$var$AccessionLink, {
|
|
3586
3514
|
germplasm: params.value.germplasm,
|
|
@@ -3597,9 +3525,20 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3597
3525
|
return null;
|
|
3598
3526
|
}
|
|
3599
3527
|
},
|
|
3528
|
+
{
|
|
3529
|
+
field: "synonym",
|
|
3530
|
+
headerName: "Synonym",
|
|
3531
|
+
flex: 1,
|
|
3532
|
+
cellRenderer: (params)=>{
|
|
3533
|
+
console.log(params.data);
|
|
3534
|
+
if (params.data.accession) return params.data.accession.germplasm.ens_id;
|
|
3535
|
+
return null;
|
|
3536
|
+
}
|
|
3537
|
+
},
|
|
3600
3538
|
{
|
|
3601
3539
|
field: "search",
|
|
3602
3540
|
headerName: "All LOF Genes",
|
|
3541
|
+
flex: 1,
|
|
3603
3542
|
cellRenderer: (params)=>{
|
|
3604
3543
|
if (params.data.accession) {
|
|
3605
3544
|
const currentURL = new URL(window.location.href);
|
|
@@ -3622,9 +3561,6 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3622
3561
|
const defaultColDef = {
|
|
3623
3562
|
sortable: false,
|
|
3624
3563
|
cellStyle: (params)=>{
|
|
3625
|
-
// if (!params.data.summary) {
|
|
3626
|
-
// return {paddingLeft: '30px'};
|
|
3627
|
-
// }
|
|
3628
3564
|
if (params.data.summary) return {
|
|
3629
3565
|
cursor: "pointer"
|
|
3630
3566
|
};
|
|
@@ -3637,7 +3573,8 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
3637
3573
|
className: "ag-theme-quartz",
|
|
3638
3574
|
style: {
|
|
3639
3575
|
height: tableHeight,
|
|
3640
|
-
width: "100%"
|
|
3576
|
+
width: "100%",
|
|
3577
|
+
maxWidth: "1200px"
|
|
3641
3578
|
},
|
|
3642
3579
|
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$aggridreact.AgGridReact), {
|
|
3643
3580
|
rowData: getVisibleRowData(),
|