Skip to content

Pseudotime computation fails when cells_back has fewer columns than boo #47

@tianxin-wang

Description

@tianxin-wang

Hi Louis,

When using scFates.tl.pseudotime() with n_map > 100 on complex branching datasets, I consistently encountered the following error:

Image

It appears that cells_back has fewer columns than boo, due to the fact that some segments are never assigned in the multiple probabilistic mappings (n_map > 1). This shape mismatch causes the DataFrame multiplication to fail. However, the tree learned by scf.tl.tree() isn't perfect no matter how I tune the hyperparameters; not all cells get assigned to all possible segments.

Would it be possible to enforce the full segment space when building cells_back, e.g., cells_back = cells_back.reindex(columns=full_segment_list, fill_value=0), to avoid this shape mismatch??

Thank you,
Cynthia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions