Open jhaberbe opened 2 months ago
Hi,
Thanks for catching this. I fixed the issue with the tutorial, both in the readme and in the documentation.
I am not sure why your dataset is not working. It seems like the code fails when trying to assign modules to genes. It may be the case that no genes have gotten modules assigned or that there is only one module.
Can you check what mod.assign
looks like? mod.assign['leiden']
should be a list of the assignments of modules to genes. From the error, it looks like it's empty.
One possibility is that too many genes were filtered out or that the z-score cutoff for calling gene-gene edges is too high. One thing that you can try is to lower the cutoff, by passing z=3
or lower (default is z=4.5
) to make_graph
. Let me know if that works, I can update documentation to match. I know it isn't super clear at the moment, we're still working on refactoring the code to make it cleaner.
Hi,
I was interested in getting your tutorial to work, but ran into some issues. When I ran the code on you github repo:
I recieved the following error
While this works after I change the scdemon argument from 'sm.modules_core' to 'sm.modules' for your test scenario, I run into the following problem attempting to use my own dataset:
I'm using python/3.12.1