gramene-search 1.6.47 → 1.7.0
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/83e7562660f7cc15-BundleGraph +0 -0
- package/.parcel-cache/d3a1b9507cb44047-AssetGraph +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/dc1da35000e13623-RequestGraph +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-dc1da35000e13623.txt +2 -2
- package/dist/index.js +40 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/results/TaxDist.js +30 -6
- package/src/components/results/details/Expression.js +4 -1
- package/src/demo.js +2 -2
- package/src/index.html +2 -2
- package/src/sorghum.html +1 -1
|
Binary file
|
|
Binary file
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
833859905
|
|
2
|
+
1767984531885935000
|
package/dist/index.js
CHANGED
|
@@ -2431,6 +2431,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2431
2431
|
const gene = props.geneDocs[props.searchResult.id];
|
|
2432
2432
|
const [atlasExperiment, setAtlasExperiment] = (0, $gXNCa$react.useState)(null);
|
|
2433
2433
|
const [atlasExperimentList, setAtlasExperimentList] = (0, $gXNCa$react.useState)([]);
|
|
2434
|
+
const [atlasFacets, setAtlasFacets] = (0, $gXNCa$react.useState)(null);
|
|
2434
2435
|
const [isLocal, setIsLocal] = (0, $gXNCa$react.useState)(false);
|
|
2435
2436
|
const [activeTab, setActiveTab] = (0, $gXNCa$react.useState)('gene');
|
|
2436
2437
|
const handleLocalAPIChange = (event)=>{
|
|
@@ -2439,6 +2440,10 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2439
2440
|
(0, $gXNCa$react.useEffect)(()=>{
|
|
2440
2441
|
const tid = Math.floor(gene.taxon_id / 1000);
|
|
2441
2442
|
if (props.expressionStudies[tid]) {
|
|
2443
|
+
let facets = {
|
|
2444
|
+
Differential: {},
|
|
2445
|
+
Baseline: {}
|
|
2446
|
+
};
|
|
2442
2447
|
let eList = props.expressionStudies[tid].sort((a, b)=>{
|
|
2443
2448
|
const a_name = `${a.type}:${a.description || a._id}`;
|
|
2444
2449
|
const b_name = `${b.type}:${b.description || b._id}`;
|
|
@@ -2448,7 +2453,11 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2448
2453
|
const in_gxa = new Set(props.searchResult.expressed_in_gxa_attr_ss);
|
|
2449
2454
|
eList = eList.filter((e)=>in_gxa.has(e._id));
|
|
2450
2455
|
}
|
|
2456
|
+
eList.forEach((e)=>{
|
|
2457
|
+
e.factors.forEach((factor)=>facets[e.type][factor] = 1);
|
|
2458
|
+
});
|
|
2451
2459
|
setAtlasExperimentList(eList);
|
|
2460
|
+
setAtlasFacets(facets);
|
|
2452
2461
|
let refExp = eList.filter((e)=>e.isRef);
|
|
2453
2462
|
if (refExp.length === 1) setAtlasExperiment(refExp[0]._id);
|
|
2454
2463
|
else // no reference experiment - choose first
|
|
@@ -5318,7 +5327,8 @@ class $a67cad486021eb32$var$TaxDist extends (0, ($parcel$interopDefault($gXNCa$r
|
|
|
5318
5327
|
constructor(props){
|
|
5319
5328
|
super(props);
|
|
5320
5329
|
this.state = {
|
|
5321
|
-
collapseEmpties: true
|
|
5330
|
+
collapseEmpties: true,
|
|
5331
|
+
comparaOnly: true
|
|
5322
5332
|
};
|
|
5323
5333
|
}
|
|
5324
5334
|
handleSelection(selections) {
|
|
@@ -5341,22 +5351,44 @@ class $a67cad486021eb32$var$TaxDist extends (0, ($parcel$interopDefault($gXNCa$r
|
|
|
5341
5351
|
collapseEmpties: !this.state.collapseEmpties
|
|
5342
5352
|
});
|
|
5343
5353
|
}
|
|
5354
|
+
toggleCompara() {
|
|
5355
|
+
this.setState({
|
|
5356
|
+
comparaOnly: !this.state.comparaOnly
|
|
5357
|
+
});
|
|
5358
|
+
}
|
|
5344
5359
|
render() {
|
|
5345
5360
|
let selectedTaxa = {};
|
|
5346
5361
|
if (this.props.grameneSearch && this.state.collapseEmpties) this.props.grameneSearch.facet_counts.facet_fields.taxon_id.filter((tid, idx)=>idx % 2 === 0).forEach((tid)=>{
|
|
5347
5362
|
selectedTaxa[tid] = true;
|
|
5348
5363
|
});
|
|
5364
|
+
else if (Object.keys(this.props.grameneGenomes.active).length === 0 && this.props.grameneMaps) Object.keys(this.props.grameneMaps).forEach((tid)=>selectedTaxa[tid] = true);
|
|
5349
5365
|
else selectedTaxa = this.props.grameneGenomes.active;
|
|
5366
|
+
if (this.state.comparaOnly && this.props.grameneMaps) Object.keys(selectedTaxa).forEach((tid)=>{
|
|
5367
|
+
if (!this.props.grameneMaps[tid].in_compara) delete selectedTaxa[tid];
|
|
5368
|
+
});
|
|
5350
5369
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
|
|
5351
5370
|
className: "results-vis big-vis",
|
|
5352
5371
|
children: [
|
|
5353
|
-
this.props.grameneTaxDist && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("
|
|
5354
|
-
type: "button",
|
|
5355
|
-
className: "btn btn-primary btn-sm",
|
|
5356
|
-
onClick: this.toggleEmpties.bind(this),
|
|
5372
|
+
this.props.grameneTaxDist && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("span", {
|
|
5357
5373
|
children: [
|
|
5358
|
-
|
|
5359
|
-
|
|
5374
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("button", {
|
|
5375
|
+
type: "button",
|
|
5376
|
+
className: "btn btn-outline-primary btn-sm",
|
|
5377
|
+
onClick: this.toggleEmpties.bind(this),
|
|
5378
|
+
children: [
|
|
5379
|
+
this.state.collapseEmpties ? 'Expand' : 'Collapse',
|
|
5380
|
+
" empty branches"
|
|
5381
|
+
]
|
|
5382
|
+
}),
|
|
5383
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("button", {
|
|
5384
|
+
type: "button",
|
|
5385
|
+
className: "btn btn-outline-success btn-sm",
|
|
5386
|
+
onClick: this.toggleCompara.bind(this),
|
|
5387
|
+
children: [
|
|
5388
|
+
"Show ",
|
|
5389
|
+
this.state.comparaOnly ? 'all genomes' : 'compara only'
|
|
5390
|
+
]
|
|
5391
|
+
})
|
|
5360
5392
|
]
|
|
5361
5393
|
}),
|
|
5362
5394
|
this.props.grameneTaxDist && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$gramenesearchvis))), {
|
|
@@ -5378,7 +5410,7 @@ class $a67cad486021eb32$var$TaxDist extends (0, ($parcel$interopDefault($gXNCa$r
|
|
|
5378
5410
|
});
|
|
5379
5411
|
}
|
|
5380
5412
|
}
|
|
5381
|
-
var $a67cad486021eb32$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)('selectGrameneTaxDist', 'selectGrameneGenomes', 'selectGrameneSearch', $a67cad486021eb32$var$TaxDist);
|
|
5413
|
+
var $a67cad486021eb32$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)('selectGrameneTaxDist', 'selectGrameneGenomes', 'selectGrameneSearch', 'selectGrameneMaps', $a67cad486021eb32$var$TaxDist);
|
|
5382
5414
|
|
|
5383
5415
|
|
|
5384
5416
|
|