gramene-search 1.6.30 → 1.6.32

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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 180977149
2
- 1750274546364043000
1
+ 242994512
2
+ 1752250063384523000
package/dist/index.js CHANGED
@@ -2303,7 +2303,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2303
2303
  let gene_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${gene.atlas_id || gene._id}&localAPI=${isLocal}`;
2304
2304
  let paralogs = [];
2305
2305
  if (props.grameneParalogs && props.grameneParalogs[gene._id]) paralogs = props.grameneParalogs[gene._id];
2306
- else if (gene.homology && gene.homology.supertree) props.doRequestParalogs(gene._id, gene.homology.supertree, gene.taxon_id);
2306
+ else if (gene.homology) props.doRequestParalogs(gene._id, gene.homology.supertree, gene.taxon_id);
2307
2307
  // if (gene.homology && gene.homology.homologous_genes && gene.homology.homologous_genes.within_species_paralog) {
2308
2308
  // paralogs = gene.homology.homologous_genes.within_species_paralog;
2309
2309
  // }
@@ -3512,10 +3512,13 @@ const $283508ffcf8a47c4$var$AccessionLink = ({ germplasm: germplasm, gene_id: ge
3512
3512
  })
3513
3513
  ]
3514
3514
  });
3515
- if (germplasm.pop_id === '15' && germplasm.stock_center === 'NOT FOUND') return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("a", {
3515
+ if (germplasm.pop_id === '15' && germplasm.stock_center === 'NOT FOUND') return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("a", {
3516
3516
  target: "_blank",
3517
3517
  href: $283508ffcf8a47c4$var$ggURL['maizeGDB'],
3518
- children: "SNPVersity 2.0"
3518
+ children: [
3519
+ germplasm.pub_id,
3520
+ " (SNPVersity)"
3521
+ ]
3519
3522
  });
3520
3523
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
3521
3524
  children: germplasm.pub_id
@@ -3578,7 +3581,7 @@ function $283508ffcf8a47c4$var$group_germplasm(gene, germplasmLUT, vep_obj) {
3578
3581
  return grouped;
3579
3582
  }
3580
3583
  const $283508ffcf8a47c4$var$THRESHOLD = 5;
3581
- const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id })=>{
3584
+ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id, doGrin: doGrin })=>{
3582
3585
  const [rowData, setRowData] = (0, $gXNCa$react.useState)(groups);
3583
3586
  const initialExpanded = {};
3584
3587
  rowData.forEach((row)=>{
@@ -3633,7 +3636,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3633
3636
  },
3634
3637
  {
3635
3638
  field: 'accession',
3636
- headerName: 'Order Germplasm',
3639
+ headerName: doGrin ? 'Order Germplasm' : 'Accession',
3637
3640
  flex: 1,
3638
3641
  headerComponent: (props)=>{
3639
3642
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
@@ -3642,10 +3645,10 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3642
3645
  alignItems: 'center'
3643
3646
  },
3644
3647
  children: [
3645
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("i", {
3646
- className: "fas fa-shopping-cart"
3648
+ doGrin && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("i", {
3649
+ className: "fas fa-shopping-cart",
3650
+ children: "\xa0"
3647
3651
  }),
3648
- "\xa0",
3649
3652
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
3650
3653
  children: props.displayName
3651
3654
  })
@@ -3754,7 +3757,8 @@ const $283508ffcf8a47c4$var$Detail = (props)=>{
3754
3757
  }),
3755
3758
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($283508ffcf8a47c4$var$GridWithGroups, {
3756
3759
  groups: groups,
3757
- gene_id: gene._id
3760
+ gene_id: gene._id,
3761
+ doGrin: !props.configuration.hasOwnProperty('noGRIN')
3758
3762
  })
3759
3763
  ]
3760
3764
  });