zrqiao / NeuralPLexer

NeuralPLexer: State-specific protein-ligand complex structure prediction with a multi-scale deep generative model
https://doi.org/10.1038/s42256-024-00792-z
BSD 3-Clause Clear License
266 stars 70 forks source link

Error when trying to run the first example in benchmark_tiny.sh #34

Open binbinbinv opened 6 months ago

binbinbinv commented 6 months ago

Description

I'm trying to run the first example in benchmark_tiny.sh, but I'm getting an error running the example commands after successfully following the instructions to install the environment, I've searched for ways to try to fix this but can't at the moment.

What I Did

git clone https://github.com/zrqiao/NeuralPLexer.git
cd NeuralPLexer
make environment
conda activate neuralplexer_dev
make install
unzip neuralplexermodels_downstream_datasets_predictions.zip

Everything's fine up to now.

Then I ran the code of the first example in benchmark_tiny.sh:

''' mkdir results neuralplexer-inference --task structure_prediction_benchmarking --input-receptor neuralplexermodels_downstream_datasets_predictions/downstream_test_datasets/complex_structure_prediction/pocketminer/ --input-ligand neuralplexermodels_downstream_datasets_predictions/downstream_test_datasets/complex_structure_prediction/pocketminer/ --out-path results/tiny_run_complexpred_benchmark_post2019targets --input-template neuralplexermodels_downstream_datasets_predictions/downstream_test_datasets/complex_structure_prediction/af2templates_colabfold_predictions_Feb2023/pocketminer+post2019targets/set_512_1234_pred032223 --model-checkpoint neuralplexermodels_downstream_datasets_predictions/models/complex_structure_prediction.ckpt --n-samples 2 --chunk-size 2 --start-time 1.0 --num-steps=40 --cuda --sampler=langevin_simulated_annealing --csv-path neuralplexermodels_downstream_datasets_predictions/downstream_test_datasets/complex_structure_prediction/pocketminer/test_index.csv --template-id=3 --use-template '''

It presents several problems:

1st Problems with calling pytorch_lightning to fully load model parameters of

neuralplexermodels_downstream_datasets_predictions/models/complex_structure_prediction.ckpt image

2nd Could not load pretrained MHT weights, skipping

image

3rd local variable 'res_df' referenced before assignment

image

Nireus-lgx commented 5 months ago

hi,i had the same error with you. Did you solved this?

binbinbinv commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

Nireus-lgx commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

binbinbinv commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

If you installed the Docker in the right way, you can use the command below to run the Docker in the terminal: docker run -it --entrypoint /bin/bash neuralplexer Maybe you need to mount some file paths while running Docker, you can learn the basics of using Docker at bilibili or youtube.

Nireus-lgx commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

If you installed the Docker in the right way, you can use the command below to run the Docker in the terminal: docker run -it --entrypoint /bin/bash neuralplexer Maybe you need to mount some file paths while running Docker, you can learn the basics of using Docker at bilibili or youtube.

This worked for me! thank you very much!

Nireus-lgx commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

If you installed the Docker in the right way, you can use the command below to run the Docker in the terminal: docker run -it --entrypoint /bin/bash neuralplexer Maybe you need to mount some file paths while running Docker, you can learn the basics of using Docker at bilibili or youtube.

This worked for me! thank you very much!

寄……运行还是出现“Could not load pretrained MHT weights, skipping”等问题,大佬能给一下你的Dockerfile和环境文件(NeuralPLexer-requirements.txt、NeuralPLexer.yml)吗?

binbinbinv commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

If you installed the Docker in the right way, you can use the command below to run the Docker in the terminal: docker run -it --entrypoint /bin/bash neuralplexer Maybe you need to mount some file paths while running Docker, you can learn the basics of using Docker at bilibili or youtube.

This worked for me! thank you very much!

寄……运行还是出现“Could not load pretrained MHT weights, skipping”等问题,大佬能给一下你的Dockerfile和环境文件(NeuralPLexer-requirements.txt、NeuralPLexer.yml)吗?

As I understand it, even if there is a "Could not load pretrained MHT weights, skipping" problem, the model still works fine, see: https://github.com/zrqiao/NeuralPLexer/issues/14#issuecomment-2041202419

Nireus-lgx commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

If you installed the Docker in the right way, you can use the command below to run the Docker in the terminal: docker run -it --entrypoint /bin/bash neuralplexer Maybe you need to mount some file paths while running Docker, you can learn the basics of using Docker at bilibili or youtube.

This worked for me! thank you very much!

寄……运行还是出现“Could not load pretrained MHT weights, skipping”等问题,大佬能给一下你的Dockerfile和环境文件(NeuralPLexer-requirements.txt、NeuralPLexer.yml)吗?

As I understand it, even if there is a "Could not load pretrained MHT weights, skipping" problem, the model still works fine, see: #14 (comment)

ಥ_ಥA new error has appeared. Have you met it?: Traceback (most recent call last): File "/opt/conda/envs/NeuralPLexer/bin/neuralplexer-inference", line 33, in sys.exit(load_entry_point('neuralplexer', 'console_scripts', 'neuralplexer-inference')()) File "/NeuralPLexer/neuralplexer/inference.py", line 688, in main raise NotImplementedError NotImplementedError

Nireus-lgx commented 5 months ago

hi,i had the same error with you. Did you solved this?

I installed Docker to run this Dockerfile, but the results cannot show the secondary structure in the pymol, maybe there is still some errors but I don't know what it is.

After installing the Dockerfile, when I start the Docker container, it automatically exits directly, and the command shows that the actual running command is: "conda run -n NeuralPLexer...". The steps for me to install dockerfile : 1.docker build -t neuralplexer . 2.docker run Can you tell me how it was solved? Thank you very much.?

If you installed the Docker in the right way, you can use the command below to run the Docker in the terminal: docker run -it --entrypoint /bin/bash neuralplexer Maybe you need to mount some file paths while running Docker, you can learn the basics of using Docker at bilibili or youtube.

This worked for me! thank you very much!

寄……运行还是出现“Could not load pretrained MHT weights, skipping”等问题,大佬能给一下你的Dockerfile和环境文件(NeuralPLexer-requirements.txt、NeuralPLexer.yml)吗?

As I understand it, even if there is a "Could not load pretrained MHT weights, skipping" problem, the model still works fine, see: #14 (comment)

ಥ_ಥA new error has appeared. Have you met it?: Traceback (most recent call last): File "/opt/conda/envs/NeuralPLexer/bin/neuralplexer-inference", line 33, in sys.exit(load_entry_point('neuralplexer', 'console_scripts', 'neuralplexer-inference')()) File "/NeuralPLexer/neuralplexer/inference.py", line 688, in main raise NotImplementedError NotImplementedError

I have solved it because the input parameter format does not meet the requirements. Thank you very much for your valuable help!