gramene-search 1.2.44 → 1.2.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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 235178599
2
- 1673909977270584000
1
+ 274552998
2
+ 1674495134815167000
Binary file
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1778,10 +1778,7 @@ const $5c2c79352d3d7b81$export$b2e089eb3692b073 = (props)=>/*#__PURE__*/ (0, $gX
1778
1778
  });
1779
1779
 
1780
1780
 
1781
-
1782
-
1783
-
1784
- function $64fad37f770d2bfe$var$suggestionToFilters(suggestion) {
1781
+ const $047461923b1badda$export$964d88edb00bbcaa = (suggestion)=>{
1785
1782
  return {
1786
1783
  status: "init",
1787
1784
  rows: 20,
@@ -1802,7 +1799,12 @@ function $64fad37f770d2bfe$var$suggestionToFilters(suggestion) {
1802
1799
  }
1803
1800
  ]
1804
1801
  };
1805
- }
1802
+ };
1803
+
1804
+
1805
+
1806
+
1807
+
1806
1808
  class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$react))).Component {
1807
1809
  constructor(props){
1808
1810
  super(props);
@@ -1827,7 +1829,7 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
1827
1829
  });
1828
1830
  }
1829
1831
  filterAllHomologs() {
1830
- this.props.doReplaceGrameneFilters($64fad37f770d2bfe$var$suggestionToFilters({
1832
+ this.props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
1831
1833
  category: "Gene Tree",
1832
1834
  fq_field: "gene_tree",
1833
1835
  fq_value: this.tree._id,
@@ -1835,7 +1837,7 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
1835
1837
  }));
1836
1838
  }
1837
1839
  filterOrthologs() {
1838
- this.props.doReplaceGrameneFilters($64fad37f770d2bfe$var$suggestionToFilters({
1840
+ this.props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
1839
1841
  category: "Gene Tree",
1840
1842
  fq_field: "homology__all_orthologs",
1841
1843
  fq_value: this.gene._id,
@@ -1843,7 +1845,7 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
1843
1845
  }));
1844
1846
  }
1845
1847
  filterParalogs() {
1846
- this.props.doReplaceGrameneFilters($64fad37f770d2bfe$var$suggestionToFilters({
1848
+ this.props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
1847
1849
  category: "Gene Tree",
1848
1850
  fq_field: "homology__within_species_paralog",
1849
1851
  fq_value: this.gene._id,
@@ -2878,6 +2880,7 @@ var $830f925242a0b007$export$2e2bcd8739ae039 = $830f925242a0b007$var$Publication
2878
2880
 
2879
2881
 
2880
2882
 
2883
+
2881
2884
  let $6c5c4f90059875bf$var$external = /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("small", {
2882
2885
  title: "This link opens a page from an external site",
2883
2886
  children: [
@@ -2923,19 +2926,28 @@ function $6c5c4f90059875bf$var$trimSummary(summary) {
2923
2926
  children: summary
2924
2927
  });
2925
2928
  }
2926
- const $6c5c4f90059875bf$var$ClosestOrtholog = ({ gene: gene })=>{
2927
- let name, desc, species;
2929
+ const $6c5c4f90059875bf$var$ClosestOrthologCmp = (props)=>{
2930
+ let id, name, desc, species;
2931
+ const gene = props.gene;
2928
2932
  if (gene.model_rep_id) {
2929
2933
  name = gene.model_rep_name || gene.model_rep_id;
2930
2934
  desc = gene.model_rep_description;
2931
2935
  species = gene.model_rep_species_name;
2936
+ id = gene.model_rep_id;
2932
2937
  } else if (gene.closest_rep_id) {
2933
2938
  name = gene.closest_rep_name || gene.closest_rep_id;
2934
2939
  desc = gene.closest_rep_description;
2935
2940
  species = gene.closest_rep_species_name;
2941
+ id = gene.closest_rep_id;
2936
2942
  }
2937
2943
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
2938
2944
  className: "closest-ortholog",
2945
+ onClick: props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
2946
+ category: "Gene",
2947
+ fq_field: "id",
2948
+ fq_value: id,
2949
+ name: name
2950
+ })),
2939
2951
  children: [
2940
2952
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("h4", {
2941
2953
  children: [
@@ -2958,6 +2970,7 @@ const $6c5c4f90059875bf$var$ClosestOrtholog = ({ gene: gene })=>{
2958
2970
  ]
2959
2971
  });
2960
2972
  };
2973
+ const $6c5c4f90059875bf$var$ClosestOrtholog = (0, $gXNCa$reduxbundlerreact.connect)("doReplaceGrameneFilters", $6c5c4f90059875bf$var$ClosestOrthologCmp);
2961
2974
  function $6c5c4f90059875bf$var$renderClosestOrtholog(gene) {
2962
2975
  if ($6c5c4f90059875bf$var$shouldShowClosestOrtholog(gene)) // we used to not add the closest ortholog to the DOM if the homology detail was visible.
2963
2976
  // however, that could cause the height of the result to change. Instead we set visibility:hidden