gramene-search 1.4.6 → 1.5.0
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/4987902b3f9787cc-BundleGraph-0 +0 -0
- package/.parcel-cache/70f1f7555dda250d-AssetGraph-0 +0 -0
- package/.parcel-cache/7b8e4611c0f03524-AssetGraph-0 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/requestGraph-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/snapshot-369948a06d23ec44.txt +2 -2
- package/dist/index.js +58 -57
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/components/results/GeneList.js +55 -54
- package/src/components/results/details/Location.js +1 -1
- package/src/components/results/details/location/dallianceBrowser.js +5 -4
- package/src/demo.js +53 -3
- package/src/index.html +1 -1
- package/src/sorghum.html +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gramene-search",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "search wrapper for gramene.",
|
|
5
5
|
"source": "src/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"flat-to-nested": "^1.1.1",
|
|
29
29
|
"formik": "^3.0.0-next.8",
|
|
30
30
|
"gramene-bins-client": "^2.3.3",
|
|
31
|
-
"gramene-dbxrefs": "^3.0.
|
|
31
|
+
"gramene-dbxrefs": "^3.0.12",
|
|
32
32
|
"gramene-efp-browser": "^1.0.6",
|
|
33
33
|
"gramene-genetree-vis": "^4.2.7",
|
|
34
34
|
"gramene-mdview": "^2.0.6",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"http-proxy-middleware": "latest",
|
|
74
74
|
"parcel": "latest",
|
|
75
75
|
"process": "^0.11.10",
|
|
76
|
+
"url": "^0.11.3",
|
|
76
77
|
"util": "^0.12.5"
|
|
77
78
|
},
|
|
78
79
|
"repository": {
|
|
@@ -134,60 +134,63 @@ function shouldShowClosestOrtholog(searchResult) {
|
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
const allDetails = [
|
|
138
|
+
{
|
|
139
|
+
id: 'VEP',
|
|
140
|
+
label: 'Germplasm',
|
|
141
|
+
popup: 'Germplasm with protein truncating variants (PTVs)',
|
|
142
|
+
available: false
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'sequences',
|
|
146
|
+
label: 'Sequences',
|
|
147
|
+
popup: 'Gene/cDNA/protein fasta',
|
|
148
|
+
available: true
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'location',
|
|
152
|
+
label: 'Location',
|
|
153
|
+
popup: 'Genome Browser',
|
|
154
|
+
available: false
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: 'expression',
|
|
158
|
+
label: 'Expression',
|
|
159
|
+
popup: 'Gene Expression Atlas',
|
|
160
|
+
available: false
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: 'homology',
|
|
164
|
+
label: 'Homology',
|
|
165
|
+
popup: 'Gene Family Tree',
|
|
166
|
+
available: false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 'pathways',
|
|
170
|
+
label: 'Pathways',
|
|
171
|
+
popup: 'Plant Reactome Pathways',
|
|
172
|
+
available: false
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: 'pubs',
|
|
176
|
+
label: 'Papers',
|
|
177
|
+
popup: 'Curated Publications',
|
|
178
|
+
available: false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: 'xrefs',
|
|
182
|
+
label: 'Xrefs',
|
|
183
|
+
popup: 'Database Cross-references',
|
|
184
|
+
available: false
|
|
185
|
+
}
|
|
186
|
+
];
|
|
187
|
+
|
|
188
|
+
|
|
137
189
|
class Gene extends React.Component {
|
|
138
190
|
constructor(props) {
|
|
139
191
|
super(props);
|
|
140
192
|
this.state = {
|
|
141
|
-
details: [
|
|
142
|
-
// {
|
|
143
|
-
// id: 'VEP',
|
|
144
|
-
// label: 'Germplasm',
|
|
145
|
-
// popup: 'Germplasm with protein truncating variants (PTVs)',
|
|
146
|
-
// available: false
|
|
147
|
-
// },
|
|
148
|
-
{
|
|
149
|
-
id: 'sequences',
|
|
150
|
-
label: 'Sequences',
|
|
151
|
-
popup: 'Gene/cDNA/protein fasta',
|
|
152
|
-
available: true
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
id: 'location',
|
|
156
|
-
label: 'Location',
|
|
157
|
-
popup: 'Genome Browser',
|
|
158
|
-
available: false
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: 'expression',
|
|
162
|
-
label: 'Expression',
|
|
163
|
-
popup: 'Gene Expression Atlas',
|
|
164
|
-
available: false
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
id: 'homology',
|
|
168
|
-
label: 'Homology',
|
|
169
|
-
popup: 'Gene Family Tree',
|
|
170
|
-
available: false
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
id: 'pathways',
|
|
174
|
-
label: 'Pathways',
|
|
175
|
-
popup: 'Plant Reactome Pathways',
|
|
176
|
-
available: false
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
id: 'pubs',
|
|
180
|
-
label: 'Papers',
|
|
181
|
-
popup: 'Curated Publications',
|
|
182
|
-
available: false
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
id: 'xrefs',
|
|
186
|
-
label: 'Xrefs',
|
|
187
|
-
popup: 'Database Cross-references',
|
|
188
|
-
available: false
|
|
189
|
-
}
|
|
190
|
-
],
|
|
193
|
+
details: allDetails.map(o => ({...o})).filter(d => props.config.details[d.id]),
|
|
191
194
|
expandedDetail: props.expandedDetail
|
|
192
195
|
};
|
|
193
196
|
let hasData = {};
|
|
@@ -236,7 +239,7 @@ class Gene extends React.Component {
|
|
|
236
239
|
return renderTairSummary(gene) || renderClosestOrtholog(gene);
|
|
237
240
|
}
|
|
238
241
|
render() {
|
|
239
|
-
const panSite = this.props.panSite;
|
|
242
|
+
const panSite = this.props.config.panSite;
|
|
240
243
|
const searchResult = this.props.searchResult;
|
|
241
244
|
const taxName = this.props.taxName;
|
|
242
245
|
// let orthologs='';
|
|
@@ -303,9 +306,7 @@ const GeneList = props => {
|
|
|
303
306
|
{props.grameneSearch.response.docs.map((g,idx) => (
|
|
304
307
|
<Gene key={idx}
|
|
305
308
|
searchResult={g}
|
|
306
|
-
|
|
307
|
-
ensemblRest={props.configuration.ensemblRest}
|
|
308
|
-
panSite={props.configuration.panSite}
|
|
309
|
+
config={props.configuration}
|
|
309
310
|
taxName={props.grameneTaxonomy[g.taxon_id].name}
|
|
310
311
|
geneDocs={props.grameneGenes}
|
|
311
312
|
requestGene={props.doRequestGrameneGene}
|
|
@@ -156,7 +156,7 @@ class Location extends React.Component {
|
|
|
156
156
|
}
|
|
157
157
|
var gene = this.gene;
|
|
158
158
|
let links = [
|
|
159
|
-
{name: 'Ensembl Browser', url: `${this.props.ensemblURL}/${gene.system_name}/Gene/Summary?g=${gene._id}`}
|
|
159
|
+
{name: 'Ensembl Browser', url: `${this.props.config.ensemblURL}/${gene.system_name}/Gene/Summary?g=${gene._id}`}
|
|
160
160
|
];
|
|
161
161
|
if (gene.annotations.taxonomy.ancestors.includes(4557))
|
|
162
162
|
links.push({name: 'Phytozome', url: `https://phytozome-next.jgi.doe.gov/report/gene/Sbicolor_v5_1/${jgiify(gene._id)}`})
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import isEqual from "lodash/isEqual";
|
|
3
|
+
|
|
3
4
|
// var ensemblREST = require('../../../../../package.json').gramene.ensemblREST;
|
|
4
5
|
//const ensemblREST = 'http://data.gramene.org/ensembl63';
|
|
5
6
|
// const ensemblREST = 'https://data.sorghumbase.org/ensembl2';
|
|
@@ -56,13 +57,13 @@ export default class DallianceBrowser extends React.Component {
|
|
|
56
57
|
sources: [
|
|
57
58
|
{
|
|
58
59
|
name: 'DNA',
|
|
59
|
-
ensemblURI: this.props.ensemblRest,
|
|
60
|
+
ensemblURI: this.props.config.ensemblRest,
|
|
60
61
|
species: g.system_name,
|
|
61
62
|
tier_type: 'sequence'
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
65
|
name: 'Genes',
|
|
65
|
-
uri: this.props.ensemblRest,
|
|
66
|
+
uri: this.props.config.ensemblRest,
|
|
66
67
|
tier_type: 'ensembl',
|
|
67
68
|
species: g.system_name,
|
|
68
69
|
type: ['gene', 'transcript', 'exon', 'cds']
|
|
@@ -88,7 +89,7 @@ export default class DallianceBrowser extends React.Component {
|
|
|
88
89
|
maxViewWidth: 1000000
|
|
89
90
|
}
|
|
90
91
|
);
|
|
91
|
-
|
|
92
|
+
|
|
92
93
|
browser.addViewListener(this.props.onViewChange);
|
|
93
94
|
}
|
|
94
95
|
|
|
@@ -122,4 +123,4 @@ export default class DallianceBrowser extends React.Component {
|
|
|
122
123
|
// visibleRange: React.PropTypes.object.isRequired,
|
|
123
124
|
// expanded: React.PropTypes.bool,
|
|
124
125
|
// onViewChange: React.PropTypes.func.isRequired
|
|
125
|
-
// };
|
|
126
|
+
// };
|
package/src/demo.js
CHANGED
|
@@ -45,10 +45,20 @@ const panSites = [
|
|
|
45
45
|
ensemblURL: 'https://ensembl.gramene.org',
|
|
46
46
|
ensemblSite: 'https://ensembl.gramene.org',
|
|
47
47
|
ensemblRest: 'https://data.gramene.org/ensembl68',
|
|
48
|
-
grameneData: 'https://data.gramene.org/
|
|
48
|
+
grameneData: 'https://data.gramene.org/v68',
|
|
49
49
|
ga: 'G-ZTEQBFCRXZ',
|
|
50
50
|
targetTaxonId: 3702,
|
|
51
51
|
alertText: 'Main site',
|
|
52
|
+
details: {
|
|
53
|
+
sequences: true,
|
|
54
|
+
VEP: false,
|
|
55
|
+
location: true,
|
|
56
|
+
expression: true,
|
|
57
|
+
homology: true,
|
|
58
|
+
pathways: true,
|
|
59
|
+
pubs: true,
|
|
60
|
+
xrefs: true
|
|
61
|
+
},
|
|
52
62
|
panSite : {
|
|
53
63
|
sorghum_bicolor : {
|
|
54
64
|
url: "https://sorghumbase.org/genes?idList=",
|
|
@@ -84,6 +94,16 @@ const panSites = [
|
|
|
84
94
|
ga: "G-Y7ZYG1R8QT",
|
|
85
95
|
showViews: true,
|
|
86
96
|
not_downtime: 'The search interface will be undergoing maintenance on Tuesday, July 20 from 3:00 - 4:00 PM EDT',
|
|
97
|
+
details: {
|
|
98
|
+
sequences: true,
|
|
99
|
+
VEP: false,
|
|
100
|
+
location: true,
|
|
101
|
+
expression: true,
|
|
102
|
+
homology: true,
|
|
103
|
+
pathways: true,
|
|
104
|
+
pubs: true,
|
|
105
|
+
xrefs: true
|
|
106
|
+
},
|
|
87
107
|
renderAlert: () => (
|
|
88
108
|
<Alert variant='primary'>
|
|
89
109
|
Hufford et. al., 2021.
|
|
@@ -122,6 +142,16 @@ const panSites = [
|
|
|
122
142
|
targetTaxonId: 4558003,
|
|
123
143
|
alertText: 'Click the search icon in the menu bar or type / to search',
|
|
124
144
|
showViews: true,
|
|
145
|
+
details: {
|
|
146
|
+
sequences: true,
|
|
147
|
+
VEP: true,
|
|
148
|
+
location: true,
|
|
149
|
+
expression: true,
|
|
150
|
+
homology: true,
|
|
151
|
+
pathways: true,
|
|
152
|
+
pubs: true,
|
|
153
|
+
xrefs: true
|
|
154
|
+
},
|
|
125
155
|
panSite : {
|
|
126
156
|
vitis_vinifera : {
|
|
127
157
|
url: "https://vitis.gramene.org?idList=",
|
|
@@ -161,6 +191,16 @@ const panSites = [
|
|
|
161
191
|
},
|
|
162
192
|
targetTaxonId: 29760020,
|
|
163
193
|
alertText: 'Grapevine site',
|
|
194
|
+
details: {
|
|
195
|
+
sequences: true,
|
|
196
|
+
VEP: false,
|
|
197
|
+
location: true,
|
|
198
|
+
expression: true,
|
|
199
|
+
homology: true,
|
|
200
|
+
pathways: true,
|
|
201
|
+
pubs: true,
|
|
202
|
+
xrefs: true
|
|
203
|
+
},
|
|
164
204
|
panSite : {
|
|
165
205
|
sorghum_bicolor : {
|
|
166
206
|
url: "https://sorghumbase.org/genes?idList=",
|
|
@@ -187,8 +227,18 @@ const panSites = [
|
|
|
187
227
|
ensemblRest: 'https://data.gramene.org/pansite-ensembl-87',
|
|
188
228
|
grameneData: 'https://data.gramene.org/oryza_v5',
|
|
189
229
|
targetTaxonId: 3702,
|
|
190
|
-
alertText: 'Rice site'
|
|
191
|
-
|
|
230
|
+
alertText: 'Rice site',
|
|
231
|
+
details: {
|
|
232
|
+
sequences: true,
|
|
233
|
+
VEP: false,
|
|
234
|
+
location: true,
|
|
235
|
+
expression: true,
|
|
236
|
+
homology: true,
|
|
237
|
+
pathways: true,
|
|
238
|
+
pubs: true,
|
|
239
|
+
xrefs: true
|
|
240
|
+
}
|
|
241
|
+
}
|
|
192
242
|
];
|
|
193
243
|
const initialState = Object.assign({helpIsOn:false}, panSites[subsitelut[subsite]]);
|
|
194
244
|
|
package/src/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<title>Gramene Search</title>
|
|
6
6
|
<script>
|
|
7
7
|
window.gramene = {};
|
|
8
|
-
gramene.defaultServer = 'https://data.gramene.org/
|
|
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>
|
package/src/sorghum.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<title>Gramene Search</title>
|
|
6
6
|
<script>
|
|
7
7
|
window.gramene = {};
|
|
8
|
-
gramene.defaultServer = 'https://data.sorghumbase.org/
|
|
8
|
+
gramene.defaultServer = 'https://data.sorghumbase.org/sorghum_v7/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>
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
}
|
|
39
39
|
</script>
|
|
40
40
|
</body>
|
|
41
|
-
</html>
|
|
41
|
+
</html>
|