-
Notifications
You must be signed in to change notification settings - Fork 26
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
Initial commit of phenotype by neighbour analysis #988
Conversation
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.
Thanks @khoulahan! I'll let you know once we've got some results
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Looks good, just some stylistic stuff.
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.
Just a few minor comments.
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.
Looks good, see below
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.
Looks good
What is the purpose of this PR?
Closes #941.
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.
How did you implement your changes
The end result is a cell by cell cluster matrix populated with the median distance to the N nearest cells of each cell cluster. The analysis is split into two functions:
Results