Closed shaistamadad closed 2 years ago
Hi,
This simply means that MIRA found subgraphs within your nearest-neighbors graph representation that are disconnected. So perhaps disjoint clusters of cells with no edges between them. The MIRA pseudotime API only works on connected groups of cells, so you can plot:
sc.pl.umap(data, color = 'mira_connected_components')
To see which subgraph marks your cells of interest. Then, you need to subset your adata to contain purely those cells:
data = data[:, data.obs.mira_connected_components == '1'] # for example, if group 1 was your cells of interest
You may also manually edit the NN graph to connect clusters. I haven't tried that before, though, and it would sort of go against what the NN graph is saying since there are no edges between the groups.
Let me know if this helps AL
Hi, I am trying to building a lineage trajectory on a female ovary dataset, and I get the following error. start cell is the barcode for the cell belonging to the progenitor germ cell type (earliest in pseudotime).
AssertionError: Graphs with multiple connected components may not be used. Subset cells to include only one connected component.
Many thanks for your help.