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

Some questions about perturbation experiments #3

Open
UCASMXS opened this issue Oct 11, 2024 · 4 comments
Open

Some questions about perturbation experiments #3

UCASMXS opened this issue Oct 11, 2024 · 4 comments

Comments

@UCASMXS
Copy link

UCASMXS commented Oct 11, 2024

Hi, in the process of running the perturbation experiment script (1_Perturbation_Analysis.py) needs to be loaded (zebrafish-all-scNODE-aux_data.npy), but the document (zebrafish-all-scNODE-aux_data.npy) always fails to load, as if the document has been corrupted. Could you kindly help verify and confirm the solution?

@JQZ-Brown
Copy link
Collaborator

Can you show me the logs when the script breaks down?

Some issues I can imagine are:

  1. If the file is broken, try to use this one (https://drive.google.com/file/d/1U4VBQ6Xvd-OyqruOx8PQjKFq8LWCJKXL/view?usp=sharing).

  2. If the numpy breaks down when loading the file. It may be due to the version compatibility. I used numpy 1.19.5. Make sure to use the same version in your environment.

  3. I just noticed the script requires loading the trained model states. You can download the state dict file from here (https://drive.google.com/file/d/1sRN989wF7_tuplC92RdvzDsK2pLGmL71/view?usp=drive_link). Line 615 needs to load this.

Let me know if the problem in your case is not listed above!

@UCASMXS
Copy link
Author

UCASMXS commented Oct 11, 2024

zebrafish-all-scNODE-aux_data_update npy
Thanks for the above solutions you offered, I used the new file source and ran it with numpy 1.19.5, but it still can't be load. Here's my logs when the script breaks down, I hope you can give some enlightenments . At the same time, I would like to know, how did this file come about. Maybe I can generate the file by myself. Thanks again.

@JQZ-Brown
Copy link
Collaborator

I have just uploaded a script to compute the aux data (downstream_analysis/Compute_Aux_Data.py) from scratch. It trains the model and computes three data:

  1. latent_seq: VAE latent variables at each timepoint.
  2. umap_latent_data: UMAP visualization of latent variables at each timepoint.
  3. umap_model: the corresponding UMAP model.

I also updated the 1_Perturbation_Analysis.py script from Line 620-627. We only need the above three auxiliary data in the perturbation analysis.

Let me know if there are more problems.

@UCASMXS
Copy link
Author

UCASMXS commented Oct 12, 2024

Thanks for your help, I've generated a working script (zebrafish-all-scNODE-aux_data.npy), and run through the script for the perturbation experiment. Thank you very much again.

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