You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using adata as input, if there is an empty sample (i.e., expression of the cell/sample is 0 for all genes), there will be an error writing the results to adata.obsm due to the deletion of the empty sample(s).
Additional context
By any means, an empty sample should not be present in the data. However, as decoupler actively check for empty samples and genes and deletes them, for integrity, it might be reasonable to return the repaired adata with results.
The text was updated successfully, but these errors were encountered:
Thanks for finding this out! Indeed it should, but its going to be hard to refactor the code to accommodate this. I'll keep it in mind but for now it's on low priority since it is an edge case and the user can always remove those cells beforehand.
Thanks for finding this out! Indeed it should, but its going to be hard to refactor the code to accommodate this. I'll keep it in mind but for now it's on low priority since it is an edge case and the user can always remove those cells beforehand.
Describe the bug
Using adata as input, if there is an empty sample (i.e., expression of the cell/sample is 0 for all genes), there will be an error writing the results to adata.obsm due to the deletion of the empty sample(s).
dc.run_ora(
mat=adata,
net=msigdb,
source='geneset',
target='genesymbol',
verbose=True,
use_raw=False
)
To Reproduce
As described above.
Expected behavior
As described above.
System
Additional context
By any means, an empty sample should not be present in the data. However, as decoupler actively check for empty samples and genes and deletes them, for integrity, it might be reasonable to return the repaired adata with results.
The text was updated successfully, but these errors were encountered: