TencentAI4S / HuDiff

Code for humanization of antibody and nanobody
Other
22 stars 1 forks source link

#AbNatiV Installation #3

Open fanch1122 opened 1 week ago

fanch1122 commented 1 week ago

1.0 issue

The problem occurred during the AbNatiV installation. I don't know if I need to do a source code installation of openmm, which conflicts with the environment dependency of hudiff's python3.9.

2.0 repo

mamba install -c conda-forge pdbfixer

Looking for: ['pdbfixer']

conda-forge/linux-64 No change anaconda/pkgs/main/noarch No change anaconda/pkgs/r/linux-64 No change conda-forge/noarch No change anaconda/pkgs/main/linux-64 No change anaconda/pkgs/msys2/noarch No change anaconda/pkgs/r/noarch No change anaconda/pkgs/msys2/linux-64 No change

Pinned packages:

warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE Could not solve for environment specs The following packages are incompatible ├─ cuda-command-line-tools is installable with the potential options │ ├─ cuda-command-line-tools 11.6.2 would require │ │ └─ cuda-sanitizer-api >=11.6.124 with the potential options │ │ ├─ cuda-sanitizer-api 12.0.90 would require │ │ │ └─ cuda-version >=12.0,<12.1.0a0 , which requires │ │ │ └─ cudatoolkit 12.0|12.0. , which can be installed; │ │ ├─ cuda-sanitizer-api [12.6.34|12.6.68|12.6.77] would require │ │ │ └─ cuda-version >=12.6,<12.7.0a0 , which requires │ │ │ └─ cudatoolkit 12.6|12.6. , which can be installed; │ │ ├─ cuda-sanitizer-api 12.1.105 would require │ │ │ └─ cuda-version >=12.1,<12.2.0a0 , which requires │ │ │ └─ cudatoolkit 12.1|12.1. , which can be installed; │ │ ├─ cuda-sanitizer-api 12.2.140 would require │ │ │ └─ cuda-version >=12.2,<12.3.0a0 , which requires │ │ │ └─ cudatoolkit 12.2|12.2. , which can be installed; │ │ ├─ cuda-sanitizer-api 12.3.101 would require │ │ │ └─ cuda-version >=12.3,<12.4.0a0 , which requires │ │ │ └─ cudatoolkit 12.3|12.3. , which can be installed; │ │ ├─ cuda-sanitizer-api [12.4.127|12.4.99] would require │ │ │ └─ cuda-version >=12.4,<12.5.0a0 , which requires │ │ │ └─ cudatoolkit 12.4|12.4. , which can be installed; │ │ └─ cuda-sanitizer-api [12.5.39|12.5.81] would require │ │ └─ cuda-version >=12.5,<12.6.0a0 , which requires │ │ └─ cudatoolkit 12.5|12.5. , which can be installed; │ └─ cuda-command-line-tools [12.0.0|12.1.1|...|12.6.2], which can be installed; ├─ cuda-gdb is installable with the potential options │ ├─ cuda-gdb 12.0.90 would require │ │ └─ cuda-version >=12.0,<12.1.0a0 , which can be installed (as previously explained); │ ├─ cuda-gdb [12.6.37|12.6.68|12.6.77] would require │ │ └─ cuda-version >=12.6,<12.7.0a0 , which can be installed (as previously explained); │ ├─ cuda-gdb 12.1.105 would require │ │ └─ cuda-version >=12.1,<12.2.0a0 , which can be installed (as previously explained); │ ├─ cuda-gdb 12.2.140 would require │ │ └─ cuda-version >=12.2,<12.3.0a0 , which can be installed (as previously explained); │ ├─ cuda-gdb 12.3.101 would require │ │ └─ cuda-version >=12.3,<12.4.0a0 , which can be installed (as previously explained); │ ├─ cuda-gdb [12.4.127|12.4.99] would require │ │ └─ cuda-version >=12.4,<12.5.0a0 , which can be installed (as previously explained); │ └─ cuda-gdb [12.5.39|12.5.82] would require │ └─ cuda-version >=12.5,<12.6.0a0 , which can be installed (as previously explained); ├─ cuda-sanitizer-api, which can be installed (as previously explained); ├─ pdbfixer is installable with the potential options │ ├─ pdbfixer [1.7|1.8|1.8.1] would require │ │ └─ openmm [>=7.5 |>=7.6 ] with the potential options │ │ ├─ openmm [7.5.0|7.5.1|7.6.0] would require │ │ │ └─ python >=3.6,<3.7.0a0 , which can be installed; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0] would require │ │ │ └─ python >=3.7,<3.8.0a0 , which can be installed; │ │ ├─ openmm [7.5.0|7.5.1|...|8.1.2] would require │ │ │ └─ python >=3.8,<3.9.0a0 , which can be installed; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0|8.0.0] would require │ │ │ └─ cudatoolkit 10.2|10.2. , which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0] would require │ │ │ └─ cudatoolkit 9.2|9.2. , which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0|8.0.0] would require │ │ │ └─ cudatoolkit 11.0|11.0. , which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0] would require │ │ │ └─ cudatoolkit 10.1|10.1. , which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0] would require │ │ │ └─ cudatoolkit 10.0|10.0. , which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0|8.0.0] would require │ │ │ └─ cudatoolkit 11.1|11.1.* , which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.5.0|7.5.1|...|8.1.1] would require │ │ │ └─ cudatoolkit [>=11.2,<12 |>=11.2,<12.0a0 ], which conflicts with any installable versions previously reported; │ │ ├─ openmm [7.7.0|8.0.0|8.1.0|8.1.1|8.1.2] would require │ │ │ └─ python >=3.10,<3.11.0a0 , which can be installed; │ │ ├─ openmm [8.0.0|8.1.0|8.1.1|8.1.2] would require │ │ │ └─ libcufft >=11.0.0.21,<12.0a0 , which can be installed; │ │ ├─ openmm [8.0.0|8.1.0|8.1.1|8.1.2] would require │ │ │ └─ python >=3.11,<3.12.0a0 , which can be installed; │ │ ├─ openmm [8.0.0|8.1.0|8.1.1|8.1.2] would require │ │ │ └─ cudatoolkit >=11.8,<12 , which conflicts with any installable versions previously reported; │ │ ├─ openmm [8.1.0|8.1.1|8.1.2] would require │ │ │ └─ python >=3.12,<3.13.0a0 , which can be installed; │ │ └─ openmm 8.1.1 would require │ │ └─ libcufft >=11.0.8.103,<12.0a0 , which can be installed; │ └─ pdbfixer 1.9 would require │ └─ openmm >=8.0 with the potential options │ ├─ openmm [7.5.0|7.5.1|...|8.1.2], which can be installed (as previously explained); │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0|8.0.0], which cannot be installed (as previously explained); │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0|8.0.0], which cannot be installed (as previously explained); │ ├─ openmm [7.5.0|7.5.1|7.6.0|7.7.0|8.0.0], which cannot be installed (as previously explained); │ ├─ openmm [7.5.0|7.5.1|...|8.1.1], which cannot be installed (as previously explained); │ ├─ openmm [7.7.0|8.0.0|8.1.0|8.1.1|8.1.2], which can be installed (as previously explained); │ ├─ openmm [8.0.0|8.1.0|8.1.1|8.1.2], which can be installed (as previously explained); │ ├─ openmm [8.0.0|8.1.0|8.1.1|8.1.2], which can be installed (as previously explained); │ ├─ openmm [8.0.0|8.1.0|8.1.1|8.1.2], which cannot be installed (as previously explained); │ ├─ openmm [8.1.0|8.1.1|8.1.2], which can be installed (as previously explained); │ └─ openmm 8.1.1, which can be installed (as previously explained); └─ pytorch-cuda is not installable because it requires ├─ cuda-command-line-tools >=11.6,<11.7 , which conflicts with any installable versions previously reported; └─ libcufft >=10.7.0.55,<10.7.2.50 , which conflicts with any installable versions previously reported.

waitma commented 1 week ago

For training, there’s no need to install OpenMM from source code. You only need to install the checkpoints, which we’ve included in our provided tar.gz file. Since AbNatiV recently updated their repository, the installation process may differ from previous versions, which could potentially be causing the issue.

fanch1122 commented 1 week ago

For training, there’s no need to install OpenMM from source code. You only need to install the checkpoints, which we’ve included in our provided tar.gz file. Since AbNatiV recently updated their repository, the installation process may differ from previous versions, which could potentially be causing the issue.

Yes, I tried to uninstall the conflicting software and install pdbfixer, but the python3.8 environment and many dependencies required by AbNatiV are still a headache. Thank you for your great work and responsese

best wish~

fanch1122 commented 4 days ago

Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb? Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb?

waitma commented 3 days ago

Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb? Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb?

To fine-tune the nanobody model with your own data for better use with hudiff_nb, start by reviewing our fine-tuning dataset for hudiff-nb. In our process, sequences were first aligned using IMGT and then realigned with AHo (AbNativ). To match our data format, align your sequences twice using the same approach, and then you’ll be ready to fine-tune hudiff-nb with your own dataset.

fanch1122 commented 3 days ago

Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb? Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb?

To fine-tune the nanobody model with your own data for better use with hudiff_nb, start by reviewing our fine-tuning dataset for hudiff-nb. In our process, sequences were first aligned using IMGT and then realigned with AHo (AbNativ). To match our data format, align your sequences twice using the same approach, and then you’ll be ready to fine-tune hudiff-nb with your own dataset. sequences were first aligned using IMGT and then realigned with AHo (AbNativ). Can this part of the code be provided? At the same time, I hope to use nano antibody sequences outside the OSA database for fine-tuning. Can I match your format if I only have nano sequences?

waitma commented 3 days ago

Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb? Then how should we fine-tune the nanobody model with our own data in order to better use hudiff_nb?

To fine-tune the nanobody model with your own data for better use with hudiff_nb, start by reviewing our fine-tuning dataset for hudiff-nb. In our process, sequences were first aligned using IMGT and then realigned with AHo (AbNativ). To match our data format, align your sequences twice using the same approach, and then you’ll be ready to fine-tune hudiff-nb with your own dataset. sequences were first aligned using IMGT and then realigned with AHo (AbNativ). Can this part of the code be provided? At the same time, I hope to use nano antibody sequences outside the OSA database for fine-tuning. Can I match your format if I only have nano sequences?

For the IMGT alignment, we directly used results from the OAS database. If you need to start the alignment from scratch, abnumber can be used for this step. For realigning with AHo, you can find the code in the AbNativ repository (see the relevant code section here). For sequences outside the OAS database, just follow our data format, and they should be compatible.