gramene-search 1.6.9 → 1.6.10
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/7b8e4611c0f03524-AssetGraph-0 +0 -0
- package/.parcel-cache/adb9e64d5da6fbba-AssetGraph-0 +0 -0
- package/.parcel-cache/d48c91545c145068-BundleGraph-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-524f09471ce7017b-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-524f09471ce7017b-0 +0 -0
- package/.parcel-cache/snapshot-369948a06d23ec44.txt +2 -2
- package/.parcel-cache/snapshot-524f09471ce7017b.txt +2 -2
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/results/details/VEP.js +14 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gramene-search",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"description": "search wrapper for gramene",
|
|
5
5
|
"source": "src/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"author": "Andrew Olson",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@fortawesome/fontawesome-free": "^6.6.0",
|
|
25
26
|
"ag-grid-community": "^31.1.1",
|
|
26
27
|
"ag-grid-react": "^31.0.3",
|
|
27
28
|
"axios": "^1.6.8",
|
|
@@ -5,6 +5,7 @@ import { AgGridReact } from "ag-grid-react";
|
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
import "ag-grid-community/styles/ag-grid.css";
|
|
7
7
|
import "ag-grid-community/styles/ag-theme-quartz.css";
|
|
8
|
+
import '@fortawesome/fontawesome-free/css/all.min.css';
|
|
8
9
|
import "./VEP.css";
|
|
9
10
|
|
|
10
11
|
const ggURL = {
|
|
@@ -151,7 +152,7 @@ const GridWithGroups = ({groups,gene_id}) => {
|
|
|
151
152
|
|
|
152
153
|
// Define columns with a custom renderer for the summary rows
|
|
153
154
|
const columnDefs = [
|
|
154
|
-
{ field: 'pop', headerName: 'Study', flex: 1,
|
|
155
|
+
{ field: 'pop', headerName: 'Study/Population', flex: 1,
|
|
155
156
|
cellRenderer: (params) => {
|
|
156
157
|
if (params.data.summary || params.data.tally === 1) {
|
|
157
158
|
return params.value;
|
|
@@ -176,6 +177,14 @@ const GridWithGroups = ({groups,gene_id}) => {
|
|
|
176
177
|
}
|
|
177
178
|
},
|
|
178
179
|
{ field: 'accession', headerName: 'Order Germplasm', flex: 1,
|
|
180
|
+
headerComponent: (props) => {
|
|
181
|
+
return (
|
|
182
|
+
<div style={{display: 'flex', alignItems: 'center'}}>
|
|
183
|
+
<i className="fas fa-shopping-cart"></i>
|
|
184
|
+
<span>{props.displayName}</span>
|
|
185
|
+
</div>
|
|
186
|
+
);
|
|
187
|
+
}, // Use the custom header with the shopping cart icon
|
|
179
188
|
cellRenderer: (params) => {
|
|
180
189
|
if (params.value) {
|
|
181
190
|
return <AccessionLink germplasm={params.value.germplasm} gene_id={gene_id} />;
|
|
@@ -192,14 +201,14 @@ const GridWithGroups = ({groups,gene_id}) => {
|
|
|
192
201
|
return null;
|
|
193
202
|
}
|
|
194
203
|
},
|
|
195
|
-
{ field: 'synonym', headerName: 'Synonym',
|
|
204
|
+
{ field: 'synonym', headerName: 'Synonym', filter:false, sortable:false, flex: 1, cellRenderer: (params) => {
|
|
196
205
|
console.log(params.data);
|
|
197
206
|
if (params.data.accession) {
|
|
198
207
|
return params.data.accession.germplasm.ens_id
|
|
199
208
|
}
|
|
200
209
|
return null;
|
|
201
210
|
}},
|
|
202
|
-
{ field: 'search', headerName: 'All LOF Genes', flex: 1,
|
|
211
|
+
{ field: 'search', headerName: 'All LOF Genes', sortable:false, filter:false, flex: 1,
|
|
203
212
|
cellRenderer: (params) => {
|
|
204
213
|
if (params.data.accession) {
|
|
205
214
|
const currentURL = new URL(window.location.href);
|
|
@@ -219,7 +228,8 @@ const GridWithGroups = ({groups,gene_id}) => {
|
|
|
219
228
|
];
|
|
220
229
|
|
|
221
230
|
const defaultColDef = {
|
|
222
|
-
sortable:
|
|
231
|
+
sortable: true,
|
|
232
|
+
filter: "agTextColumnFilter",
|
|
223
233
|
cellStyle: (params) => {
|
|
224
234
|
if (params.data.summary) {
|
|
225
235
|
return {cursor: 'pointer'};
|