gramene-search 1.2.43 → 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.
- package/.parcel-cache/0eebcef07661bc3d +0 -0
- package/.parcel-cache/109421cc5334effc +0 -0
- package/.parcel-cache/2de2aad73a84c506.txt +2 -2
- package/.parcel-cache/475da2e0135128de +0 -0
- package/.parcel-cache/{7d5c38d7f620c528 → 576f7d1c36b6030e} +0 -0
- package/.parcel-cache/{67c53b36ad94e1ac → 88a6f19f4238c9d2} +0 -0
- package/.parcel-cache/{4571fc94d5a9c78d → 90782a5eb630f3a1} +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/dist/index.js +35 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/filters.js +9 -0
- package/src/components/results/GeneList.js +19 -3
- package/src/components/results/details/Homology.js +1 -23
- package/src/components/utils.js +22 -0
- package/src/demo.js +2 -2
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
274552998
|
|
2
|
+
1674495134815167000
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -933,6 +933,18 @@ $af4441dd29af05df$var$grameneFilters.reactGrameneFilters = (0, $gXNCa$reduxbundl
|
|
|
933
933
|
]
|
|
934
934
|
};
|
|
935
935
|
if (queryObject.hasOwnProperty("idList")) return $af4441dd29af05df$var$handleIdList(queryObject);
|
|
936
|
+
if (queryObject.hasOwnProperty("fq_field") && queryObject.hasOwnProperty("fq_value") && queryObject.hasOwnProperty("category") && queryObject.hasOwnProperty("name")) return {
|
|
937
|
+
type: "BATCH_ACTIONS",
|
|
938
|
+
actions: [
|
|
939
|
+
{
|
|
940
|
+
type: "GRAMENE_SEARCH_CLEARED"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
type: "GRAMENE_FILTER_ADDED",
|
|
944
|
+
payload: queryObject
|
|
945
|
+
}
|
|
946
|
+
]
|
|
947
|
+
};
|
|
936
948
|
const url = new URL(myUrl.href);
|
|
937
949
|
if (url.pathname === "/genes") return {
|
|
938
950
|
type: "GRAMENE_FILTERS_CLEARED"
|
|
@@ -1766,10 +1778,7 @@ const $5c2c79352d3d7b81$export$b2e089eb3692b073 = (props)=>/*#__PURE__*/ (0, $gX
|
|
|
1766
1778
|
});
|
|
1767
1779
|
|
|
1768
1780
|
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
function $64fad37f770d2bfe$var$suggestionToFilters(suggestion) {
|
|
1781
|
+
const $047461923b1badda$export$964d88edb00bbcaa = (suggestion)=>{
|
|
1773
1782
|
return {
|
|
1774
1783
|
status: "init",
|
|
1775
1784
|
rows: 20,
|
|
@@ -1790,7 +1799,12 @@ function $64fad37f770d2bfe$var$suggestionToFilters(suggestion) {
|
|
|
1790
1799
|
}
|
|
1791
1800
|
]
|
|
1792
1801
|
};
|
|
1793
|
-
}
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1794
1808
|
class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$react))).Component {
|
|
1795
1809
|
constructor(props){
|
|
1796
1810
|
super(props);
|
|
@@ -1815,7 +1829,7 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
|
|
|
1815
1829
|
});
|
|
1816
1830
|
}
|
|
1817
1831
|
filterAllHomologs() {
|
|
1818
|
-
this.props.doReplaceGrameneFilters($
|
|
1832
|
+
this.props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
|
|
1819
1833
|
category: "Gene Tree",
|
|
1820
1834
|
fq_field: "gene_tree",
|
|
1821
1835
|
fq_value: this.tree._id,
|
|
@@ -1823,7 +1837,7 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
|
|
|
1823
1837
|
}));
|
|
1824
1838
|
}
|
|
1825
1839
|
filterOrthologs() {
|
|
1826
|
-
this.props.doReplaceGrameneFilters($
|
|
1840
|
+
this.props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
|
|
1827
1841
|
category: "Gene Tree",
|
|
1828
1842
|
fq_field: "homology__all_orthologs",
|
|
1829
1843
|
fq_value: this.gene._id,
|
|
@@ -1831,7 +1845,7 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
|
|
|
1831
1845
|
}));
|
|
1832
1846
|
}
|
|
1833
1847
|
filterParalogs() {
|
|
1834
|
-
this.props.doReplaceGrameneFilters($
|
|
1848
|
+
this.props.doReplaceGrameneFilters((0, $047461923b1badda$export$964d88edb00bbcaa)({
|
|
1835
1849
|
category: "Gene Tree",
|
|
1836
1850
|
fq_field: "homology__within_species_paralog",
|
|
1837
1851
|
fq_value: this.gene._id,
|
|
@@ -2866,6 +2880,7 @@ var $830f925242a0b007$export$2e2bcd8739ae039 = $830f925242a0b007$var$Publication
|
|
|
2866
2880
|
|
|
2867
2881
|
|
|
2868
2882
|
|
|
2883
|
+
|
|
2869
2884
|
let $6c5c4f90059875bf$var$external = /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("small", {
|
|
2870
2885
|
title: "This link opens a page from an external site",
|
|
2871
2886
|
children: [
|
|
@@ -2911,19 +2926,28 @@ function $6c5c4f90059875bf$var$trimSummary(summary) {
|
|
|
2911
2926
|
children: summary
|
|
2912
2927
|
});
|
|
2913
2928
|
}
|
|
2914
|
-
const $6c5c4f90059875bf$var$
|
|
2915
|
-
let name, desc, species;
|
|
2929
|
+
const $6c5c4f90059875bf$var$ClosestOrthologCmp = (props)=>{
|
|
2930
|
+
let id, name, desc, species;
|
|
2931
|
+
const gene = props.gene;
|
|
2916
2932
|
if (gene.model_rep_id) {
|
|
2917
2933
|
name = gene.model_rep_name || gene.model_rep_id;
|
|
2918
2934
|
desc = gene.model_rep_description;
|
|
2919
2935
|
species = gene.model_rep_species_name;
|
|
2936
|
+
id = gene.model_rep_id;
|
|
2920
2937
|
} else if (gene.closest_rep_id) {
|
|
2921
2938
|
name = gene.closest_rep_name || gene.closest_rep_id;
|
|
2922
2939
|
desc = gene.closest_rep_description;
|
|
2923
2940
|
species = gene.closest_rep_species_name;
|
|
2941
|
+
id = gene.closest_rep_id;
|
|
2924
2942
|
}
|
|
2925
2943
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
|
|
2926
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
|
+
})),
|
|
2927
2951
|
children: [
|
|
2928
2952
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("h4", {
|
|
2929
2953
|
children: [
|
|
@@ -2946,6 +2970,7 @@ const $6c5c4f90059875bf$var$ClosestOrtholog = ({ gene: gene })=>{
|
|
|
2946
2970
|
]
|
|
2947
2971
|
});
|
|
2948
2972
|
};
|
|
2973
|
+
const $6c5c4f90059875bf$var$ClosestOrtholog = (0, $gXNCa$reduxbundlerreact.connect)("doReplaceGrameneFilters", $6c5c4f90059875bf$var$ClosestOrthologCmp);
|
|
2949
2974
|
function $6c5c4f90059875bf$var$renderClosestOrtholog(gene) {
|
|
2950
2975
|
if ($6c5c4f90059875bf$var$shouldShowClosestOrtholog(gene)) // we used to not add the closest ortholog to the DOM if the homology detail was visible.
|
|
2951
2976
|
// however, that could cause the height of the result to change. Instead we set visibility:hidden
|