gramene-search 1.6.26 → 1.6.28

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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 66530099
2
- 1746654706473322000
1
+ 165937747
2
+ 1749778115582705000
package/dist/index.js CHANGED
@@ -2243,7 +2243,11 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2243
2243
  (0, $gXNCa$react.useEffect)(()=>{
2244
2244
  const tid = Math.floor(gene.taxon_id / 1000);
2245
2245
  if (props.expressionStudies[tid]) {
2246
- let eList = props.expressionStudies[tid].filter((e)=>e.type === "Baseline");
2246
+ let eList = props.expressionStudies[tid];
2247
+ if (props.searchResult.hasOwnProperty('expressed_in_gxa_attr_ss')) {
2248
+ const in_gxa = new Set(props.searchResult.expressed_in_gxa_attr_ss);
2249
+ eList = props.expressionStudies[tid].filter((e)=>in_gxa.has(e._id));
2250
+ }
2247
2251
  setAtlasExperimentList(eList);
2248
2252
  let refExp = eList.filter((e)=>e.isRef);
2249
2253
  if (refExp.length === 1) setAtlasExperiment(refExp[0]._id);
@@ -2254,10 +2258,12 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2254
2258
  props.expressionStudies
2255
2259
  ]);
2256
2260
  let paralogs_url;
2257
- let gene_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${gene.atlas_id || gene._id}&localAPI=${isLocal}`;
2261
+ let gene_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${gene.atlas_id || gene._id}&experiment=${atlasExperiment}&localAPI=${isLocal}`;
2258
2262
  let paralogs = [];
2259
2263
  if (gene.homology && gene.homology.homologous_genes && gene.homology.homologous_genes.within_species_paralog) paralogs = gene.homology.homologous_genes.within_species_paralog;
2260
2264
  if (paralogs.length > 1 && atlasExperiment) paralogs_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${paralogs.join(' ')}&experiment=${atlasExperiment}&localAPI=${isLocal}`;
2265
+ const ref = (0, $gXNCa$react.useRef)(null);
2266
+ const ref2 = (0, $gXNCa$react.useRef)(null);
2261
2267
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tabs), {
2262
2268
  children: [
2263
2269
  paralogs_url && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
@@ -2265,39 +2271,18 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2265
2271
  eventKey: "paralogs",
2266
2272
  title: `Paralogs`,
2267
2273
  children: [
2268
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Form), {
2269
- children: [
2270
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Form).Check, {
2271
- type: "switch",
2272
- id: "localAPI",
2273
- label: "Local API",
2274
- checked: isLocal,
2275
- onChange: handleLocalAPIChange
2276
- }),
2277
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Form).Group, {
2278
- as: (0, $gXNCa$reactbootstrap.Row),
2279
- className: "mb-3",
2280
- controlId: "formGroupExperiment",
2274
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Form).Select, {
2275
+ "aria-label": "experiment selector",
2276
+ placeholder: "Select experiment",
2277
+ onChange: (e)=>setAtlasExperiment(e.target.value),
2278
+ children: atlasExperimentList.map((e, idx)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("option", {
2279
+ value: e._id,
2281
2280
  children: [
2282
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Form).Label, {
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
- })
2281
+ e.type,
2282
+ ": ",
2283
+ e.description || e._id
2298
2284
  ]
2299
- })
2300
- ]
2285
+ }, idx))
2301
2286
  }),
2302
2287
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
2303
2288
  url: paralogs_url
@@ -2309,12 +2294,18 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2309
2294
  eventKey: "gene",
2310
2295
  title: "All Studies",
2311
2296
  children: [
2312
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Form).Check, {
2313
- type: "switch",
2314
- id: "localAPI",
2315
- label: "Local API",
2316
- checked: isLocal,
2317
- onChange: handleLocalAPIChange
2297
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Form).Select, {
2298
+ "aria-label": "experiment selector",
2299
+ placeholder: "Select experiment",
2300
+ onChange: (e)=>setAtlasExperiment(e.target.value),
2301
+ children: atlasExperimentList.map((e, idx)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("option", {
2302
+ value: e._id,
2303
+ children: [
2304
+ e.type,
2305
+ ": ",
2306
+ e.description || e._id
2307
+ ]
2308
+ }, idx))
2318
2309
  }),
2319
2310
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
2320
2311
  url: gene_url
@@ -2332,8 +2323,9 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2332
2323
  ]
2333
2324
  });
2334
2325
  };
2335
- var $9e29a4f60318db7a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)(// 'selectParalogExpression',
2336
- 'selectExpressionStudies', 'doRequestParalogExpression', $9e29a4f60318db7a$var$Detail);
2326
+ var $9e29a4f60318db7a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)(//'selectParalogExpression',
2327
+ 'selectExpressionStudies', //'doRequestParalogExpression',
2328
+ $9e29a4f60318db7a$var$Detail);
2337
2329
 
2338
2330
 
2339
2331