BiomedicalMachineLearning / stLearn

A novel machine learning pipeline to analyse spatial transcriptomics data
Other
202 stars 26 forks source link

Pseudo-time-space analysis problem #268

Closed PIGAsHIT closed 11 months ago

PIGAsHIT commented 11 months ago

Traceback (most recent call last): File "/mnt/d/stlearn_env/lib/python3.10/site-packages/stlearn/app/source/forms/views.py", line 320, in run_psts st.spatial.trajectory.pseudotimespace_global( TypeError: pseudotimespace_global() got an unexpected keyword argument 'w' pseudotimespace_global() got an unexpected keyword argument 'w'

As shown above, I don't quite understand why this error is occurring. Are there any directions or possibilities that I can modify? Thank you!

duypham2108 commented 11 months ago

We categorize it to three different models: "spatial", "gene_expression" and "mixed" to prevent random weight input. You can try setting model parameter for those 3 options. For examples: model="spatial

PIGAsHIT commented 11 months ago

image Thank you for your response. I am using your webapp service. As you mentioned, I have tried all three methods, but the same error still occurs.

duypham2108 commented 11 months ago

I see. Sorry that we haven't updated it yet. I will try to fix it soon

PIGAsHIT commented 11 months ago

Thank you again for your prompt response. I am wondering if it could be an issue with the dataset. Do you have a demo dataset for this app?

duypham2108 commented 11 months ago

It's a problem of the front end that doesn't match with the backend function only. Hopefully, I can fix it within today. I built a tutorial based on the Visium breast cancer from 10X genomics then you can use it as an example. I will try to include it in the app soon.

PIGAsHIT commented 11 months ago

Hello, I would like to ask if the issue mentioned previously has been resolved. Additionally, if it has been fixed, where can I download the new version? Thank you :)

duypham2108 commented 11 months ago

I just fixed it. Please uninstall the previous version and install a version in master branch by

pip uninstall stlearn --yes
git clone https://github.com/BiomedicalMachineLearning/stLearn.git
cd stLearn
python setup.py install
PIGAsHIT commented 11 months ago

BIG THANKS!

Duy Pham @.***>於 2023年12月15日 週五,02:19寫道:

I just fixed it. Please uninstall the previous version and install a version in master branch by

pip uninstall stlearn --yes git clone https://github.com/BiomedicalMachineLearning/stLearn.git cd stLearn python setup.py install

— Reply to this email directly, view it on GitHub https://github.com/BiomedicalMachineLearning/stLearn/issues/268#issuecomment-1856360074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWIPFBRRSQZHXGFIJSQXQ3TYJM7LDAVCNFSM6AAAAABAMAN4BSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGM3DAMBXGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>