Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]ERROR - Expression matrix should be provided in the loom file format. #597

Open
huangtao-china opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@huangtao-china
Copy link

pyscenic aucell \

--num_workers 60
--output sce_SCENIC.loom
input_new.loom
sce.regulons.csv

def twobit_1hamming(twobit: int, size: int) -> List[int]:

2024-12-16 19:56:55,824 - pyscenic.cli.pyscenic - INFO - Loading expression matrix.

2024-12-16 19:56:56,330 - pyscenic.cli.pyscenic - INFO - Loading gene signatures.
Create regulons from a dataframe of enriched features.
Additional columns saved: []

2024-12-16 19:57:01,899 - pyscenic.cli.pyscenic - INFO - Calculating cellular enrichment.

2024-12-16 19:57:09,334 - pyscenic.cli.pyscenic - INFO - Writing results to file.

2024-12-16 19:58:04,119 - pyscenic.cli.pyscenic - ERROR - Expression matrix should be provided in the loom file format.

@huangtao-china huangtao-china added the bug Something isn't working label Dec 16, 2024
@robertzeibich
Copy link

robertzeibich commented Jan 14, 2025

Hi @huangtao-china,

Are you still working with pyscenic? You could try the following:

from pyscenic.cli.utils import load_signatures
from pyscenic.aucell import aucell
signatures = load_signatures(f'{name}-reg.csv')
ex_mtx = pd.DataFrame(adata.X.toarray(),index=adata.obs_names, columns=adata.var_names)
auc_mtx = aucell(ex_mtx,signatures,num_workers=24)

The loom file you use as input must be generated by pyscenic/must have the pyscenic format. Is that the case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants