Skip to content

help! #24

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

Open
chris257-ux opened this issue May 8, 2025 · 5 comments
Open

help! #24

chris257-ux opened this issue May 8, 2025 · 5 comments

Comments

@chris257-ux
Copy link

I run cancercase in my own data , step by step, but meet this error now. why? how to debug? I have been run scPRINT for a lot of days but usually different errors. I just want to use it to create GRN for my scRNA-seq data with annotation.please help me, I really like this method.
TypeError Traceback (most recent call last)
Cell In[29], line 2
1 # create the embedding
----> 2 prostate_adata, metrics = embedder(model, prostate_adata, cache=False, output_expression="none")

TypeError: Embedder.call() got an unexpected keyword argument 'output_expression'

@jkobject
Copy link
Collaborator

Hello, I see now that you are right and the notebook is not up to date with the latest version of scPRINT.
I will update it in the coming weeks. In the meantime, can you check out the paper version 1.6.4 ?

@jkobject
Copy link
Collaborator

have you tried it?

@jkobject
Copy link
Collaborator

I am working on an update for this week

@jkobject
Copy link
Collaborator

it is all updated, let me know if it works for you now

@chris257-ux
Copy link
Author

Hi,
I run the cancercase.ipynb,
1.when load model load_from_checkpoint ,found the same output "RuntimeError caught: scPrint is not attached to a Trainer." Does it matter?
2.ValueError: Data matrix has wrong shape (47822, 23467), need to be (47822, 3000).
3.my data already processed,so I edit the code, as follow:

prostate_adata.obs.drop(columns="is_primary_data", inplace=True)
preprocessor = Preprocessor(do_postp=False,
    is_symbol=True,
    use_raw=False , 
    force_preprocess=True, 
    min_valid_genes_id=5000
)
prostate_adata = preprocessor(prostate_adata)

and meet Exception and scdataloader ==1.9.2
Exception: Dataset dropped due to too many genes not mapping to it
4.

TypeError Traceback (most recent call last)
Cell In[13], line 2
1 # create the embedding
----> 2 prostate_adata, metrics = embedder(model, prostate_adata, cache=False, output_expression="none")

TypeError: Embedder.call() got an unexpected keyword argument 'output_expression'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants