gramene-search 1.2.19 → 1.2.20
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
12742866
|
|
2
|
+
1648565139043351000
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/bundles/filters.js
CHANGED
|
@@ -380,6 +380,7 @@ const grameneFilters = {
|
|
|
380
380
|
selectGrameneFiltersStatus: state => state.grameneFilters.status,
|
|
381
381
|
selectGrameneFiltersQueryString: state => {
|
|
382
382
|
const hasSpaces = new RegExp(/^[^\[\(].*\s/);
|
|
383
|
+
const isQuery = new RegExp(/\([a-zA-Z0-9_]+:[a-zA-Z0-9_]+\s/);
|
|
383
384
|
function getQuery(node) {
|
|
384
385
|
const negate = node.negate ? 'NOT ' : '';
|
|
385
386
|
if (node.hasOwnProperty('children')) {
|
|
@@ -388,6 +389,8 @@ const grameneFilters = {
|
|
|
388
389
|
}
|
|
389
390
|
else {
|
|
390
391
|
// this node is a suggestion
|
|
392
|
+
if (isQuery.test(node.fq_value))
|
|
393
|
+
return `${negate}${node.fq_value}`;
|
|
391
394
|
if (hasSpaces.test(node.fq_value))
|
|
392
395
|
return `${negate}${node.fq_field}:"${node.fq_value}"`;
|
|
393
396
|
else
|
|
@@ -23,7 +23,7 @@ class Pathways extends React.Component {
|
|
|
23
23
|
this.diagram = Reactome.Diagram.create({
|
|
24
24
|
proxyPrefix: reactomeURL, //'//plantreactome.gramene.org', //'//plantreactomedev.oicr.on.ca', ////cord3084-pc7.science.oregonstate.edu', // reactomedev.oicr.on.ca
|
|
25
25
|
placeHolder: this.holderId,
|
|
26
|
-
width: this.divWrapper.clientWidth - 350,
|
|
26
|
+
width: this.divWrapper.clientWidth - 350 - 1,
|
|
27
27
|
height: 500
|
|
28
28
|
});
|
|
29
29
|
}
|