gramene-search 1.6.2 → 1.6.4
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/12c2ac26a83b0e33 +0 -0
- package/.parcel-cache/13241643a33ce8ed +0 -0
- package/.parcel-cache/3d581284675046c6 +0 -0
- package/.parcel-cache/43baead379789480 +0 -0
- package/.parcel-cache/4987902b3f9787cc-BundleGraph-0 +0 -0
- package/.parcel-cache/56ba3face9690f8b-BundleGraph-0 +0 -0
- package/.parcel-cache/5b4f2c99ec04bf49-AssetGraph-0 +0 -0
- package/.parcel-cache/70f1f7555dda250d-AssetGraph-0 +0 -0
- package/.parcel-cache/75917750f148582a +0 -0
- package/.parcel-cache/7b8e4611c0f03524-AssetGraph-0 +0 -0
- package/.parcel-cache/7c54988bfe0947ac +0 -0
- package/.parcel-cache/7f973df67467291d-AssetGraph-0 +0 -0
- package/.parcel-cache/8882a8f68ea22235 +0 -0
- package/.parcel-cache/9ed3c0dffa18099e +0 -0
- package/.parcel-cache/adb9e64d5da6fbba-AssetGraph-0 +0 -0
- package/.parcel-cache/aea3b3f00e39e7d7 +0 -0
- package/.parcel-cache/b4a7d80971a57169-BundleGraph-0 +0 -0
- package/.parcel-cache/baeab7b2fd8ed441 +0 -0
- package/.parcel-cache/c0a6f93df69d20be +0 -0
- package/.parcel-cache/cadf66668af753d0 +0 -0
- package/.parcel-cache/d3d5a0c046bd2fee +0 -0
- package/.parcel-cache/d48c91545c145068-BundleGraph-0 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/e382ef13c33de3db-AssetGraph-0 +0 -0
- package/.parcel-cache/e80b459410ade898 +0 -0
- package/.parcel-cache/ef56c415264d359e +0 -0
- package/.parcel-cache/f1471b5a88ba6716 +0 -0
- package/.parcel-cache/fa1c0991a1e3d246 +0 -0
- package/.parcel-cache/fa7f3db05903caf2 +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/requestGraph-2b56c4c5947cf88b-0 +0 -0
- package/.parcel-cache/requestGraph-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/requestGraph-524f09471ce7017b-0 +0 -0
- package/.parcel-cache/requestGraph-62897db56b555037-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-2b56c4c5947cf88b-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/requestGraph-nodes-0-62897db56b555037-0 +0 -0
- package/.parcel-cache/snapshot-2b56c4c5947cf88b.txt +2 -0
- package/.parcel-cache/snapshot-369948a06d23ec44.txt +2 -2
- package/.parcel-cache/snapshot-524f09471ce7017b.txt +2 -0
- package/.parcel-cache/snapshot-62897db56b555037.txt +2 -0
- package/dist/BAR-logo.fb7d0f73.png +0 -0
- package/dist/Study.5ff9518c.js +137 -0
- package/dist/Study.5ff9518c.js.map +1 -0
- package/dist/expression-atlas-logo.87d25571.png +0 -0
- package/dist/genetree.145467e3.png +0 -0
- package/dist/index.css +1555 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +5673 -0
- package/dist/index.js.map +1 -0
- package/dist/results.e437a98f.png +0 -0
- package/dist/suggestions.7b2830b6.png +0 -0
- package/package.json +2 -2
- package/src/components/results/GeneList.js +1 -1
- package/src/demo.js +3 -2
|
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
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
143882109
|
|
2
|
+
1728587443985155000
|
|
Binary file
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
var $eTR7Q$reactjsxruntime = require("react/jsx-runtime");
|
|
2
|
+
var $eTR7Q$react = require("react");
|
|
3
|
+
var $eTR7Q$reduxbundlerreact = require("redux-bundler-react");
|
|
4
|
+
var $eTR7Q$aggridreact = require("ag-grid-react");
|
|
5
|
+
require("ag-grid-community/styles/ag-grid.css");
|
|
6
|
+
require("ag-grid-community/styles/ag-theme-quartz.css");
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
function $parcel$defineInteropFlag(a) {
|
|
10
|
+
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function $parcel$export(e, n, v, s) {
|
|
14
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var $parcel$global = globalThis;
|
|
18
|
+
var parcelRequire = $parcel$global["parcelRequire7a41"];
|
|
19
|
+
var parcelRegister = parcelRequire.register;
|
|
20
|
+
parcelRegister("7zuJ6", function(module, exports) {
|
|
21
|
+
|
|
22
|
+
$parcel$defineInteropFlag(module.exports);
|
|
23
|
+
|
|
24
|
+
$parcel$export(module.exports, "default", () => $5833a2eeefc77457$export$2e2bcd8739ae039);
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
const $5833a2eeefc77457$var$metaRenderer = (params)=>{
|
|
32
|
+
if (params.value.ontology) return /*#__PURE__*/ (0, $eTR7Q$reactjsxruntime.jsx)("a", {
|
|
33
|
+
href: `http://purl.obolibrary.org/obo/${params.value.id.replace(":", "_")}`,
|
|
34
|
+
target: "_blank",
|
|
35
|
+
children: params.value.label
|
|
36
|
+
});
|
|
37
|
+
return params.value.label;
|
|
38
|
+
};
|
|
39
|
+
const $5833a2eeefc77457$var$sampleRenderer = (params)=>{
|
|
40
|
+
const sampleMeta = params.value;
|
|
41
|
+
return JSON.stringify(sampleMeta, null, 2);
|
|
42
|
+
};
|
|
43
|
+
const $5833a2eeefc77457$var$Study = (props)=>{
|
|
44
|
+
let samples = props.expressionSamples[props.id];
|
|
45
|
+
let sampleMetadata = [];
|
|
46
|
+
let metadataFields = [
|
|
47
|
+
{
|
|
48
|
+
field: "sampleId",
|
|
49
|
+
cellRenderer: $5833a2eeefc77457$var$sampleRenderer
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
let isFactor = {};
|
|
53
|
+
samples.forEach((sample, idx)=>{
|
|
54
|
+
if (idx === 0) {
|
|
55
|
+
let factors = {
|
|
56
|
+
headerName: "Experimental Variables",
|
|
57
|
+
children: []
|
|
58
|
+
};
|
|
59
|
+
sample.factor.forEach((factor)=>{
|
|
60
|
+
factors.children.push({
|
|
61
|
+
field: factor.type,
|
|
62
|
+
cellRenderer: $5833a2eeefc77457$var$metaRenderer
|
|
63
|
+
});
|
|
64
|
+
isFactor[factor.type] = true;
|
|
65
|
+
});
|
|
66
|
+
metadataFields.push(factors);
|
|
67
|
+
let characteristics = {
|
|
68
|
+
headerName: "Sample Characteristics",
|
|
69
|
+
children: []
|
|
70
|
+
};
|
|
71
|
+
sample.characteristic.forEach((ch)=>{
|
|
72
|
+
if (!isFactor[ch.type]) characteristics.children.push({
|
|
73
|
+
field: ch.type,
|
|
74
|
+
cellRenderer: $5833a2eeefc77457$var$metaRenderer
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
metadataFields.push(characteristics);
|
|
78
|
+
}
|
|
79
|
+
let s_info = {
|
|
80
|
+
sampleId: sample
|
|
81
|
+
};
|
|
82
|
+
sample.factor.forEach((factor)=>{
|
|
83
|
+
s_info[factor.type] = {
|
|
84
|
+
label: factor.label
|
|
85
|
+
};
|
|
86
|
+
if (factor.ontology) {
|
|
87
|
+
s_info[factor.type]["ontology"] = factor.ontology;
|
|
88
|
+
s_info[factor.type]["id"] = factor.id;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
sample.characteristic.forEach((ch)=>{
|
|
92
|
+
s_info[ch.type] = {
|
|
93
|
+
label: ch.label
|
|
94
|
+
};
|
|
95
|
+
if (ch.ontology) {
|
|
96
|
+
s_info[ch.type]["ontology"] = ch.ontology;
|
|
97
|
+
s_info[ch.type]["id"] = ch.id;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
sampleMetadata.push(s_info);
|
|
101
|
+
});
|
|
102
|
+
const [rowData, setRowData] = (0, $eTR7Q$react.useState)(sampleMetadata);
|
|
103
|
+
const [colDefs, setColDefs] = (0, $eTR7Q$react.useState)(metadataFields);
|
|
104
|
+
const defaultColDef = (0, $eTR7Q$react.useMemo)(()=>{
|
|
105
|
+
return {
|
|
106
|
+
filter: true
|
|
107
|
+
};
|
|
108
|
+
}, []);
|
|
109
|
+
return /*#__PURE__*/ (0, $eTR7Q$reactjsxruntime.jsxs)("div", {
|
|
110
|
+
children: [
|
|
111
|
+
/*#__PURE__*/ (0, $eTR7Q$reactjsxruntime.jsx)("div", {
|
|
112
|
+
className: "ag-theme-quartz",
|
|
113
|
+
style: {
|
|
114
|
+
height: `${44 * (samples.length + 2)}px`
|
|
115
|
+
},
|
|
116
|
+
children: /*#__PURE__*/ (0, $eTR7Q$reactjsxruntime.jsx)((0, $eTR7Q$aggridreact.AgGridReact), {
|
|
117
|
+
rowData: rowData,
|
|
118
|
+
columnDefs: colDefs,
|
|
119
|
+
defaultColDef: defaultColDef
|
|
120
|
+
})
|
|
121
|
+
}),
|
|
122
|
+
/*#__PURE__*/ (0, $eTR7Q$reactjsxruntime.jsxs)("a", {
|
|
123
|
+
href: `https://www.ebi.ac.uk/gxa/experiments/${props.id}`,
|
|
124
|
+
children: [
|
|
125
|
+
"EBI Atlas Experiment: ",
|
|
126
|
+
props.id
|
|
127
|
+
]
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
var $5833a2eeefc77457$export$2e2bcd8739ae039 = (0, $eTR7Q$reduxbundlerreact.connect)("selectExpressionSamples", "doToggleExpressionSample", $5833a2eeefc77457$var$Study);
|
|
133
|
+
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
//# sourceMappingURL=Study.5ff9518c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,qCAAe,CAAA;IACnB,IAAI,OAAO,KAAK,CAAC,QAAQ,EACvB,qBAAO,gCAAC;QAAE,MAAM,CAAC,+BAA+B,EAAE,OAAO,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAI,KAAK,CAAC;QAAE,QAAO;kBAAU,OAAO,KAAK,CAAC,KAAK;;IAE3H,OAAO,OAAO,KAAK,CAAC,KAAK;AAC3B;AACA,MAAM,uCAAiB,CAAA;IACrB,MAAM,aAAa,OAAO,KAAK;IAC/B,OAAO,KAAK,SAAS,CAAC,YAAW,MAAK;AACxC;AACA,MAAM,8BAAQ,CAAA;IACZ,IAAI,UAAU,MAAM,iBAAiB,CAAC,MAAM,EAAE,CAAC;IAC/C,IAAI,iBAAiB,EAAE;IACvB,IAAI,iBAAiB;QAAC;YAAE,OAAO;YAAY,cAAc;QAAe;KAAE;IAC1E,IAAI,WAAS,CAAC;IACd,QAAQ,OAAO,CAAC,CAAC,QAAQ;QACvB,IAAI,QAAQ,GAAG;YACb,IAAI,UAAU;gBACZ,YAAY;gBACZ,UAAU,EAAE;YACd;YACA,OAAO,MAAM,CAAC,OAAO,CAAC,CAAA;gBACpB,QAAQ,QAAQ,CAAC,IAAI,CAAC;oBAAC,OAAO,OAAO,IAAI;oBAAE,cAA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E,iCAAC;;0BACC,gCAAC;gBAAI,WAAU;gBAAkB,OAAO;oBAAC,QAAQ,CAAC,EAAE,KAAM,CAAA,QAAQ,MAAM,GAAG,CAAA,EAAG,EAAE,CAAC;gBAAA;0BAC/E,cAAA,gCAAC,CAAA,GAAA,8BAAU;oBAAE,SAAS;oBAAS,YAAY;oBAAS,eAAe;;;0BAErE,iCAAC;gBAAE,MAAM,CAAC,sCAAsC,EAAE,MAAM,EAAE,CAAC,CAAC;;oBAAE;oBAAuB,MAAM,EAAE;;;;;AAGnG;IACA,2CAAe,CAAA,GAAA,gCAAM,EACnB,2BACA,4BACA","sources":["src/components/results/Study.js"],"sourcesContent":["import React, { useState, useMemo } from 'react'\nimport {connect} from \"redux-bundler-react\";\nimport { AgGridReact } from \"ag-grid-react\";\nimport \"ag-grid-community/styles/ag-grid.css\";\nimport \"ag-grid-community/styles/ag-theme-quartz.css\";\n\nconst metaRenderer = params => {\n if (params.value.ontology) {\n return <a href={`http://purl.obolibrary.org/obo/${params.value.id.replace(\":\",\"_\")}`} target='_blank'>{params.value.label}</a>\n }\n return params.value.label\n}\nconst sampleRenderer = params => {\n const sampleMeta = params.value;\n return JSON.stringify(sampleMeta,null,2);\n}\nconst Study = props => {\n let samples = props.expressionSamples[props.id];\n let sampleMetadata = [];\n let metadataFields = [{ field: \"sampleId\", cellRenderer: sampleRenderer }];\n let isFactor={};\n samples.forEach((sample, idx) => {\n if (idx === 0) {\n let factors = {\n headerName: 'Experimental Variables',\n children: []\n }\n sample.factor.forEach(factor => {\n factors.children.push({field: factor.type, cellRenderer: metaRenderer})\n isFactor[factor.type] = true;\n });\n metadataFields.push(factors);\n let characteristics = {\n headerName: 'Sample Characteristics',\n children: []\n }\n sample.characteristic.forEach(ch => {\n if (!isFactor[ch.type]) {\n characteristics.children.push({field: ch.type, cellRenderer: metaRenderer})\n }\n });\n metadataFields.push(characteristics)\n }\n let s_info = {sampleId: sample}\n sample.factor.forEach(factor => {\n s_info[factor.type] = {label: factor.label};\n if (factor.ontology) {\n s_info[factor.type]['ontology'] = factor.ontology\n s_info[factor.type]['id'] = factor.id;\n }\n })\n sample.characteristic.forEach(ch => {\n s_info[ch.type] = {label: ch.label};\n if (ch.ontology) {\n s_info[ch.type]['ontology'] = ch.ontology\n s_info[ch.type]['id'] = ch.id;\n }\n })\n sampleMetadata.push(s_info)\n })\n const [rowData, setRowData] = useState(sampleMetadata);\n const [colDefs, setColDefs] = useState(metadataFields);\n const defaultColDef = useMemo(() => {\n return {\n filter: true\n }\n }, []);\n return (\n <div>\n <div className=\"ag-theme-quartz\" style={{height: `${44 * (samples.length + 2)}px`}}>\n <AgGridReact rowData={rowData} columnDefs={colDefs} defaultColDef={defaultColDef}/>\n </div>\n <a href={`https://www.ebi.ac.uk/gxa/experiments/${props.id}`}>EBI Atlas Experiment: {props.id}</a>\n </div>\n );\n};\nexport default connect(\n 'selectExpressionSamples',\n 'doToggleExpressionSample',\n Study);\n"],"names":[],"version":3,"file":"Study.5ff9518c.js.map"}
|
|
Binary file
|
|
Binary file
|