Skip to content

Conversation

@cfrick13
Copy link
Contributor

@cfrick13 cfrick13 commented Oct 14, 2024

main code update to see:
image

toymodel update:
image

watershed method illustration figure
image

filtering neighbors of mitotics figure
image

Updated density over time figure (after removing colony_depth as criteria in remove_uncaught_pseudo_cell_artifacts filter)
image

@cfrick13 cfrick13 marked this pull request as ready for review November 21, 2024 00:08
Copy link
Collaborator

@chantelleleveille chantelleleveille left a comment

Choose a reason for hiding this comment

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

Please fix loading the data from scratch! It is failing so it makes it hard to go through the code and test the workflows.

@cfrick13 cfrick13 requested a review from jcass11 November 22, 2024 22:35
@chantelleleveille chantelleleveille self-requested a review November 22, 2024 23:44
savename = f'{colony}_{track}_{TIMEPOINT}_{full_crop}_res{RESOLUTION_LEVEL}_{cmapstr}'
savepath = savedir / savename
print(f'Saved figure to {savepath}')
save_and_show_plot(str(savepath),
Copy link
Collaborator

Choose a reason for hiding this comment

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

The plots are getting cut off in the saved output. Maybe bbox_inches='tight' would fix it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they don't look cut off on my machine ...

watershed_validate.run_validation_and_plot(plot_everything=False)
from nuc_morph_analysis.analyses.density import effect_of_resolution_level
from nuc_morph_analysis.analyses.density import pseudocell_based_density_analysis
# this code runs all workflows in the density folder (not all of these are in the paper)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont think you have to say this now that we have the figure numbered workflow. But also it begs the question which ones are in the paper?

Maybe we simplify to:

Suggested change
# this code runs all workflows in the density folder (not all of these are in the paper)
# this code runs all workflows in the density folder

or maybe remove the run_all_density_workflows and folks can run them individually?

Not sure.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah with all the new files I'm left confused about where to find all the workflows I should run to test the code, but that points to a larger question of what plots and workflows are we adding that aren't in the paper and are we sure we want/need them? Have we fully edited out all the testing plots that don't really need to be preserved beyond the git history?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will delete this file and move others to a folder that specifies that they are useful extra code files

@cfrick13
Copy link
Contributor Author

cfrick13 commented Dec 5, 2024

Running tests now!
pdm run python run_all_manuscript_workflows.py --only figure_5_s9_s10_local_growth figure_3_s4_height_density figure_1_dataset

====== Successes ======
figure_1_dataset (428.1s) (43.9GB)
figure_3_s4_height_density (719.8s) (49.2GB)
figure_5_s9_s10_local_growth (385.6s) (39.6GB)
====== 3 succeeded ======

@cfrick13 cfrick13 added this pull request to the merge queue Dec 5, 2024
Merged via the queue into dev with commit c1936f7 Dec 5, 2024
1 check passed
@cfrick13 cfrick13 deleted the density_fig_updates branch December 5, 2024 19:13
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.

4 participants