@sjcrh/proteinpaint-server 2.132.1-2 → 2.133.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 +4 -4
- package/routes/gdc.grin2.run.js +9 -7
- package/src/app.js +14 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.133.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",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@sjcrh/augen": "2.121.0",
|
|
64
|
-
"@sjcrh/proteinpaint-python": "2.
|
|
64
|
+
"@sjcrh/proteinpaint-python": "2.133.0",
|
|
65
65
|
"@sjcrh/proteinpaint-r": "2.130.0",
|
|
66
|
-
"@sjcrh/proteinpaint-rust": "2.
|
|
66
|
+
"@sjcrh/proteinpaint-rust": "2.133.0",
|
|
67
67
|
"@sjcrh/proteinpaint-shared": "2.132.1-2",
|
|
68
|
-
"@sjcrh/proteinpaint-types": "2.
|
|
68
|
+
"@sjcrh/proteinpaint-types": "2.133.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
|
@@ -154,8 +154,9 @@ function init({ genomes }) {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
console.log("[GRIN2] Rust execution completed");
|
|
157
|
-
const downloadTime =
|
|
158
|
-
|
|
157
|
+
const downloadTime = Date.now() - downloadStartTime;
|
|
158
|
+
const downloadTimeToPrint = formatElapsedTime(downloadTime);
|
|
159
|
+
console.log(`[GRIN2] Rust processing took ${downloadTimeToPrint}`);
|
|
159
160
|
const rustResult = parseJsonlOutput(rustOutput);
|
|
160
161
|
if (!rustResult) {
|
|
161
162
|
throw new Error("Failed to process MAF files: No result from Rust");
|
|
@@ -199,8 +200,9 @@ function init({ genomes }) {
|
|
|
199
200
|
}
|
|
200
201
|
console.log("[GRIN2] python execution completed");
|
|
201
202
|
console.log(`[GRIN2] Python stderr: ${pyResult.stderr}`);
|
|
202
|
-
const grin2AnalysisTime =
|
|
203
|
-
|
|
203
|
+
const grin2AnalysisTime = Date.now() - grin2AnalysisStart;
|
|
204
|
+
const grin2AnalysisTimeToPrint = formatElapsedTime(grin2AnalysisTime);
|
|
205
|
+
console.log(`[GRIN2] Python processing took ${grin2AnalysisTimeToPrint}`);
|
|
204
206
|
let resultData;
|
|
205
207
|
try {
|
|
206
208
|
resultData = JSON.parse(pyResult);
|
|
@@ -208,7 +210,7 @@ function init({ genomes }) {
|
|
|
208
210
|
const pngImg = resultData.png[0];
|
|
209
211
|
const topGeneTable = resultData.topGeneTable || null;
|
|
210
212
|
const analysisStats = parsedRustResult.summary || {};
|
|
211
|
-
const totalProcessTime = formatElapsedTime(
|
|
213
|
+
const totalProcessTime = formatElapsedTime(downloadTime + grin2AnalysisTime);
|
|
212
214
|
console.log("[GRIN2] Total GRIN2 processing time:", totalProcessTime);
|
|
213
215
|
return res.json({
|
|
214
216
|
pngImg,
|
|
@@ -216,8 +218,8 @@ function init({ genomes }) {
|
|
|
216
218
|
rustResult: parsedRustResult,
|
|
217
219
|
analysisStats,
|
|
218
220
|
timing: {
|
|
219
|
-
rustProcessingTime:
|
|
220
|
-
grin2ProcessingTime:
|
|
221
|
+
rustProcessingTime: downloadTimeToPrint,
|
|
222
|
+
grin2ProcessingTime: grin2AnalysisTimeToPrint,
|
|
221
223
|
totalTime: totalProcessTime
|
|
222
224
|
},
|
|
223
225
|
status: "success"
|