Biostar Beta. Not for public use.
Question: Is there any way to infer percentage from the branches in trajectories plotted in Monocle?
0
Entering edit mode

I would like to say that this percent of the cells choose the first branch and this percent of the cells choose second branch. Is there any way to infer this kind of percentage from trajectories plotted in Monocle?

ADD COMMENTlink 17 months ago Batu • 150 • updated 14 months ago leon.zhan • 0
1
Entering edit mode

I played with the elements inside CellDataSet object (Let's say it is 'a'). All of its data is stored in 'data' list inside this object, it can be reached with a@data. Inside data, you can find nGene, nUMI, cluster number... etc. for each cell. After ordering the cells with orderCells() function, the CellDataSet is updated with State and Pseudotime terms. Therefore, you have to run this function to get those terms. You can see which state (trajectory) the cell contains in from here. You can call them by a@data[['State']], assign it to a variable and check the number of the cells in each trajectory with table() function.

ADD COMMENTlink 17 months ago Batu • 150
0
Entering edit mode

The following code might help you get what you want. mono_object is the CellDataSet object after you run the orderCells() function.

state_cells <- mono_object@phenoData[['State']]

sample_cells <- mono_object@phenoData[['orig.ident']]

df <- data.frame(state_cells, sample_cells)

table(df)

ADD COMMENTlink 14 months ago leon.zhan • 0

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.0