gramene-search 1.6.26 → 1.6.27
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/9a0d07555444f4da-AssetGraph +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 +45 -43
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/results/details/Expression.js +37 -29
- package/src/demo.js +4 -4
|
Binary file
|
|
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
|
+
164935289
|
|
2
|
+
1749746396350714000
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,8 @@ var $gXNCa$reactswitch = require("react-switch");
|
|
|
13
13
|
var $gXNCa$reacticonsio5 = require("react-icons/io5");
|
|
14
14
|
var $gXNCa$reacticonsbs = require("react-icons/bs");
|
|
15
15
|
var $gXNCa$reacticonsgr = require("react-icons/gr");
|
|
16
|
+
var $gXNCa$reactbootstraptypeahead = require("react-bootstrap-typeahead");
|
|
17
|
+
require("react-bootstrap-typeahead/css/Typeahead.css");
|
|
16
18
|
var $gXNCa$grameneefpbrowser = require("gramene-efp-browser");
|
|
17
19
|
var $gXNCa$gramenegenetreevis = require("gramene-genetree-vis");
|
|
18
20
|
var $gXNCa$lodashkeyBy = require("lodash/keyBy");
|
|
@@ -2209,6 +2211,8 @@ var $541b8b0d8c5501d2$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
|
|
|
2209
2211
|
|
|
2210
2212
|
|
|
2211
2213
|
|
|
2214
|
+
|
|
2215
|
+
|
|
2212
2216
|
|
|
2213
2217
|
function $9e29a4f60318db7a$var$DynamicIframe(props) {
|
|
2214
2218
|
// Create a ref for the iframe element
|
|
@@ -2243,7 +2247,11 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2243
2247
|
(0, $gXNCa$react.useEffect)(()=>{
|
|
2244
2248
|
const tid = Math.floor(gene.taxon_id / 1000);
|
|
2245
2249
|
if (props.expressionStudies[tid]) {
|
|
2246
|
-
let eList = props.expressionStudies[tid]
|
|
2250
|
+
let eList = props.expressionStudies[tid];
|
|
2251
|
+
if (props.searchResult.hasOwnProperty('expressed_in_gxa_attr_ss')) {
|
|
2252
|
+
const in_gxa = new Set(props.searchResult.expressed_in_gxa_attr_ss);
|
|
2253
|
+
eList = props.expressionStudies[tid].filter((e)=>in_gxa.has(e._id));
|
|
2254
|
+
}
|
|
2247
2255
|
setAtlasExperimentList(eList);
|
|
2248
2256
|
let refExp = eList.filter((e)=>e.isRef);
|
|
2249
2257
|
if (refExp.length === 1) setAtlasExperiment(refExp[0]._id);
|
|
@@ -2254,10 +2262,12 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2254
2262
|
props.expressionStudies
|
|
2255
2263
|
]);
|
|
2256
2264
|
let paralogs_url;
|
|
2257
|
-
let gene_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${gene.atlas_id || gene._id}&localAPI=${isLocal}`;
|
|
2265
|
+
let gene_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${gene.atlas_id || gene._id}&experiment=${atlasExperiment}&localAPI=${isLocal}`;
|
|
2258
2266
|
let paralogs = [];
|
|
2259
2267
|
if (gene.homology && gene.homology.homologous_genes && gene.homology.homologous_genes.within_species_paralog) paralogs = gene.homology.homologous_genes.within_species_paralog;
|
|
2260
2268
|
if (paralogs.length > 1 && atlasExperiment) paralogs_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${paralogs.join(' ')}&experiment=${atlasExperiment}&localAPI=${isLocal}`;
|
|
2269
|
+
const ref = (0, $gXNCa$react.useRef)(null);
|
|
2270
|
+
const ref2 = (0, $gXNCa$react.useRef)(null);
|
|
2261
2271
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tabs), {
|
|
2262
2272
|
children: [
|
|
2263
2273
|
paralogs_url && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
|
|
@@ -2265,39 +2275,21 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2265
2275
|
eventKey: "paralogs",
|
|
2266
2276
|
title: `Paralogs`,
|
|
2267
2277
|
children: [
|
|
2268
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
column: true,
|
|
2284
|
-
sm: 1,
|
|
2285
|
-
children: "Experiment"
|
|
2286
|
-
}),
|
|
2287
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Col), {
|
|
2288
|
-
sm: 5,
|
|
2289
|
-
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Form).Select, {
|
|
2290
|
-
defaultValue: atlasExperiment,
|
|
2291
|
-
onChange: (e)=>setAtlasExperiment(e.target.value),
|
|
2292
|
-
children: atlasExperimentList.map((experiment, index)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("option", {
|
|
2293
|
-
value: experiment._id,
|
|
2294
|
-
children: experiment.description || experiment._id
|
|
2295
|
-
}, index))
|
|
2296
|
-
})
|
|
2297
|
-
})
|
|
2298
|
-
]
|
|
2299
|
-
})
|
|
2300
|
-
]
|
|
2278
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstraptypeahead.Typeahead), {
|
|
2279
|
+
clearButton: true,
|
|
2280
|
+
size: "sm",
|
|
2281
|
+
id: "experiment-selector",
|
|
2282
|
+
ref: ref,
|
|
2283
|
+
labelKey: "experiment",
|
|
2284
|
+
onChange: (exps)=>{
|
|
2285
|
+
if (exps.length > 0) {
|
|
2286
|
+
setAtlasExperiment(exps[0]._id);
|
|
2287
|
+
setTimeout(()=>ref.current?.clear(), 2000);
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
placeholder: "Choose an experiment...",
|
|
2291
|
+
options: atlasExperimentList,
|
|
2292
|
+
labelKey: (experiment)=>`${experiment.type}: ${experiment.description || experiment._id}`
|
|
2301
2293
|
}),
|
|
2302
2294
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
|
|
2303
2295
|
url: paralogs_url
|
|
@@ -2309,12 +2301,21 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2309
2301
|
eventKey: "gene",
|
|
2310
2302
|
title: "All Studies",
|
|
2311
2303
|
children: [
|
|
2312
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2304
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstraptypeahead.Typeahead), {
|
|
2305
|
+
clearButton: true,
|
|
2306
|
+
size: "sm",
|
|
2307
|
+
id: "experiment-selector2",
|
|
2308
|
+
ref: ref,
|
|
2309
|
+
labelKey: "experiment",
|
|
2310
|
+
onChange: (exps)=>{
|
|
2311
|
+
if (exps.length > 0) {
|
|
2312
|
+
setAtlasExperiment(exps[0]._id);
|
|
2313
|
+
setTimeout(()=>ref.current?.clear(), 2000);
|
|
2314
|
+
}
|
|
2315
|
+
},
|
|
2316
|
+
placeholder: "Choose an experiment...",
|
|
2317
|
+
options: atlasExperimentList,
|
|
2318
|
+
labelKey: (experiment)=>`${experiment.type}: ${experiment.description || experiment._id}`
|
|
2318
2319
|
}),
|
|
2319
2320
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
|
|
2320
2321
|
url: gene_url
|
|
@@ -2332,8 +2333,9 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2332
2333
|
]
|
|
2333
2334
|
});
|
|
2334
2335
|
};
|
|
2335
|
-
var $9e29a4f60318db7a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)(//
|
|
2336
|
-
'selectExpressionStudies', 'doRequestParalogExpression',
|
|
2336
|
+
var $9e29a4f60318db7a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)(//'selectParalogExpression',
|
|
2337
|
+
'selectExpressionStudies', //'doRequestParalogExpression',
|
|
2338
|
+
$9e29a4f60318db7a$var$Detail);
|
|
2337
2339
|
|
|
2338
2340
|
|
|
2339
2341
|
|