You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+63-47Lines changed: 63 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,75 +22,91 @@ Full documentation may be found [here](https://tomasz-lab.github.io/FRIdata/).
22
22
23
23
The repository is currently under active development. If you run into installation problems, find a bug, or would like to propose an improvement, please raise an issue or write directly to p.szczerbiak[at]sanoscience.org.
Generate sequences, coordinates, distograms, and embeddings from protein structures at scale. Supports PDB, AFDB, ESMatlas, and local/custom inputs. Full API reference: [docs/index.html](docs/index.html).
Every dataset is defined by a **database type** (`-d`, `--db`) and a **collection type** (`-c`, `--collection`), plus optional `--proteome` and `--version`. Together they determine the dataset name (for example `AFDB-subset--test`) and how structures are resolved.
mamba run -n fridata_env python -m pip install -r requirements-fridata.txt
86
-
./scripts/install_pytorch.sh
98
+
./scripts/install_pytorch.sh # auto-detect CUDA from the driver
99
+
./scripts/install_pytorch.sh --cpu # force CPU-only build
87
100
```
88
101
89
-
Pip dependencies live in `requirements-fridata.txt` instead of `fridata_env_conda.yml` so environment creation works from read-only repository checkouts.
102
+
### Install from PyPI
90
103
91
-
### Troubleshooting
104
+
Once released, FRIdata can be installed without cloning the repo:
92
105
93
-
If you see `Error opening for writing ".../mambaf..."` while creating the environment, libmamba is trying to write a temporary pip requirements file next to the environment YAML. Use `./scripts/setup_env.sh` instead, or ensure the directory containing `fridata_env_conda.yml` is writable.
106
+
```
107
+
pip install fridata # core
108
+
pip install "fridata[embeddings]" # with embedding support
109
+
```
94
110
95
111
### Running tests
96
112
@@ -102,7 +118,7 @@ pytest ./tests
102
118
103
119
### Running on AFDB structures locally
104
120
105
-
Requires having a directory with AFDB structures and a text file containing list of AFDB IDs with `\n` delimeter. Assuming all steps from `Installation and activation` succeded
121
+
Requires having a directory with AFDB structures and a text file containing list of AFDB IDs with `\n` delimeter. Assuming all steps from [Installation](#installation) succeeded
106
122
107
123
```
108
124
FRIDATA_PATH="<repository path>"
@@ -131,7 +147,7 @@ For subset runs with `--input-path`, new datasets store canonical keys as `{line
131
147
132
148
### Running as a CLI tool
133
149
134
-
Assuming all `Installation and activation` steps succeeded.
150
+
Assuming all [Installation](#installation) steps succeeded.
135
151
136
152
0. Go into `FRIdata` directory
137
153
@@ -169,8 +185,8 @@ Prerequisites:
169
185
-`LAUNCH_WORKER_SLURM_PATH`: path to launch_worker_slurm.sh, defaults to `$DEEPFRI_PATH/FRIdata/scripts/hpc/launch_workers_slurm.sh`
170
186
-`MEMORY_LIMIT`: memory limit per Dask worker, defaults to `288GiB`
171
187
-`IP_INTERFACE`: network unix interface, where dask workers are connected. Defaults to `ens1f0`
172
-
-`CONDA_ENV_PATH`: path to conda environment, defaults to `$DEEPFRI_PATH/conda_dev`
173
-
- Have installed module miniconda3
188
+
-`VENV_PATH`: path to the FRIdata virtualenv, defaults to `$DEEPFRI_PATH/.venv`
189
+
- Have a Python module available (`module avail python` — the scripts try `python`/`python3`; adjust the candidate list in `scripts/hpc/*.sh` if your cluster names it differently)
174
190
- Have installed module gcc
175
191
176
192
Steps:
@@ -188,10 +204,10 @@ cd FRIdata
188
204
chmod u+x -R scripts/hpc/cpu
189
205
```
190
206
191
-
3. Run `initialize_slurm.sh`. As an argument put the path into directory, where `.conda` directory should be installed and specify `--cpu` flag if the script is run on CPU cluster.
207
+
3. Run `initialize_slurm.sh` to create the virtualenv (at `VENV_PATH`, default `$DEEPFRI_PATH/.venv`) and install dependencies. Add the `--cpu` flag on CPU clusters.
192
208
193
209
```
194
-
./scripts/hpc/initialize_slurm.sh <path to .conda> [--cpu]
210
+
./scripts/hpc/initialize_slurm.sh [--cpu]
195
211
```
196
212
197
213
4. Schedule sbatch script into the HPC with all the args specified. Operations to be chosen are: `sequences`, `coordinates`, `embeddings`
0 commit comments