gramene-search 1.2.49 → 1.2.50

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.2.49",
3
+ "version": "1.2.50",
4
4
  "description": "search wrapper for gramene",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "gramene-dbxrefs": "^3.0.11",
29
29
  "gramene-genetree-vis": "^4.1.13",
30
30
  "gramene-mdview": "^1.1.8",
31
- "gramene-search-vis": "^4.1.10",
31
+ "gramene-search-vis": "^4.1.11",
32
32
  "gramene-taxonomy-with-genomes": "^3.0.10",
33
33
  "gramene-trees-client": "^2.6.1",
34
34
  "lodash": "^4.17.15",
@@ -25,7 +25,7 @@ let inventory = {
25
25
 
26
26
  function renderTairSummary(searchResult) {
27
27
  const summary = searchResult.summary;
28
- if(summary && searchResult.taxon_id === 3702) {
28
+ if(summary && summary !== "NULL" && searchResult.taxon_id === 3702) {
29
29
  return (
30
30
  <div className="gene-summary-tair">
31
31
  {trimSummary(summary)}
@@ -158,17 +158,18 @@ class Location extends React.Component {
158
158
  let links = [
159
159
  {name: 'Ensembl Browser', url: `${this.props.ensemblURL}/${gene.system_name}/Gene/Summary?g=${gene._id}`}
160
160
  ];
161
- if (gene.annotations.taxonomy.ancestors.includes(4557)) {
162
- links.push({name: 'PhytoMine', url: `https://phytozome.jgi.doe.gov/phytomine/keywordSearchResults.do?searchTerm=${jgiify(gene._id)}&searchSubmit=Search`})
163
- }
161
+ if (gene.annotations.taxonomy.ancestors.includes(4557))
162
+ links.push({name: 'Phytozome', url: `https://phytozome.jgi.doe.gov/phytomine/keywordSearchResults.do?searchTerm=${jgiify(gene._id)}&searchSubmit=Search`})
164
163
  if (gene.taxon_id === 3702)
165
- links.push({name: 'Thalemine', url: `https://bar.utoronto.ca/thalemine/keywordSearchResults.do?searchTerm=${gene._id}&searchSubmit=search`});
164
+ links.push(
165
+ {name: 'tair', url: `https://www.arabidopsis.org/servlets/TairObject?name=${gene._id}&type=locus`},
166
+ {name: 'ThaleMine', url: `https://bar.utoronto.ca/thalemine/keywordSearchResults.do?searchTerm=${gene._id}&searchSubmit=search`}
167
+ );
168
+ if (gene.taxon_id === 39947)
169
+ links.push({name: 'RAP-DB', url: `https://rapdb.dna.affrc.go.jp/locus/?name=${gene._id}`});
166
170
  const isMaize = new RegExp(/^Zm[0-9]+/);
167
- if (isMaize.test(gene._id)) {
171
+ if (isMaize.test(gene._id))
168
172
  links.push({name: 'MaizeGDB', url: `http://www.maizegdb.org/gene_center/gene/${gene._id}`});
169
- }
170
- // if (gene.taxon_id === 4577)
171
- // links.push({name: 'MaizeGDB', url: `http://www.maizegdb.org/gene_center/gene/${gene._id}`});
172
173
  return links;
173
174
  }
174
175