@sjcrh/proteinpaint-server 2.132.0 → 2.132.1-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/package.json +3 -3
- package/routes/gdc.grin2.run.js +10 -3
- package/routes/termdb.categories.js +1 -0
- package/src/app.js +48 -160
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.132.0",
|
|
3
|
+
"version": "2.132.1-0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
|
|
6
6
|
"main": "src/app.js",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"@sjcrh/augen": "2.121.0",
|
|
64
64
|
"@sjcrh/proteinpaint-python": "2.118.0",
|
|
65
65
|
"@sjcrh/proteinpaint-r": "2.130.0",
|
|
66
|
-
"@sjcrh/proteinpaint-rust": "2.132.0",
|
|
66
|
+
"@sjcrh/proteinpaint-rust": "2.132.1-0",
|
|
67
67
|
"@sjcrh/proteinpaint-shared": "2.132.0",
|
|
68
|
-
"@sjcrh/proteinpaint-types": "2.132.0",
|
|
68
|
+
"@sjcrh/proteinpaint-types": "2.132.1-0",
|
|
69
69
|
"@types/express": "^5.0.0",
|
|
70
70
|
"@types/express-session": "^1.18.1",
|
|
71
71
|
"better-sqlite3": "^9.4.1",
|
package/routes/gdc.grin2.run.js
CHANGED
|
@@ -153,10 +153,11 @@ function init({ genomes }) {
|
|
|
153
153
|
// The mutation string from Rust
|
|
154
154
|
});
|
|
155
155
|
console.log("[GRIN2] Executing R script...");
|
|
156
|
-
const
|
|
156
|
+
const grin2AnalysisStart = Date.now();
|
|
157
157
|
const rResult = await run_R("gdcGRIN2.R", rInput, []);
|
|
158
158
|
console.log("[GRIN2] R execution completed");
|
|
159
|
-
|
|
159
|
+
const grin2AnalysisTime = formatElapsedTime(Date.now() - grin2AnalysisStart);
|
|
160
|
+
console.log(`[GRIN2] Rust processing took ${grin2AnalysisTime}`);
|
|
160
161
|
let resultData;
|
|
161
162
|
try {
|
|
162
163
|
resultData = JSON.parse(rResult);
|
|
@@ -164,12 +165,18 @@ function init({ genomes }) {
|
|
|
164
165
|
const pngImg = resultData.png[0];
|
|
165
166
|
const topGeneTable = resultData.topGeneTable || null;
|
|
166
167
|
const analysisStats = parsedRustResult.summary || {};
|
|
167
|
-
|
|
168
|
+
const totalProcessTime = formatElapsedTime(Date.now() - downloadStartTime);
|
|
169
|
+
console.log("[GRIN2] Total GRIN2 processing time:", totalProcessTime);
|
|
168
170
|
return res.json({
|
|
169
171
|
pngImg,
|
|
170
172
|
topGeneTable,
|
|
171
173
|
rustResult: parsedRustResult,
|
|
172
174
|
analysisStats,
|
|
175
|
+
timing: {
|
|
176
|
+
rustProcessingTime: downloadTime,
|
|
177
|
+
grin2ProcessingTime: grin2AnalysisTime,
|
|
178
|
+
totalTime: totalProcessTime
|
|
179
|
+
},
|
|
173
180
|
status: "success"
|
|
174
181
|
});
|
|
175
182
|
} catch (parseError) {
|