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

Example notebook #1

Open
pedrofale opened this issue Oct 13, 2021 · 4 comments
Open

Example notebook #1

pedrofale opened this issue Oct 13, 2021 · 4 comments

Comments

@pedrofale
Copy link

Dear @willtownes,

Thanks for making the code for Nonnegative Spatial Factorization available! I really want to start playing with this. Would it be possible for you to create a Jupyter/Colab Notebook so make it easier to start?

Best,
Pedro

@willtownes
Copy link
Owner

Great idea! I'll try to put something together. In the meantime, you can convert any of the .ipy files into .ipynb using jupytext. For example, here is where we fit the NSF model to the Visium data: https://github.com/willtownes/nsf-paper/blob/main/scrna/visium_brain_sagittal/02_exploratory.ipy#L58

@Alea4jacta6est
Copy link

Alea4jacta6est commented Feb 23, 2023

Dependencies to run demo notebook:

I used Python 3.10.8

!pip install scanpy
!pip install --upgrade tensorflow-probability
!pip install tensorflow
!pip install squidpy
!pip install llvmlite==0.39.0.
!pip install matplotlib
!pip install pandas

@willtownes
Copy link
Owner

Thanks @Alea4jacta6est ! For what it's worth, I was running everything in python 3.8.10 when I created the code originally. You can see all the detailed dependencies in the methods section of the paper under "Software versions".

@Alea4jacta6est
Copy link

@willtownes wow, now I see, could you add requirements.txt file to the repository for the users to easily set up the environment to run your code?

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

3 participants