Calculate cell by cell cluster matrix with median distance to N nearest cells of cell cluster #941
Closed
1 of 3 tasks
Labels
design_doc
Detailed implementation plan
This is for internal use only; if you'd like to open an issue or request a new feature, please open a bug or enhancement issue
Instructions
This document should be filled out prior to embarking on any project that will take more than a couple hours to complete. The goal is to make sure that everyone is on the same page for the functionality and requirements of new features. Therefore, it's important that this is detailed enough to catch any misunderstandings beforehand. For larger projects, it can be useful to first give a high-level sketch, and then go back and fill in the details. For smaller ones, filling the entire thing out at once can be sufficient.
Relevant background
How is the phenotype of a cell impact by its neighboring cells? Addressing this question requires characterizing the neighbors of a cell. What is the average distance of the cell in question to cancer cells? Immune cells? Fibroblasts? Do these distances inform on the phenotype of the cell in question? The goal of this function is to provide per cell measurements of the median distance to the N nearest cells of each cell cluster.
Design overview
The end result of the function will generate a cell by cell cluster matrix populated with the median distance to the N nearest cells of each cell cluster. The function is split into three steps:
One cell vs one cell cluster:
One cell vs all cell clusters:
All cells vs all cell clusters:
Code mockup
One cell vs one cell cluster:
One cell vs all cell clusters:
All cells vs all cell clusters:
Required inputs
Requires cell table and distance matrix for single fov.
Output files
Outputs cell by cell cluster matrix for single fov with median distance to N nearest cells of cell cluster.
Timeline
Give a rough estimate for how long you think the project will take. In general, it's better to be too conservative rather than too optimistic.
Estimated date when a fully implemented version will be ready for review: Friday, March 17, 2023
Estimated date when the finalized project will be merged in: Friday, March 31, 2023
The text was updated successfully, but these errors were encountered: