Closed dweemx closed 4 years ago
The sort function of SCopeLoom generates a mismatch between genes in self.ex_mtx and self.row_attrs["Gene"]:
sort
SCopeLoom
self.ex_mtx
self.row_attrs["Gene"]
import export_to_loom import numpy as np scope_loom = export_to_loom.SCopeLoom.read_loom(filename="A.loom") scenic_loom = export_to_loom.SCopeLoom.read_loom(filename="B.loom")
scope_loom.ex_mtx.head()
scenic_loom.ex_mtx.head()
scope_loom.sort(axis=0, by="Gene") scenic_loom.sort(axis=0, by="Gene") assert all(scope_loom.get_genes() == scope_loom.ex_mtx.columns)
Remark: It's not affecting when running the pipelines because adata files are sorted by Gene at the beginning. The only case is when the APPEND_SCENIC_LOOM process is used with loom files not generated by the pipelines
This bug is fixed from version 0.15.1
0.15.1
The
sort
function ofSCopeLoom
generates a mismatch between genes inself.ex_mtx
andself.row_attrs["Gene"]
:Remark: It's not affecting when running the pipelines because adata files are sorted by Gene at the beginning. The only case is when the APPEND_SCENIC_LOOM process is used with loom files not generated by the pipelines