Skip to content
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

find coordinates of a cell #151

Open
sessler opened this issue Apr 14, 2023 · 2 comments
Open

find coordinates of a cell #151

sessler opened this issue Apr 14, 2023 · 2 comments

Comments

@sessler
Copy link

sessler commented Apr 14, 2023

I have not found the name of certain variables. To clarify why I need them, I will shortly describe my scenario.

This is a wound healing essay, where cells have two state: if a cell has 4 neighbors it will become quiescent, when it has less, it will transition back to proliferating cell. When 90% of cells have turned into quiescent cells, a scratch is introduced by deleting cells in the middle of the simulation area. After this, the simulation is continued for three more simulated days.

As I have read, the neighbor array is not used presently. I would need:

  • the coordinates of a cell (I also need this to "inflict" the wound)
  • and the variable, where the end of the simulation is stored.

Thank you.
Judit Sessler

@rheiland
Copy link
Collaborator

To obtain the coords of a cell, you can use pC->position[0] for X (and [1]=Y, [2]=Z) where pC is a pointer to a cell. Rf to various sample projects' custom.cpp that do this, e.g., predator prey.

For your primary goal of changing cell cycle based on # of neighbors, you might experiment with using simple_pressure (in the cell's state) instead of manually testing for # neighbors yourself. And in PhysiCell 1.11.0, you can use signals and behaviors and modify a cell cycle. See the interactions sample project's custom.cpp, for example, which does this (and more).

@sessler
Copy link
Author

sessler commented Apr 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants