2 个版本
0.3.2 | 2024 年 4 月 19 日 |
---|---|
0.3.1 | 2024 年 4 月 16 日 |
#88 在 生物学 类别中
每月 43 次下载
9MB
2.5K SLoC
LightDock-Rust
LightDock 宏分子软件的 Rust 实现,包含 DFIRE 和 DNA 评分功能。
安装
- 克隆此仓库
git clone https://github.com/lightdock/lightdock-rust.git
- 使用 Rust 编译(您可以使用 rustup 安装 Rust)
cd lightdock-rust
cargo build --release
示例
在 example
文件夹中可以找到几个示例。
设置所需数据路径 |
---|
您可以通过设置环境变量 LIGHTDOCK_DATA 指向包含在此仓库中的数据文件夹以避免复制它: export LIGHTDOCK_DATA=/path/to/lightdock-rust/data |
在 MacBook Pro M3 Pro 上的记录时间。
1k4c (膜对接)
cd example/1k4c
time ../../target/release/lightdock-rust setup.json initial_positions_0.dat 100 dfire
输出
Reading starting positions from "initial_positions_0.dat"
Swarm ID 0
Writing to swarm dir "swarm_0"
Reading receptor input structure: lightdock_receptor_membrane.pdb
Reading ligand input structure: lightdock_ligand.pdb
Loading DFIRE scoring function
Creating GSO with 200 glowworms
Starting optimization (100 steps)
real 1m52,132s
user 1m51,808s
sys 0m0,150s
1ppe (蛋白质对接)
cd example/1ppe
time ../../target/release/lightdock-rust setup.json initial_positions_0.dat 100 dfire
输出
Reading starting positions from "initial_positions_0.dat"
Swarm ID 0
Writing to swarm dir "swarm_0"
Reading receptor input structure: lightdock_1ppe_e.pdb
Reading ligand input structure: lightdock_1ppe_i.pdb
Loading DFIRE scoring function
Creating GSO with 200 glowworms
Starting optimization (100 steps)
real 0m4,252s
user 0m4,142s
sys 0m0,092s
2uuy (蛋白质对接)
cd example/2uuy
time ../../target/release/lightdock-rust setup.json initial_positions_0.dat 100 dfire
输出
Reading starting positions from "initial_positions_0.dat"
Swarm ID 0
Output directory does not exist for swarm 0, creating it...
Writing to swarm dir "swarm_0"
Reading receptor input structure: lightdock_2UUY_rec.pdb
Reading ligand input structure: lightdock_2UUY_lig.pdb
Loading DFIRE scoring function
Creating GSO with 200 glowworms
Starting optimization (100 steps)
real 0m8,108s
user 0m7,834s
sys 0m0,261s
1czy (蛋白质-肽对接)
cd example/1czy
time ../../target/release/lightdock-rust setup.json init/initial_positions_0.dat 100 dfire
输出
Reading starting positions from "init/initial_positions_0.dat"
Swarm ID 0
Writing to swarm dir "swarm_0"
Reading receptor input structure: lightdock_1czy_protein.pdb
Reading ligand input structure: lightdock_1czy_peptide.pdb
Loading DFIRE scoring function
Creating GSO with 200 glowworms
Starting optimization (100 steps)
real 0m1,580s
user 0m1,312s
sys 0m0,248s
1azp (蛋白质-核酸对接)
cd example/1azp
time ../../target/release/lightdock-rust setup.json initial_positions_0.dat 100 dna
输出
Reading starting positions from "initial_positions_0.dat"
Swarm ID 0
Output directory does not exist for swarm 0, creating it...
Writing to swarm dir "swarm_0"
Reading receptor input structure: lightdock_protein.pdb
Reading ligand input structure: lightdock_dna.pdb
Loading DNA scoring function
Creating GSO with 200 glowworms
Starting optimization (100 steps)
real 0m14,228s
user 0m13,932s
sys 0m0,281s
依赖项
~10MB
~192K SLoC