Skip to content
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

Add more notebooks and plots for pub #21

Merged
merged 59 commits into from
Jul 31, 2024
Merged

Conversation

lanery
Copy link
Collaborator

@lanery lanery commented Jul 23, 2024

This PR adds additional notebooks and plots to accompany the forthcoming pub. Now also makes use of arcadia_pycolor!

Major additions

  • notebooks/3_motility-analysis-in-pools.ipynb
  • notebooks/4_compare-motility-in-pools-vs-wells.ipynb
  • functionality in utils.py for annotating statistical significance in plots

Minor additions/changes

  • refactor substrate to vessel_type
  • update README.md (still needs more updating in the future)
  • added svg files of plots that are figures in the pub to results/
  • deleted plotting_pools.py

Aside: commit history seems weird -- is that because of rebase?

PR checklist

  • Describe the changes you've made.
  • If you've added new software dependencies, make sure that those dependencies are included in the appropriate conda environments.
  • If you've added new functionality, make sure that the documentation is updated accordingly.

lanery added 30 commits June 10, 2024 11:29
add units to table and reformat a few cells.
subset of metrics for bivariate distributions
- add documentation
- move experimental parameters to ../data/experimental_parameters.json
- remove superfluous plot
- rename notebook 2 based off Keith's suggestion from code review on #18
- surprising (to me at least) that switching upper case to lower case does not get flagged as a change so adding a `_` to make the switch to lower case for notebook 1
- also add placeholder doi link for pub
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@lanery lanery requested a review from keithchev July 23, 2024 16:33
lanery added 10 commits July 24, 2024 11:54
Bit of clean up in light of Dave's feedback on the pub. Removed what would have been Fig 6 (redundant) and updated documentation to match other notebooks.
Correct ylabel and take stabs at linting issue
Make use of functionality in `stats_testing` to clean up notebook
Make use of functionality in `stats_testing` to clean up notebook
caught linting issue before it caught me!
Remove superfluous catch warnings.
remove grid lines
Copy link
Member

@keithchev keithchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! The annotation function is really nice (I actually assumed at first it was some built-in function in seaborn that I'd never seen!). It could be worth pulling that into a utility function in arcadia-pycolor at some point, though I could imagine it might be tricky to get it work robustly for many different data and plots types...

envs/dev.yml Show resolved Hide resolved
src/chlamytracker/stats_testing.py Outdated Show resolved Hide resolved
src/chlamytracker/stats_testing.py Outdated Show resolved Hide resolved
src/chlamytracker/stats_testing.py Outdated Show resolved Hide resolved
src/chlamytracker/stats_testing.py Outdated Show resolved Hide resolved
src/chlamytracker/stats_testing.py Show resolved Hide resolved
src/chlamytracker/stats_testing.py Outdated Show resolved Hide resolved
@keithchev
Copy link
Member

keithchev commented Jul 26, 2024

Aside: commit history seems weird -- is that because of rebase?

I'm not sure how weird "weird" is but if it's truly super messed up somehow you could 1) rebase again and squash the messed up commits or 2) squash-merge the PR (which collapses the entire PR into a single commit to main).

@lanery
Copy link
Collaborator Author

lanery commented Jul 31, 2024

Re: stats annotations on plots
There's a fairly large effort towards an all-encompassing stats annotation package for seaborn + matplotlib. Unfortunately, development isn't super active any longer.

To your point about getting it to work robustly, I fully agree and am kind of hesitant to dedicate any more time to it at the moment...

@keithchev
Copy link
Member

Re: stats annotations on plots There's a fairly large effort towards an all-encompassing stats annotation package for seaborn + matplotlib. Unfortunately, development isn't super active any longer.

To your point about getting it to work robustly, I fully agree and am kind of hesitant to dedicate any more time to it at the moment...

Interesting. That's a bummer. Though I kinda get it - it seems like the kind of thing that's both finicky/annoying to maintain and is also such a niche that it'll never be super widely used. In any case, agree that it's not something that we should spend a ton of time on.

Add more documentation to notebooks 3 and 4.
Combine finding annotation coordinates for both orientations based on Keith's refactoring.
Miscellaneous refactoring and cleanup of `stats_testing.py`.
@lanery lanery merged commit 124aab5 into main Jul 31, 2024
1 check passed
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.

2 participants