Closed PaulJonasJost closed 9 months ago
Hey @PaulJonasJost ,
Indeed, pl.trends
blindly asssumes that all segments are populated by cells when plotting, hence the error.
I could loosen this aspect by completely allowing empty segments (which is already the case actually when calculating pseudotime, until plotting throws errors), but I think this goes against the idea what a tree should be:
All segments should be biologically relevant, meaning if no cells are not assigned to one, then the tree structure is likely wrong. I would rather ask myself what is the reason segment 1 is empty in the first place, and maybe retry running the tree learning process to make sure to get all segment assigned by cells.
I hope that helps! Let me know if you have any other questions
Hi,
thanks for creating such a great tool. I was following the tutorial and I had an error occur in
scf.pl.single_trend
:IndexError: single positional indexer is out-of-bounds
I did some digging and it seems, that it expects there to be a segment one, even though in data.obs["seg"] none are assigned to seg 1. Can you tell me what I did wrong or how I could fix this?
tyvm :)
here is the full traceback: