README.md 2.01 KB
Newer Older
zhuwenwen's avatar
zhuwenwen committed
1
2
3
# <div align="center"><strong>OpenFold</strong></div>
## 简介
OpenFold是蛋白质结构预测模型训练和推理的库,主要提供以下功能:蛋白质单体和多体的训练和推理。OpenFold官方github地址:[https://github.com/aqlaboratory/openfold](https://github.com/aqlaboratory/openfold)
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
4

zhuwenwen's avatar
zhuwenwen committed
5
6
7
8
9
## 安装
OpenFold支持
+ Python 3.7.
+ Python 3.8.
+ Python 3.9.
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
10

zhuwenwen's avatar
zhuwenwen committed
11
12
13
### 使用pip安装
openfold whl包下载目录:[https://cancon.hpccube.com:65024/4/main/openfold/dtk23.04](https://cancon.hpccube.com:65024/4/main/openfold/dtk23.04)
根据对应的pytorch版本和python版本,下载对应openfold的whl包
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
14

zhuwenwen's avatar
zhuwenwen committed
15
16
```shell
pip install openfold* (下载的openfold的whl包)
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
17
18
```

zhuwenwen's avatar
zhuwenwen committed
19
### 使用源码编译方式安装
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
20

zhuwenwen's avatar
zhuwenwen committed
21
#### 编译环境准备
zhuwenwen's avatar
zhuwenwen committed
22
提供2种环境准备方式:
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
23

zhuwenwen's avatar
zhuwenwen committed
24
25
26
1. 基于光源pytorch基础镜像环境:镜像下载地址:[https://sourcefind.cn/#/image/dcu/pytorch](https://sourcefind.cn/#/image/dcu/pytorch),根据pytorch、python、dtk及系统下载对应的镜像版本。

2. 基于现有python环境:安装pytorch,pytorch whl包下载目录:[https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04](https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04),根据python、dtk版本,下载对应pytorch的whl包。安装命令如下:
zhuwenwen's avatar
zhuwenwen committed
27
```shell
zhuwenwen's avatar
zhuwenwen committed
28
29
pip install torch* (下载的torch的whl包)
pip install setuptools==59.5.0 wheel
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
30
31
```

zhuwenwen's avatar
zhuwenwen committed
32
#### 源码编译安装
zhuwenwen's avatar
zhuwenwen committed
33
```shell
zhuwenwen's avatar
zhuwenwen committed
34
git clone https://developer.hpccube.com/codes/aicomponent/openfold  # 根据需要的分支进行切换
zhuwenwen's avatar
zhuwenwen committed
35
```
zhuwenwen's avatar
zhuwenwen committed
36

zhuwenwen's avatar
zhuwenwen committed
37
38
39
- 提供2种源码编译方式(进入openfold目录):
```
1. 编译whl包并安装
zhuwenwen's avatar
zhuwenwen committed
40
41
python setup.py bdist_wheel 
pip install dist/openfold*
zhuwenwen's avatar
zhuwenwen committed
42

zhuwenwen's avatar
zhuwenwen committed
43
44
2. 源码编译安装
python3 setup.py install 
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
45
```
Gustaf Ahdritz's avatar
Add DOI  
Gustaf Ahdritz committed
46

zhuwenwen's avatar
zhuwenwen committed
47
## 版本号查询
zhuwenwen's avatar
zhuwenwen committed
48
49
50
51
- python -c "import openfold; print(openfold.\_\_version__)",版本号与官方版本同步,查询该软件的版本号,例如1.0.1;

## Known Issue
-
zhuwenwen's avatar
zhuwenwen committed
52

zhuwenwen's avatar
zhuwenwen committed
53
54
## Note
+ 若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
zhuwenwen's avatar
zhuwenwen committed
55
56

## 参考
zhuwenwen's avatar
zhuwenwen committed
57
- [README_ORIGIN](README_ORIGIN.md)