gramene-search 1.2.69 → 1.2.71
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/17e9e143fcf5b59f +0 -0
- package/.parcel-cache/182d3536a86f8a99 +0 -0
- package/.parcel-cache/1a995a2728ab7c7c +0 -0
- package/.parcel-cache/2126881b633272fa.txt +2 -2
- package/.parcel-cache/2e66a6362611aea3 +0 -0
- package/.parcel-cache/37c075a090d2565c +0 -0
- package/.parcel-cache/4014ba3cfd6d6af5 +0 -0
- package/.parcel-cache/40cb8a4fff87878d +0 -0
- package/.parcel-cache/425346ba6a54d932 +0 -0
- package/.parcel-cache/582ac168061284ec +0 -0
- package/.parcel-cache/58e6cdaa648addaa +0 -0
- package/.parcel-cache/5b011f2f17a4ef9a +0 -0
- package/.parcel-cache/5f791e46dc5128e7 +0 -0
- package/.parcel-cache/65680aa75a27f755 +0 -0
- package/.parcel-cache/75bd0e526cad8639.txt +2 -0
- package/.parcel-cache/878e3ffbad677982 +0 -0
- package/.parcel-cache/888719e07a5dc53d +0 -0
- package/.parcel-cache/99f79b8f67c3938c +0 -0
- package/.parcel-cache/9eddc51e1d199de2 +0 -0
- package/.parcel-cache/a1c9060289b9a9e3 +0 -0
- package/.parcel-cache/a6c49560dea3583b +0 -0
- package/.parcel-cache/af6e8df7da4e4cdf +0 -0
- package/.parcel-cache/afe9f26fc0492b9a +0 -0
- package/.parcel-cache/b5671e06624f773b +0 -0
- package/.parcel-cache/b7855bf955616e1f +0 -0
- package/.parcel-cache/bdcd06dcc8b23b11 +0 -0
- package/.parcel-cache/cdecf11601322051 +0 -0
- package/.parcel-cache/d60e419ac6d05e40 +0 -0
- package/.parcel-cache/d8d36c1ea9c8d411 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/e6d16635757cf0cb +0 -0
- package/.parcel-cache/f09b529f4e2ea91e +0 -0
- package/.parcel-cache/f8f45c1655f48536 +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/dist/android-chrome-192x192.4d149c27.png +0 -0
- package/dist/apple-touch-icon-114x114.27e956ae.png +0 -0
- package/dist/apple-touch-icon-120x120.b209ed9f.png +0 -0
- package/dist/apple-touch-icon-144x144.9f8e2136.png +0 -0
- package/dist/apple-touch-icon-152x152.b6107a9b.png +0 -0
- package/dist/apple-touch-icon-180x180.58fbcc65.png +0 -0
- package/dist/apple-touch-icon-57x57.f670c755.png +0 -0
- package/dist/apple-touch-icon-60x60.3fbc15ae.png +0 -0
- package/dist/apple-touch-icon-72x72.a0fd991d.png +0 -0
- package/dist/apple-touch-icon-76x76.437b43b5.png +0 -0
- package/dist/favicon-16x16.4dd6b101.png +0 -0
- package/dist/favicon-32x32.a0d53b79.png +0 -0
- package/dist/favicon-96x96.6cd9b68e.png +0 -0
- package/dist/genetree.d75946eb.png +0 -0
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +29 -6
- package/dist/index.js.map +1 -1
- package/dist/results.a8da7555.png +0 -0
- package/dist/sorghum.250fb7b9.js +15812 -0
- package/dist/sorghum.250fb7b9.js.map +1 -0
- package/dist/sorghum.2c55063b.css +26794 -0
- package/dist/sorghum.2c55063b.css.map +1 -0
- package/dist/sorghum.b34cb912.js +293195 -0
- package/dist/sorghum.b34cb912.js.map +1 -0
- package/dist/sorghum.html +39 -0
- package/dist/suggestions.099b7c0e.png +0 -0
- package/package.json +1 -1
- package/src/components/results/GeneList.js +3 -2
- package/src/components/results/details/Location.js +1 -1
- package/src/components/results/details/Publications.js +12 -5
- package/src/components/results/genes.css +9 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Gramene Search</title>
|
|
6
|
+
<link rel="stylesheet" href="/sorghum.2c55063b.css"><script>window.gramene = {};
|
|
7
|
+
gramene.defaultServer = "https://data.sorghumbase.org/sorghum_v6/swagger";
|
|
8
|
+
|
|
9
|
+
</script>
|
|
10
|
+
<script async="" src="/sorghum.250fb7b9.js"></script>
|
|
11
|
+
<script async="" src="https://plantreactome.gramene.org/DiagramJs/diagram/diagram.nocache.js"></script>
|
|
12
|
+
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.f670c755.png">
|
|
13
|
+
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.3fbc15ae.png">
|
|
14
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.a0fd991d.png">
|
|
15
|
+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.437b43b5.png">
|
|
16
|
+
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.27e956ae.png">
|
|
17
|
+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.b209ed9f.png">
|
|
18
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.9f8e2136.png">
|
|
19
|
+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.b6107a9b.png">
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.58fbcc65.png">
|
|
21
|
+
<link rel="icon" type="image/png" href="/favicon-32x32.a0d53b79.png" sizes="32x32">
|
|
22
|
+
<link rel="icon" type="image/png" href="/android-chrome-192x192.4d149c27.png" sizes="192x192">
|
|
23
|
+
<link rel="icon" type="image/png" href="/favicon-96x96.6cd9b68e.png" sizes="96x96">
|
|
24
|
+
<link rel="icon" type="image/png" href="/favicon-16x16.4dd6b101.png" sizes="16x16">
|
|
25
|
+
</head>
|
|
26
|
+
<body>
|
|
27
|
+
<div id="demo"></div>
|
|
28
|
+
<script src="/sorghum.b34cb912.js" defer=""></script>
|
|
29
|
+
<script>document.addEventListener("keyup", possiblyFocus);
|
|
30
|
+
function possiblyFocus(e) {
|
|
31
|
+
if (e.key === "/") {
|
|
32
|
+
var el = document.getElementById("search-input");
|
|
33
|
+
if (el) el.focus();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
</script>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|
|
@@ -159,7 +159,7 @@ class Location extends React.Component {
|
|
|
159
159
|
{name: 'Ensembl Browser', url: `${this.props.ensemblURL}/${gene.system_name}/Gene/Summary?g=${gene._id}`}
|
|
160
160
|
];
|
|
161
161
|
if (gene.annotations.taxonomy.ancestors.includes(4557))
|
|
162
|
-
links.push({name: 'Phytozome', url: `https://phytozome.jgi.doe.gov/
|
|
162
|
+
links.push({name: 'Phytozome', url: `https://phytozome-next.jgi.doe.gov/report/gene/Sbicolor_v5_1/${jgiify(gene._id)}`})
|
|
163
163
|
if (gene.taxon_id === 3702)
|
|
164
164
|
links.push(
|
|
165
165
|
{name: 'tair', url: `https://www.arabidopsis.org/servlets/TairObject?name=${gene._id}&type=locus`},
|
|
@@ -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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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">
|
|
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;
|