Added export button that exports CaDecon results as a .zip file conta… - #172
Draft
kaghi wants to merge 1 commit into
Draft
Added export button that exports CaDecon results as a .zip file conta…#172kaghi wants to merge 1 commit into
kaghi wants to merge 1 commit into
Conversation
…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*.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
i↔alphas[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.