gramene-search 1.2.20 → 1.2.23
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/2b1c1cd7b577d2ca.txt +2 -2
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/dist/index.js +66 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/filters.js +1 -1
- package/src/components/suggestions.js +59 -25
- package/src/index.html +1 -1
- package/.parcel-cache/fb5cd3a06aebd88f.txt +0 -2
- package/dist/android-chrome-192x192.1c3e8367.png +0 -0
- package/dist/apple-touch-icon-114x114.bfffc776.png +0 -0
- package/dist/apple-touch-icon-120x120.36d8566f.png +0 -0
- package/dist/apple-touch-icon-144x144.878f9d29.png +0 -0
- package/dist/apple-touch-icon-152x152.6d1217c5.png +0 -0
- package/dist/apple-touch-icon-180x180.0d30a358.png +0 -0
- package/dist/apple-touch-icon-57x57.c3d92f4e.png +0 -0
- package/dist/apple-touch-icon-60x60.0cfc5a34.png +0 -0
- package/dist/apple-touch-icon-72x72.9c44ac8c.png +0 -0
- package/dist/apple-touch-icon-76x76.5a933f46.png +0 -0
- package/dist/favicon-16x16.3e40b283.png +0 -0
- package/dist/favicon-32x32.6ebd8f52.png +0 -0
- package/dist/favicon-96x96.ef44eb0f.png +0 -0
- package/dist/genetree.d667cd90.png +0 -0
- package/dist/results.c14120ff.png +0 -0
- package/dist/sorghum.html +0 -956
- package/dist/suggestions.74bf4636.png +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
15713755
|
|
2
|
+
1648661123055415000
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -503,7 +503,7 @@ function $b8aee296158e1013$var$_interopRequireDefault(obj) {
|
|
|
503
503
|
"default": obj
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
var $b8aee296158e1013$var$MAX_IDLIST_LENGTH =
|
|
506
|
+
var $b8aee296158e1013$var$MAX_IDLIST_LENGTH = 20;
|
|
507
507
|
function $b8aee296158e1013$var$findNodeWithLeftIdx(node, idx) {
|
|
508
508
|
if (node.leftIdx === idx) return node;
|
|
509
509
|
var result = null;
|
|
@@ -1032,6 +1032,7 @@ var $b8aee296158e1013$var$grameneFilters = {
|
|
|
1032
1032
|
},
|
|
1033
1033
|
selectGrameneFiltersQueryString: function selectGrameneFiltersQueryString(state) {
|
|
1034
1034
|
var hasSpaces = new RegExp(/^[^\[\(].*\s/);
|
|
1035
|
+
var isQuery = new RegExp(/\([a-zA-Z0-9_]+:[a-zA-Z0-9_]+\s/);
|
|
1035
1036
|
function getQuery(node) {
|
|
1036
1037
|
var negate = node.negate ? 'NOT ' : '';
|
|
1037
1038
|
if (node.hasOwnProperty('children')) // do some recursion
|
|
@@ -1040,6 +1041,7 @@ var $b8aee296158e1013$var$grameneFilters = {
|
|
|
1040
1041
|
}).sort().join(" ".concat(node.operation, " ")), ")");
|
|
1041
1042
|
else {
|
|
1042
1043
|
// this node is a suggestion
|
|
1044
|
+
if (isQuery.test(node.fq_value)) return "".concat(negate).concat(node.fq_value);
|
|
1043
1045
|
if (hasSpaces.test(node.fq_value)) return "".concat(negate).concat(node.fq_field, ":\"").concat(node.fq_value, "\"");
|
|
1044
1046
|
else return "".concat(negate).concat(node.fq_field, ":").concat(node.fq_value);
|
|
1045
1047
|
}
|
|
@@ -1715,28 +1717,71 @@ function $8979ce19c4476d02$var$showMatches(text, x) {
|
|
|
1715
1717
|
}
|
|
1716
1718
|
var $8979ce19c4476d02$var$Suggestions = function Suggestions(props) {
|
|
1717
1719
|
var suggestions = props.grameneSuggestions;
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1720
|
+
if (suggestions && suggestions.grouped) {
|
|
1721
|
+
if (suggestions.grouped.category.matches === 0) {
|
|
1722
|
+
var sugg1 = {
|
|
1723
|
+
fq_field: 'text',
|
|
1724
|
+
fq_value: props.suggestionsQuery,
|
|
1725
|
+
name: "Genes containing \"".concat(props.suggestionsQuery, "\""),
|
|
1726
|
+
category: 'Gene'
|
|
1727
|
+
};
|
|
1728
|
+
var sugg2 = {
|
|
1729
|
+
fq_field: 'text',
|
|
1730
|
+
fq_value: "".concat(props.suggestionsQuery, "*"),
|
|
1731
|
+
name: "Genes matching \"".concat(props.suggestionsQuery, "*\""),
|
|
1732
|
+
category: 'Gene'
|
|
1733
|
+
};
|
|
1734
|
+
return(/*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement("div", {
|
|
1735
|
+
style: {
|
|
1736
|
+
margin: '10px',
|
|
1737
|
+
maxWidth: '820px'
|
|
1738
|
+
}
|
|
1739
|
+
}, /*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement($ByO3L$reactbootstrap.Alert, {
|
|
1740
|
+
variant: 'info'
|
|
1741
|
+
}, /*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement("em", null, "No suggestions found."), " You may still attempt a full text search, though it is unlikely to find any genes for you."), /*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement($ByO3L$reactbootstrap.Button, {
|
|
1742
|
+
id: 'word',
|
|
1743
|
+
size: 'sm',
|
|
1744
|
+
variant: 'outline-secondary',
|
|
1745
|
+
onClick: function onClick() {
|
|
1746
|
+
props.doAcceptSuggestion(sugg1);
|
|
1747
|
+
props.doAcceptGrameneSuggestion(sugg1);
|
|
1748
|
+
}
|
|
1749
|
+
}, "All genes that contain the word \"".concat(props.suggestionsQuery, "\"")), /*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement($ByO3L$reactbootstrap.Button, {
|
|
1750
|
+
id: 'word',
|
|
1751
|
+
size: 'sm',
|
|
1752
|
+
variant: 'outline-secondary',
|
|
1731
1753
|
onClick: function onClick() {
|
|
1732
|
-
props.doAcceptSuggestion(
|
|
1733
|
-
props.doAcceptGrameneSuggestion(
|
|
1754
|
+
props.doAcceptSuggestion(sugg2);
|
|
1755
|
+
props.doAcceptGrameneSuggestion(sugg2);
|
|
1734
1756
|
}
|
|
1735
|
-
},
|
|
1736
|
-
|
|
1737
|
-
|
|
1757
|
+
}, "All genes that contain a word that starts with \"".concat(props.suggestionsQuery, "\""))));
|
|
1758
|
+
} else return(/*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement("div", {
|
|
1759
|
+
style: {
|
|
1760
|
+
margin: '10px'
|
|
1761
|
+
}
|
|
1762
|
+
}, suggestions.grouped.category.groups.map(function(g, idx) {
|
|
1763
|
+
return(/*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement("div", {
|
|
1764
|
+
key: idx,
|
|
1765
|
+
id: "gramene-suggestion"
|
|
1766
|
+
}, /*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement("h4", {
|
|
1767
|
+
className: "mt10"
|
|
1768
|
+
}, g.groupValue), g.doclist.docs.map(function(sugg, jdx) {
|
|
1769
|
+
return(/*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement($ByO3L$reactbootstrap.Button, {
|
|
1770
|
+
id: "".concat(idx, "-").concat(jdx),
|
|
1771
|
+
key: jdx,
|
|
1772
|
+
disabled: sugg.num_genes === 0,
|
|
1773
|
+
size: "sm",
|
|
1774
|
+
variant: "outline-secondary",
|
|
1775
|
+
onClick: function onClick() {
|
|
1776
|
+
props.doAcceptSuggestion(sugg);
|
|
1777
|
+
props.doAcceptGrameneSuggestion(sugg);
|
|
1778
|
+
}
|
|
1779
|
+
}, $8979ce19c4476d02$var$showMatches(sugg.display_name, props.suggestionsQuery), ' ', /*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement($ByO3L$reactbootstrap.Badge, {
|
|
1780
|
+
variant: "secondary"
|
|
1781
|
+
}, sugg.num_genes)));
|
|
1782
|
+
})));
|
|
1738
1783
|
})));
|
|
1739
|
-
}))
|
|
1784
|
+
} else return(/*#__PURE__*/ $8979ce19c4476d02$var$_react["default"].createElement("div", null));
|
|
1740
1785
|
};
|
|
1741
1786
|
var $8979ce19c4476d02$var$_default = $ByO3L$reduxbundlerreact.connect('selectGrameneSuggestions', 'selectSuggestionsQuery', 'doAcceptSuggestion', 'doAcceptGrameneSuggestion', $8979ce19c4476d02$var$Suggestions);
|
|
1742
1787
|
module.exports["default"] = $8979ce19c4476d02$var$_default;
|
|
@@ -3503,7 +3548,7 @@ var $57871e966e0c4f66$var$Pathways = /*#__PURE__*/ function(_React$Component) {
|
|
|
3503
3548
|
proxyPrefix: $57871e966e0c4f66$var$reactomeURL,
|
|
3504
3549
|
//'//plantreactome.gramene.org', //'//plantreactomedev.oicr.on.ca', ////cord3084-pc7.science.oregonstate.edu', // reactomedev.oicr.on.ca
|
|
3505
3550
|
placeHolder: this.holderId,
|
|
3506
|
-
width: this.divWrapper.clientWidth - 350,
|
|
3551
|
+
width: this.divWrapper.clientWidth - 350 - 1,
|
|
3507
3552
|
height: 500
|
|
3508
3553
|
});
|
|
3509
3554
|
}
|