Skip to content

Added export button that exports CaDecon results as a .zip file conta… - #172

Draft
kaghi wants to merge 1 commit into
mat-file-readerfrom
cadecon-results-download
Draft

Added export button that exports CaDecon results as a .zip file conta…#172
kaghi wants to merge 1 commit into
mat-file-readerfrom
cadecon-results-download

Conversation

@kaghi

@kaghi kaghi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

the activity matrix is arranged s.t. it is a 2-d array of deconvolved per-cell activity (event counts)

A single 2-D array of deconvolved per-cell activity (event counts).
Each ascending cell index (i) is: row ialphas[i], baselines[i], pves[i]

Example JSON file with variables exported after download result.
json
{
"fs": 30,
"alphas": [1.02, 0.87, ...],
"baselines": [0.11, 0.09, ...],
"pves": [0.94, 0.88, ...],
"tau_rise": 0.08,
"tau_decay": 0.42,
"beta": 1.0,
"tau_rise_fast": 0.0,
"tau_decay_fast": 0.0,
"beta_fast": 0.0,
"residual": 0.013,
"h_free": [0.0, 0.31, 0.78, ...],
"num_iterations": 14,
"converged": true,
"converged_at_iteration": 11,
"schema_version": 1,
"export_date": "2026-07-26T18:22:04.531Z",
"field_descriptions": { "activity": "...", "alphas": "...", ... }
}
This requires the mat-reader.ts file from the mat-file-reader branch to work.

…ining two files:

activity traces (.npy, .npz, or .mat based on input file type)
JSON file with the values of multiple variables.
The export button is only usable once CaDecon is done running. .zip files are named *input_file_name-cadecon-results.zip*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant