gramene-search 1.6.34 → 1.6.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gramene-search",
3
- "version": "1.6.34",
3
+ "version": "1.6.36",
4
4
  "description": "search wrapper for gramene",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -5,7 +5,7 @@ import treesClient from "gramene-trees-client";
5
5
  import {build} from "gramene-taxonomy-with-genomes";
6
6
 
7
7
  const facets = [
8
- "{!facet.limit='200' facet.mincount='1' key='taxon_id'}taxon_id",
8
+ "{!facet.limit='300' facet.mincount='1' key='taxon_id'}taxon_id",
9
9
  "{!facet.limit='100' facet.mincount='1' key='genetree'}gene_tree",
10
10
  "{!facet.limit='100' facet.mincount='1' key='pathways'}pathways__ancestors",
11
11
  "{!facet.limit='100' facet.mincount='1' key='domains'}domain_roots",
@@ -43,14 +43,14 @@ const Detail = props => {
43
43
  useEffect(() => {
44
44
  const tid = Math.floor(gene.taxon_id / 1000);
45
45
  if (props.expressionStudies[tid]) {
46
- let eList = props.expressionStudies[tid];
46
+ let eList = props.expressionStudies[tid].sort((a,b) => {
47
+ const a_name = `${a.type}:${a.description || a._id}`;
48
+ const b_name = `${b.type}:${b.description || b._id}`;
49
+ return a_name < b_name ? -1 : 1;
50
+ });
47
51
  if (props.searchResult.hasOwnProperty('expressed_in_gxa_attr_ss')) {
48
52
  const in_gxa = new Set(props.searchResult.expressed_in_gxa_attr_ss);
49
- eList = props.expressionStudies[tid].filter(e => in_gxa.has(e._id)).sort((a,b) => {
50
- const a_name = `${a.type}:${a.description || a._id}`;
51
- const b_name = `${b.type}:${b.description || b._id}`;
52
- return a_name < b_name ? -1 : 1;
53
- })
53
+ eList = eList.filter(e => in_gxa.has(e._id))
54
54
  }
55
55
  setAtlasExperimentList(eList);
56
56