-
Notifications
You must be signed in to change notification settings - Fork 0
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
DEGA-106-Segmentation-Metrics #36
base: main
Are you sure you want to change the base?
Conversation
27e9e5a
to
95956a1
Compare
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.
Hi @jaspreetishar, great work! I had some minor comments that is focusing on readability, simplicity, and reproducibility of our codebase. Other than that, can share the data dir data/segmentation_metrics_data
so I can do a quick test of the QC notebook? Thanks!
As long as you change this line in the notebook:
to this to prevent a file existence error:
I tested, everything LGTM! Great job! ✅ |
I have made the changes - thanks so much for the helpful review!! |
Hi @cornhundred, the branch has been reviewed. If everything looks good on your end as well, could we go ahead and merge it? Thanks! |
Possibly rename "mixed_expression_calc" to something like "orthogonal_expression_calc". Also, add quantification to this method. Calculate proportion of cell-type-A cells that express cell-type-B genes above some threshold and vice versa. We can also sanity check that a cell expressing an orthogonal marker from a different cell type is actually neighboring a cell from the orthogonal cell type. |
src/celldega/qc/__init__.py
Outdated
segmentation_approach : str | ||
Description of the segmentation method used. | ||
|
||
subset_interval_y_x : tuple |
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.
@jaspreetishar we can drop the subset_interval_y_x from the docstring
src/celldega/qc/__init__.py
Outdated
dataset_name="Dataset1", | ||
segmentation_approach="MethodA", | ||
subset_interval_y_x=(0, 1000, 0, 1000), | ||
transform_file="path/to/transform.mat", |
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 do not think we need to transform transcripts or cell polygons to image coordinates for segmentation QC. We also need to have a version of the STP segmentation data in micron coordinates.
Adding a qc module that will contain a iST segmentation metrics method.