gramene-search 1.2.70 → 1.2.72

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.
Files changed (78) hide show
  1. package/.parcel-cache/2126881b633272fa.txt +2 -2
  2. package/.parcel-cache/425346ba6a54d932 +0 -0
  3. package/.parcel-cache/878e3ffbad677982 +0 -0
  4. package/.parcel-cache/a6c49560dea3583b +0 -0
  5. package/.parcel-cache/cdecf11601322051 +0 -0
  6. package/.parcel-cache/data.mdb +0 -0
  7. package/.parcel-cache/lock.mdb +0 -0
  8. package/dist/index.css +10 -0
  9. package/dist/index.css.map +1 -1
  10. package/dist/index.js +35 -6
  11. package/dist/index.js.map +1 -1
  12. package/package.json +1 -1
  13. package/src/bundles/BAR.js +27 -0
  14. package/src/components/results/GeneList.js +3 -2
  15. package/src/components/results/details/Expression.js +9 -1
  16. package/src/components/results/details/Publications.js +12 -5
  17. package/src/components/results/genes.css +9 -0
  18. package/src/demo.js +3 -2
  19. package/src/index.html +1 -10
  20. package/.parcel-cache/182d3536a86f8a99 +0 -0
  21. package/.parcel-cache/1a995a2728ab7c7c +0 -0
  22. package/.parcel-cache/2e66a6362611aea3 +0 -0
  23. package/.parcel-cache/37c075a090d2565c +0 -0
  24. package/.parcel-cache/4014ba3cfd6d6af5 +0 -0
  25. package/.parcel-cache/40cb8a4fff87878d +0 -0
  26. package/.parcel-cache/582ac168061284ec +0 -0
  27. package/.parcel-cache/58e6cdaa648addaa +0 -0
  28. package/.parcel-cache/5ac8c0794eec0b6d +0 -0
  29. package/.parcel-cache/64017d7419e01ee8 +0 -0
  30. package/.parcel-cache/65680aa75a27f755 +0 -0
  31. package/.parcel-cache/75bd0e526cad8639.txt +0 -2
  32. package/.parcel-cache/7a604ff8211c827a +0 -0
  33. package/.parcel-cache/8786d01504945137 +0 -0
  34. package/.parcel-cache/888719e07a5dc53d +0 -0
  35. package/.parcel-cache/9373e09988f1c27e +0 -0
  36. package/.parcel-cache/946233e401111bd7 +0 -0
  37. package/.parcel-cache/975855cd9a4916ed +0 -0
  38. package/.parcel-cache/99f79b8f67c3938c +0 -0
  39. package/.parcel-cache/9eddc51e1d199de2 +0 -0
  40. package/.parcel-cache/a1c9060289b9a9e3 +0 -0
  41. package/.parcel-cache/a7460d1206f3c511 +0 -0
  42. package/.parcel-cache/af6e8df7da4e4cdf +0 -0
  43. package/.parcel-cache/afe9f26fc0492b9a +0 -0
  44. package/.parcel-cache/b2ca3460e754ac13 +0 -0
  45. package/.parcel-cache/b7855bf955616e1f +0 -0
  46. package/.parcel-cache/d60e419ac6d05e40 +0 -0
  47. package/.parcel-cache/d8d36c1ea9c8d411 +0 -0
  48. package/.parcel-cache/e6d16635757cf0cb +0 -0
  49. package/.parcel-cache/ef43aaec779f1840 +0 -0
  50. package/.parcel-cache/f09b529f4e2ea91e +0 -0
  51. package/.parcel-cache/f81d409e9dd93ab3 +0 -0
  52. package/.parcel-cache/f8f45c1655f48536 +0 -0
  53. package/dist/android-chrome-192x192.4d149c27.png +0 -0
  54. package/dist/apple-touch-icon-114x114.27e956ae.png +0 -0
  55. package/dist/apple-touch-icon-120x120.b209ed9f.png +0 -0
  56. package/dist/apple-touch-icon-144x144.9f8e2136.png +0 -0
  57. package/dist/apple-touch-icon-152x152.b6107a9b.png +0 -0
  58. package/dist/apple-touch-icon-180x180.58fbcc65.png +0 -0
  59. package/dist/apple-touch-icon-57x57.f670c755.png +0 -0
  60. package/dist/apple-touch-icon-60x60.3fbc15ae.png +0 -0
  61. package/dist/apple-touch-icon-72x72.a0fd991d.png +0 -0
  62. package/dist/apple-touch-icon-76x76.437b43b5.png +0 -0
  63. package/dist/favicon-16x16.4dd6b101.png +0 -0
  64. package/dist/favicon-32x32.a0d53b79.png +0 -0
  65. package/dist/favicon-96x96.6cd9b68e.png +0 -0
  66. package/dist/genetree.d75946eb.png +0 -0
  67. package/dist/results.a8da7555.png +0 -0
  68. package/dist/sorghum.250fb7b9.js +0 -15812
  69. package/dist/sorghum.250fb7b9.js.map +0 -1
  70. package/dist/sorghum.2c55063b.css +0 -26784
  71. package/dist/sorghum.2c55063b.css.map +0 -1
  72. package/dist/sorghum.b34cb912.js +0 -293148
  73. package/dist/sorghum.b34cb912.js.map +0 -1
  74. package/dist/sorghum.html +0 -39
  75. package/dist/suggestions.099b7c0e.png +0 -0
  76. /package/.parcel-cache/{057d02068e841b2c → 5d2bf78f9b017b65} +0 -0
  77. /package/.parcel-cache/{17e9e143fcf5b59f → 6a5705a7ab80af54} +0 -0
  78. /package/.parcel-cache/{5f791e46dc5128e7 → 6d0dad9ec569b0d3} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gramene-search",
3
- "version": "1.2.70",
3
+ "version": "1.2.72",
4
4
  "description": "search wrapper for gramene",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,27 @@
1
+ import {createSelector} from "redux-bundler";
2
+ const BARs = {
3
+ name: 'BARs',
4
+ getReducer: () => {
5
+ const initialState = {
6
+
7
+ };
8
+ return (state = initialState, {type, payload}) => {
9
+ let newState;
10
+ switch (type) {
11
+ // case 'GRAMENE_GENOMES_TOGGLED':
12
+ // newState = Object.assign({},state);
13
+ // newState.show = !newState.show;
14
+ // return newState;
15
+ // case 'GRAMENE_GENOMES_UPDATED':
16
+ // newState = Object.assign({}, state);
17
+ // newState.active = payload;
18
+ // return newState;
19
+ default:
20
+ return state;
21
+ }
22
+ }
23
+ },
24
+ selectBARs: state => state.BARs,
25
+ };
26
+
27
+ export default BARs;
@@ -165,10 +165,11 @@ class Gene extends React.Component {
165
165
  }
166
166
  getDetailStatus(d) {
167
167
  if (this.state.expandedDetail === d.id) return 'expanded';
168
- return d.available ? 'closed' : 'disabled';
168
+ if (d.available) return 'closed'
169
+ return d.id === "pubs" ? 'empty' : 'disabled';
169
170
  }
170
171
  setExpanded(d) {
171
- if (d.available) {
172
+ if (d.available || d.id === "pubs") {
172
173
  if (this.state.expandedDetail === d.id) {
173
174
  this.setState({expandedDetail: null})
174
175
  }
@@ -5,7 +5,13 @@ import {Tabs, Tab} from 'react-bootstrap';
5
5
  const Detail = props => {
6
6
  const gene = props.geneDocs[props.searchResult.id];
7
7
  let paralogs_url;
8
- let gene_url = `/static/atlasWidget.html?reference=0&genes=${gene._id}`;
8
+ let efp_browser;
9
+ let gene_url = `/static/atlasWidget.html?reference=0&genes=${gene.atlas_id || gene._id}`;
10
+ if (gene.taxon_id === 4558) {
11
+ // efp_browser = `https://bar.utoronto.ca/api/efp_image/efp_sorghum/Stress_Atlas/Absolute/${gene._id.replace('SORBI_3','Sobic.')}`
12
+ // efp_browser = `https://bar.utoronto.ca/api/efp_image/efp_sorghum/`
13
+ // efp_browser = `https://bar.utoronto.ca/~asher/efp_sorghum/cgi-bin/efpWeb.cgi?dataSource=Developmental_Atlas&mode=Absolute&primaryGene=${gene._id.replace('SORBI_3','Sobic.')}`
14
+ }
9
15
  if (props.paralogExpression && props.paralogExpression[gene._id]) {
10
16
  let paralogs = props.paralogExpression[gene._id].map(p => p.id);
11
17
  if (paralogs.length > 1) {
@@ -22,6 +28,8 @@ const Detail = props => {
22
28
  {paralogs_url && <Tab eventKey="paralogs" title="Reference Study (all paralogs)">
23
29
  <iframe src={paralogs_url} frameBorder="0" width="100%" height="500px"></iframe>
24
30
  </Tab>}
31
+ {efp_browser && <Tab eventKey="eFP" title="eFP browser (BAR)">
32
+ </Tab>}
25
33
  </Tabs>
26
34
  };
27
35
 
@@ -90,9 +90,11 @@ function formatPubsForGene(gene) {
90
90
  if(!gene || !_.isArray(gene.xrefs)) {
91
91
  throw new Error("No xrefs for " + _.get(gene._id));
92
92
  }
93
- return gene.xrefs
94
- .filter(xr => xr.db === "PUBMED") //dbxrefs.isKnown(xr.db))
95
- .sort((a,b) => {
93
+ let pubs = gene.xrefs.filter(xr => xr.db === "PUBMED");
94
+ if (pubs.length === 0) {
95
+ return <tr><td colSpan={3}>No publications found.</td></tr>
96
+ }
97
+ return pubs.sort((a,b) => {
96
98
  if (a.source) {
97
99
  if (b.source) {
98
100
  if (a.source < b.source) {
@@ -124,11 +126,11 @@ function formatPubsForGene(gene) {
124
126
  )
125
127
  })
126
128
  }
127
-
129
+ const formURL = 'https://docs.google.com/forms/d/e/1FAIpQLSey-xPyTysdd9c2phXT6kcbjEDeCppG4dLG7LjZCeLpx_KGog/viewform?usp=pp_url&entry.1266455249=';
128
130
  const Publications = ({searchResult, geneDocs}) => (
129
131
  <Detail>
130
132
  <Title key="title">Curated publications</Title>
131
- <Description key="description">This gene has been described in the literature:</Description>
133
+ <Description key="description">Functions described in the literature:</Description>
132
134
  <Content key="content">
133
135
  <table className="xrefs table">
134
136
  <thead>
@@ -141,6 +143,11 @@ const Publications = ({searchResult, geneDocs}) => (
141
143
  <tbody>
142
144
  {formatPubsForGene(geneDocs[searchResult.id])}
143
145
  </tbody>
146
+ <tfoot>
147
+ <tr>
148
+ <th colSpan={3}>Submit a gene function <a target="_blank" href={formURL + searchResult.id}>here</a></th>
149
+ </tr>
150
+ </tfoot>
144
151
  </table>
145
152
  </Content>
146
153
  </Detail>
@@ -88,6 +88,15 @@
88
88
  color: lightgray;
89
89
  cursor: not-allowed;
90
90
  }
91
+ .gene-detail-tab-empty {
92
+ color: darkgreen;
93
+ cursor: pointer;
94
+ font-style: oblique;
95
+ /*background-color: lightgray;*/
96
+ }
97
+ .gene-detail-tab-empty::before {
98
+ content: "Add ";
99
+ }
91
100
  .gene-detail-tab-expanded {
92
101
  color: white;
93
102
  background-color: #557B74;
package/src/demo.js CHANGED
@@ -45,7 +45,8 @@ const panSites = [
45
45
  ensemblURL: 'https://ensembl.gramene.org',
46
46
  ensemblSite: 'https://ensembl.gramene.org',
47
47
  ensemblRest: 'https://data.gramene.org/ensembl66',
48
- grameneData: 'https://data.gramene.org/v66',
48
+ grameneData: 'https://data.gramene.org/v68',
49
+ ga: 'G-ZTEQBFCRXZ',
49
50
  targetTaxonId: 3702,
50
51
  alertText: 'Main site'
51
52
  },
@@ -77,7 +78,7 @@ const panSites = [
77
78
  ensemblRest: 'https://data.gramene.org/pansite-ensembl',
78
79
  grameneData: 'https://data.sorghumbase.org/sorghum_v6',
79
80
  ga: 'G-L5KXDCCZ16',
80
- targetTaxonId: 4588,
81
+ targetTaxonId: 4558,
81
82
  alertText: 'Click the search icon in the menu bar or type / to search'
82
83
  },
83
84
  {
package/src/index.html CHANGED
@@ -5,19 +5,10 @@
5
5
  <title>Gramene Search</title>
6
6
  <script>
7
7
  window.gramene = {};
8
- gramene.defaultServer = 'https://data.gramene.org/v66/swagger';
8
+ gramene.defaultServer = 'https://data.gramene.org/v68/swagger';
9
9
  </script>
10
10
  <script async src="./static/gramene-dalliance/dalliance-all.js"></script>
11
11
  <script async src="https://plantreactome.gramene.org/DiagramJs/diagram/diagram.nocache.js"></script>
12
- <!-- Global site tag (gtag.js) - Google Analytics -->
13
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-1624628-5"></script>
14
- <script>
15
- window.dataLayer = window.dataLayer || [];
16
- function gtag(){dataLayer.push(arguments);}
17
- gtag('js', new Date());
18
-
19
- gtag('config', 'UA-1624628-5');
20
- </script>
21
12
  <link rel="apple-touch-icon" sizes="57x57" href="./static/icons/apple-touch-icon-57x57.png">
22
13
  <link rel="apple-touch-icon" sizes="60x60" href="./static/icons/apple-touch-icon-60x60.png">
23
14
  <link rel="apple-touch-icon" sizes="72x72" href="./static/icons/apple-touch-icon-72x72.png">
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- 160610964
2
- 1688621248646815000
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file