@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 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",
@@ -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 rAnalysisTime = Date.now();
156
+ const grin2AnalysisStart = Date.now();
157
157
  const rResult = await run_R("gdcGRIN2.R", rInput, []);
158
158
  console.log("[GRIN2] R execution completed");
159
- console.log(`[GRIN2] R analysis took ${formatElapsedTime(Date.now() - rAnalysisTime)}`);
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
- console.log("[GRIN2] Total GRIN2 processing time:", formatElapsedTime(Date.now() - downloadStartTime));
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) {
@@ -41,6 +41,7 @@ async function trigger_getcategories(q, res, tdb, ds, genome) {
41
41
  const $id = q.tw.$id;
42
42
  const arg = {
43
43
  filter: q.filter,
44
+ filter0: q.filter0,
44
45
  terms: [q.tw],
45
46
  currentGeneNames: q.currentGeneNames,
46
47
  // optional, from mds3 mayAddGetCategoryArgs()