-
Notifications
You must be signed in to change notification settings - Fork 0
Add scatterplots to C pages #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Update generation of cache file to include "incl_scatter" within the "roi_summary" part only for "ME", "LO" and "LOP". Uses the strict threshold service of 5% - either pre or post percentage of synapses must be >5% and there must be >50 synapses in the ROI to be included in the scatterplots.
Move selected marker on top of data
|
Yes, this is because the only OL cell type in "subset medium" is Tm3 which only has synapses within ME and LO. As mentioned above, we can extend the medium subset or makes an OL subset with more types so that you can see more points within the scatterplots and a scatterplot for LOP as well. |
|
Hmm, ok. I will look into this today. |
Now, any cell type with a single column occupied will have a marker in the scatterplot.
|
The scatterplot for Tm3 was not made for LOP because the number of synapses within LOP did not reach the I included this because we used the same thresholds in the paper. I have removed it from the last commit but we can put it back if we decide we want it. Now, all types with at least one column occupied in the ME, LO or LOP will be included in that region's scatterplot. |
|
Hi Frank! I think these changes should be incorporated in the most recent commits.
|
|
I added the scatter plots for L and R and did some layout changes. Let me know if you think they are improvements or if we should go back. |
|
Re
I added a "subset-medium-optic" test set, and there it looks much better. Maybe not worth addressing that point… |
|
I had noticed, that some cells had innervation in some ROI (e.g. C2 in LO), but the data still didn't show up in the plots. It turns out there was another thresholding in the code. Instead of just deleting it, I pulled it out to the config file (see |
Yes, I see your comment below this one as well. I think that's just a bug of only having one data point in the plot. I believe the 98th percentile value is used as the colour scale max and then the tick mark is changed to be ">cmax". I think if someone makes a single webpage and wants to look at these plots then they'll have the tooltip box information to help them understand the colour scale. |
Thanks for catching this. |
It would simplify the code and configuration if this wasn't a parameter and we just always show what's in the database… Let me know what you think. |





Fixes #78
Adds interactive scatterplots to the "C" pages of types with synapses within ME, LO or LOP.
The metrics are the mean of the values calculated individually for each optic lobe side (ME(R) and ME(L) etc.)
When the page loads, the marker that represents the given type should automatically be highlighted.
A marker will only be shown if that type has > 50 synapses (across all cells) and >5% of its total synapse number within that region. This is why some types have eyemap plots that are not empty for certain regions but they don't have a marker in the corresponding scatterplot.
The cell type's marker will remain "highlighted" as you hover over other markers within the plot, but will reduce back to normal size if hovered over.
One downside to how these plots are currently generated is that they will only be "complete" if pages for all types (or optic lobe types) have been generated (e.g. using
pixi run neuview generate-all).The plots will be made if you run
pixi run subset-mediumetc. However, the scatterplots will only have a few markers representing the cell types that have pages.