Skip to content

Conversation

camisowers
Copy link
Contributor

@camisowers camisowers commented Mar 29, 2023

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?

Closes #963 and closes #964.

How did you implement your changes

Passed the cell_type_colarg into the appropriate functions, renamed the arg in create_neighborhood_matrix from cluster_name_col --> cell_type_col for consistency.
Edited visualize.draw_heatmap to save images without cropping, and heatmaps are saved by default now.

Previously, the output files were saved with the same name each time the notebook was run, unless you manually changed them to indicate counts vs freq or a different cell column. Now, the results are saved to a subfolder within the neighborhood_analysis directory, indicated by the parameters specified by the user (i.e. cell_meta_cluster_radius50_counts)
The produced cell table updated with kmeans clusters now saves in this new subfolder, rather than segmentation/cell_table.

Remaining issues
NA

@camisowers camisowers added the bug Something isn't working label Mar 29, 2023
@camisowers camisowers self-assigned this Mar 29, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@camisowers camisowers changed the title Spatial cell col Kmeans notebook fix Mar 29, 2023
@camisowers camisowers requested a review from srivarra March 29, 2023 21:48
Copy link
Contributor

@srivarra srivarra left a comment

Choose a reason for hiding this comment

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

LGTM!

@camisowers camisowers marked this pull request as ready for review March 29, 2023 21:55
@camisowers camisowers requested a review from ngreenwald March 29, 2023 21:55
@camisowers camisowers changed the title Kmeans notebook fix Kmeans notebook minor fixes Apr 3, 2023
@camisowers camisowers added this pull request to the merge queue Apr 3, 2023
Merged via the queue into main with commit 0d5c7f0 Apr 3, 2023
@camisowers camisowers deleted the spatial_cell_col branch April 3, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Draw heatmap doesn't save plots correctly Neighborhood analysis notebook doesn't pass correct cell column
2 participants