Skip to content

Commit dd94a2c

Browse files
committed
Data generation working.
1 parent 46d412b commit dd94a2c

9 files changed

+329
-181
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ source .venv/bin/activate
4040

4141
### Setup with `mamba` or `conda`
4242

43+
Additional dependencies:
44+
```bash
45+
conda create --name jamun-extras python=3.10 -y
46+
conda activate jamun-extras
47+
conda install -c conda-forge ambertools=23 openmm pdbfixer pyemma -y
48+
```
49+
4350
Create an environment:
4451
```bash
4552
mamba create -n jamun-env python=3.11 -y
@@ -127,6 +134,7 @@ If you want to sample conformations for a particular peptide sequence, you need
127134
We provide a script that uses [AmberTools](https://ambermd.org/AmberTools.php), specifically `tleap`. If you have a `.pdb` file already, then you can skip this step.
128135

129136
#### Generate `.pdb` file
137+
130138
First, install AmberTools23 following [instructions here](https://ambermd.org/GetAmber.php#ambertools):
131139
```bash
132140
conda create --name AmberTools23

env/requirements-analysis.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ dill==0.3.9
3737
# pathos
3838
docker-pycreds==0.4.0
3939
# via wandb
40+
exceptiongroup==1.2.2
41+
# via ipython
4042
executing==2.1.0
4143
# via stack-data
4244
fonttools==4.55.3
@@ -87,7 +89,6 @@ netcdf4==1.7.2
8789
numpy==1.23.4
8890
# via
8991
# -c env/constraints-analysis.txt
90-
# -c (workspace)
9192
# ase
9293
# cftime
9394
# contourpy

env/requirements.txt

+17-16
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cftime==1.6.2 ; python_full_version >= '3.12'
1717
cftime==1.6.4.post1 ; python_full_version < '3.12'
1818
charset-normalizer==3.4.0
1919
click==8.1.7
20-
colorama==0.4.6 ; platform_system == 'Windows' and sys_platform != 'darwin' and sys_platform != 'linux'
20+
colorama==0.4.6 ; platform_system == 'Windows'
2121
contourpy==1.3.1
2222
cycler==0.12.1
2323
docker-pycreds==0.4.0
@@ -36,6 +36,7 @@ jmespath==1.0.1
3636
kiwisolver==1.4.7
3737
lightning==2.4.0
3838
lightning-utilities==0.11.9
39+
lovelyplots==1.0.2
3940
markupsafe==3.0.2
4041
matplotlib==3.10.0
4142
mdtraj==1.10.2
@@ -45,18 +46,18 @@ netcdf4==1.7.2
4546
networkx==3.4.2
4647
ninja==1.11.1.3
4748
numpy==1.23.4
48-
nvidia-cublas-cu12==12.4.5.8 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
49-
nvidia-cuda-cupti-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
50-
nvidia-cuda-nvrtc-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
51-
nvidia-cuda-runtime-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
52-
nvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
53-
nvidia-cufft-cu12==11.2.1.3 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
54-
nvidia-curand-cu12==10.3.5.147 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
55-
nvidia-cusolver-cu12==11.6.1.9 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
56-
nvidia-cusparse-cu12==12.3.1.170 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
57-
nvidia-nccl-cu12==2.21.5 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
58-
nvidia-nvjitlink-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
59-
nvidia-nvtx-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
49+
nvidia-cublas-cu12==12.4.5.8 ; platform_machine == 'x86_64' and platform_system == 'Linux'
50+
nvidia-cuda-cupti-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
51+
nvidia-cuda-nvrtc-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
52+
nvidia-cuda-runtime-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
53+
nvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and platform_system == 'Linux'
54+
nvidia-cufft-cu12==11.2.1.3 ; platform_machine == 'x86_64' and platform_system == 'Linux'
55+
nvidia-curand-cu12==10.3.5.147 ; platform_machine == 'x86_64' and platform_system == 'Linux'
56+
nvidia-cusolver-cu12==11.6.1.9 ; platform_machine == 'x86_64' and platform_system == 'Linux'
57+
nvidia-cusparse-cu12==12.3.1.170 ; platform_machine == 'x86_64' and platform_system == 'Linux'
58+
nvidia-nccl-cu12==2.21.5 ; platform_machine == 'x86_64' and platform_system == 'Linux'
59+
nvidia-nvjitlink-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
60+
nvidia-nvtx-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
6061
omegaconf==2.3.0
6162
opt-einsum==3.4.0
6263
opt-einsum-fx==0.1.4
@@ -93,15 +94,15 @@ smmap==5.0.1
9394
sympy==1.13.1
9495
tenacity==9.0.0
9596
torch==2.5.1
96-
torch-cluster==1.6.3 ; (python_full_version >= '3.13' and sys_platform == 'darwin') or (python_full_version >= '3.13' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
97+
torch-cluster==1.6.3 ; (sys_platform != 'darwin' and sys_platform != 'linux') or python_full_version >= '3.13'
9798
torch-cluster @ https://data.pyg.org/whl/torch-2.5.0%2Bcpu/torch_cluster-1.6.3-cp310-cp310-macosx_10_9_universal2.whl ; python_full_version < '3.11' and sys_platform == 'darwin'
9899
torch-cluster @ https://data.pyg.org/whl/torch-2.5.0%2Bcpu/torch_cluster-1.6.3-cp311-cp311-macosx_10_9_universal2.whl ; python_full_version == '3.11.*' and sys_platform == 'darwin'
99100
torch-cluster @ https://data.pyg.org/whl/torch-2.5.0%2Bcpu/torch_cluster-1.6.3-cp312-cp312-macosx_10_13_universal2.whl ; python_full_version == '3.12.*' and sys_platform == 'darwin'
100101
torch-cluster @ https://data.pyg.org/whl/torch-2.5.0%2Bcu121/torch_cluster-1.6.3%2Bpt25cu121-cp310-cp310-linux_x86_64.whl ; python_full_version < '3.11' and sys_platform == 'linux'
101102
torch-cluster @ https://data.pyg.org/whl/torch-2.5.0%2Bcu121/torch_cluster-1.6.3%2Bpt25cu121-cp311-cp311-linux_x86_64.whl ; python_full_version == '3.11.*' and sys_platform == 'linux'
102103
torch-cluster @ https://data.pyg.org/whl/torch-2.5.0%2Bcu121/torch_cluster-1.6.3%2Bpt25cu121-cp312-cp312-linux_x86_64.whl ; python_full_version == '3.12.*' and sys_platform == 'linux'
103104
torch-geometric==2.6.1
104-
torch-scatter==2.1.2 ; (python_full_version >= '3.13' and sys_platform == 'darwin') or (python_full_version >= '3.13' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
105+
torch-scatter==2.1.2 ; (sys_platform != 'darwin' and sys_platform != 'linux') or python_full_version >= '3.13'
105106
torch-scatter @ https://data.pyg.org/whl/torch-2.5.0%2Bcpu/torch_scatter-2.1.2-cp310-cp310-macosx_10_9_universal2.whl ; python_full_version < '3.11' and sys_platform == 'darwin'
106107
torch-scatter @ https://data.pyg.org/whl/torch-2.5.0%2Bcpu/torch_scatter-2.1.2-cp311-cp311-macosx_10_9_universal2.whl ; python_full_version == '3.11.*' and sys_platform == 'darwin'
107108
torch-scatter @ https://data.pyg.org/whl/torch-2.5.0%2Bcpu/torch_scatter-2.1.2-cp312-cp312-macosx_10_13_universal2.whl ; python_full_version == '3.12.*' and sys_platform == 'darwin'
@@ -111,7 +112,7 @@ torch-scatter @ https://data.pyg.org/whl/torch-2.5.0%2Bcu121/torch_scatter-2.1.2
111112
torchmetrics==1.6.0
112113
torchvision==0.20.1
113114
tqdm==4.67.1
114-
triton==3.1.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and platform_system == 'Linux' and sys_platform != 'darwin' and sys_platform != 'win32'
115+
triton==3.1.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and platform_system == 'Linux'
115116
typing-extensions==4.12.2
116117
tzdata==2024.2
117118
universal-pathlib==0.2.6

pyproject.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ requires-python = ">=3.10"
99
dependencies = {file = ["requirements.in"]}
1010
readme = {file = "README.md"}
1111

12-
[tool.setuptools.dynamic.optional-dependencies]
13-
dev = {file = ["requirements-dev.in"]}
14-
analysis = {file = ["requirements-analysis.in"]}
1512

1613
[project.scripts]
1714
jamun_train = "jamun.cmdline.train:main"
@@ -56,7 +53,7 @@ ignore = [
5653

5754
[tool.uv]
5855
no-build-package = ["mdtraj"]
59-
cache-keys = [{file = "requirements.in"}, {file = "requirements-dev.in"}, {file = "requirements-analysis.in"}]
56+
cache-keys = [{file = "requirements.in"}]
6057
constraint-dependencies = ["torch==2.5.1"]
6158

6259
# see https://github.com/astral-sh/uv/issues/9079

requirements.in

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ rdkit
2727
pot
2828
ase
2929
posebusters
30+
lovelyplots

0 commit comments

Comments
 (0)