Skip to content

Commit

Permalink
fixed an edge case in the probabilistic modeling of spatial correlati…
Browse files Browse the repository at this point in the history
…ons that may occur in cases of small numbers of cells.
  • Loading branch information
Sheintuch committed Aug 20, 2024
1 parent 09e2f84 commit 5cce2b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CellReg/compute_spatial_correlations_model.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@

% finding the intersection between same cells and different cells:
index_range_of_intersection=find(spatial_correlations_model_same_cells>minimal_p_same_threshold*max(spatial_correlations_model_same_cells));
index_range_of_intersection(end)=[];
if ~isempty(intersect(index_range_of_intersection,number_of_bins))
index_range_of_intersection=setdiff(index_range_of_intersection,number_of_bins);
end
if ~isnan(p)
[~,index_of_intersection]=min(abs(PIsame*spatial_correlations_model_same_cells(index_range_of_intersection)-(1-PIsame)*spatial_correlations_model_different_cells(index_range_of_intersection)));
else
Expand Down
Binary file modified GUI/CellReg_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ in Ca2+ imaging data. The package includes a GUI that supports the entire regist
For more information contact [email protected] or join our [slack channel](https://cellreg.slack.com).

## Setting up the repository
We encourage the use of official versions (e.g., v1.5.8) for easier debugging processes. Switch to the releases tab on GitHub and checkout the latest version.
We encourage the use of official versions (e.g., v1.5.9) for easier debugging processes. Switch to the releases tab on GitHub and checkout the latest version.

1. Cloning:
`git clone https://github.com/zivlab/CellReg.git`
2. Checkout version:
`git checkout v<major>.<minor>.<bugfix> (e.g., v1.5.8)`
`git checkout v<major>.<minor>.<bugfix> (e.g., v1.5.9)`
3. Run `CellReg_setup.m`

*CellReg version v1.5.5 includes a fix to an important issue with FOV alignment that was introduced into CellReg in version update v1.5.0 on March 2022.*
Expand Down

0 comments on commit 5cce2b2

Please sign in to comment.