-
Notifications
You must be signed in to change notification settings - Fork 0
Add RMSE of exponential and linear model fits to supplemental figure #30
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
Conversation
…l and linear fits
chantelleleveille
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIce! I like it :) very clear!
cfrick13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are some changes that would be good to make before this gets merged.
- I'd like to see the
local_growth_worklfowdirectly call the function used to get the function fits instead of recomputing it. - I'd like to see
global_dataset_filteringonly callfit_tracks_to_modelinstead of the olderfit_tracks_time_powerlaw.
I think these changes will keep the code cleaner and make it easier for any adjustments to these workflows to propagate without need for copying.
nuc_morph_analysis/lib/preprocessing/global_dataset_filtering.py
Outdated
Show resolved
Hide resolved
@cfrick13 I'm confused about this comment. In line 73 its not doing a new fit. In lines 55-57 before that its pulling the values out from the dataframe for the parameters that were already calculated during the during the |
|
Just to clarify what I meant originally--I was pointing out that (see image below) the power law fit (
|
cfrick13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
OOOOOOOOOH yes I totally misunderstood this. Followed up with Chris in person - I think returning the z from the add_growth_features function would also redo the fitting so the actual best thing to do would be to create a new track-trimming helper function that both the local_growth_workflow and add_growth_features function but since this is only used twice I am going to consider it okay for now. Chris and I agreed that it is "good enough" to leave as is but if I find that I end up reusing it again I should definitely go back and make a shared helper function. Thus leaving a note to document that decision here! |




Previously the supplemental figure for our local growth analysis showed the RMSE of the power law fit and had a benchmark line for the segmentation error. This update adds distributions for the RMSEs of exponential and linear fits as well.
To do this, some older functions that expected exact column names because only one fit was being used needed to be made bulkier to be more flexible to iterate through multiple models.
New:
RMSE_linearityfit_volume_distribution_density.pdf
Old:
RMSE_linearityfit_volume_distribution_density.pdf