22
33This package provides a custom docker-free adaptation of AlphaFold 2.0 (Jumper et al, 2021) and ColabFold (Mirdita et al, 2021).
44
5- ## Installation
5+ ## Installation of ComplexFold
66### Get ComplexFold
77``` bash
88git clone https://github.com/muthoff/ComplexFold
@@ -14,11 +14,11 @@ CFDIR=$PWD
1414``` bash
1515wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
1616bash Miniconda3-latest-Linux-x86_64.sh
17- ```
18- Let it initialize
19- ``` bash
17+ # Let it initialize
18+
2019echo " conda deactivate\n" >> ~ /.bashrc
2120source ~ /.bashrc
21+
2222conda update conda
2323conda install pip
2424rm -r Miniconda3-latest-Linux-x86_64.sh
@@ -45,7 +45,7 @@ patch -p0 < $CFDIR/docker/openmm.patch
4545conda deactivate
4646```
4747
48- ## Genetic databases
48+ ## Download of genetic databases
4949
5050This step requires ` aria2c ` to be installed on your machine.
5151
@@ -59,7 +59,8 @@ AlphaFold needs multiple genetic (sequence) databases to run:
5959* [ PDB] ( https://www.rcsb.org/ ) (structures in the mmCIF format).
6060
6161There is a script ` ComplexFold/scripts/download_all_data.sh ` that can be used to download
62- and set up all of these databases:
62+ and set up all of these databases. The scripts provided download the most recent database
63+ vesions:
6364
6465* Default:
6566
@@ -118,7 +119,7 @@ $DOWNLOAD_DIR/ # Total: ~ 2.2 TB (download: 438 GB)
118119`bfd/` is only downloaded if you download the full databasees, and `small_bfd/`
119120is only downloaded if you download the reduced databases.
120121
121- ## Model parameters
122+ ## Downloaf of model parameters
122123
123124While the AlphaFold code is licensed under the Apache 2.0 License, the AlphaFold
124125parameters are made available for non-commercial use only under the terms of the
@@ -138,22 +139,24 @@ will download parameters for:
138139 Jumper et al. 2021, Suppl. Methods 1.9.7 for details).
139140
140141## Final set up and simple run of ComplexFold
141- 1. Go through the section "Defaults" `ComplexFold/run_complexfold.sh` and change appropriatly.
142+ 1. Go through the section "Defaults" in `ComplexFold/run_complexfold.sh` and change appropriatly
1421432. Run `run_complexfold.sh` pointing to a FASTA file containing the protein sequence
143144 for which you wish to predict the structure and a description line stating with '>'.
144145 You can provide multiple sequences per FASTA file in order to predict complexes.
145146
146147 ```bash
147- python3 run_complexfold.sh -f path/to/fasta
148+ bash run_complexfold.sh -f path/to/fasta
148149 ```
149150
150151## Features
151152### FASTA file
152153Each FASTA file must contain a description line stating with '>' followed by the name
153154of the protein. ComplexFold automatically cuts the name at the first space. The sequence
154- can encompass multiple line.
155+ can encompass multiple lines.
156+
155157For the predictions of complexes you have to provide the description and the sequence
156158for each component, including homomers. The homomer sequence and description must be identical!
159+
157160A trimer with two unique proteins would have a FASTA file like this for example:
158161
159162```fasta
@@ -172,41 +175,45 @@ PTWS
172175### Complex Mode
173176ComplexFold auto detects heteromers and changes a few things for better prediction.
174177This includes:
175- 1 . Usage of 'ptm' models (Equivalent to flag ` -c ` . )
178+ 1 . Usage of 'ptm' models (Equivalent to flag ` -c ` )
1761792 . Reducing the number of potential templates (10 per heteromer) and increaseing the
177180 number of actual templates used (4 per heteromer). At the moment, I cannot control
178- which templates are finally used. These changes increase the likelyhood of using a
181+ which templates are finally used. These changes increase the likelihood of using a
179182 template specific for each heteromer though.
180183
181- ### MSA library
184+ ### MSA library and custom MSAs
182185By default ComplexFold uses the same databases and tools like AlphaFold2.0. Three MSAs
183186are computed for each heteromer individually and saved under the name of the tool and
184- heteromer in the 'msa' subdir of the output. This includes also the search for templates.
185- You can copy these files into the 'msa_library'. ComplexFold search this path for appropriate
186- files before computing new MSAs. This way you do not have to re-compute MSAs for new
187- predictions, like in complex ther one component in known.
187+ the complex component description in the ` msa/ ` subdir of the output. This includes also
188+ the search for templates. In addition, custom MSAs can be provided in either ` sto ` or ` a3m `
189+ format. The file names must be ` custom_{component description}.{sto/a3m} ` .
190+
191+ You can copy all these files into the ` msa_library ` . ComplexFold searches this path for
192+ appropriate files before computing new MSAs. This way you do not have to re-compute MSAs
193+ for new predictions, like in varying complexes where one component is always the same.
188194
189195Please delete any files in the msa_library after updating the databases!
190196
191197### Re-run-in-place
192- You can re-run complexfold in the same ouput dir ` -o ` with differing parameters. All files
193- there will be moved into a new subfolder called ` result_n ` , where n is the n -th run.
194- Moreover, the ` msa/ ` subfolder is searched for any matching MSA/Template file . Appropriate
198+ You can re-run ComplexFold in the same ouput dir ( ` -o ` ) with differing parameters. All files
199+ there will be moved into a new subfolder called ` result_n ` , where ` n ` is the ` n ` -th run.
200+ Moreover, the ` msa/ ` subfolder is searched for any matching MSA/template files . Appropriate
195201files are read and missing ones are computed.
196202
197203### Recycling
198204AlphaFold uses its output and recycles the information into a new iteration of folding.
199205By default 3 recycles are performed, however, this can be increased by the user by providing
200- the flag ` -r <num_recycle> ` , where <num_recycle> is an integer. Usually <num_recycle> smaller
201- than 30 is sufficient. This can be combined with the flag ` -l <recycling_tolerance> ` , where
202- <recycling_tolerance> is a decimal number and declares when to stop recycling. This number
203- is based on a predicted Ca-RMS and thus and the smaller, the better the prediction. However,
204- this is not strictly true and pLDDT as well as pTM usually remain high in very difficult or
205- inheretenlty disorder proteins nonetheless. This happen even if the observed value drops below
206- the set threshold.
206+ the flag ` -r <num_recycle> ` , where ` <num_recycle> ` is an integer. Usually ` <num_recycle> ` smaller
207+ than 30 is sufficient.
208+
209+ This can be combined with the flag ` -l <recycling_tolerance> ` , where ` <recycling_tolerance> `
210+ is a decimal number and declares when to stop recycling. This number is based on a predicted
211+ Ca-RMS and thus the smaller, the better the prediction. However, this is not strictly true
212+ and pLDDT as well as pTM usually remain high in very difficult or inheritently disordered
213+ proteins. This happen even if the observed value drops below the set threshold.
207214
208- The smaller <recycling_tolerance> the more likely recycling happens exactly <num_recycle>
209- times. <recycling_tolerance> is by default 0, usefull values are usually 0.25-0.33.
215+ The smaller ` <recycling_tolerance> ` the more likely recycling happens exactly ` <num_recycle> `
216+ times. ` <recycling_tolerance> ` is by default 0, usefull values are usually 0.25-0.33.
210217
211218### Random seeds and sampling prediction multiple times
212219AlphaFold utilises a random seed to initialize features for predictions and the predictins
@@ -216,16 +223,18 @@ only a very shallow MSA (few sequences). However, GPU processing is sometimes (i
216223case) not deterministic. Thus the entire AlphaFold pipeline is non-deterministic either and
217224the same seed can give different results.
218225
219- You can provide multiple seeds in a comma separated list ` -s 123,567,... ` or set ` -x <num_seeds> ` .
220- The latter genrates as much random seed as requested. This lets ComplexFold run the prediction
221- multiple times with all given models. Only the best 5 models, based on plDDT (normal models) or
222- pTM (ptm models), are relaxed and given as output. Keep in mind that the scores are themselves
223- only prediction and a this way predicted model may just have an erroneously high score.
226+ With ComplexFold you can provide multiple seeds in a comma separated list ` -s 123,567,... ` or
227+ set ` -x <num_seeds> ` . The latter genrates as much random seed as requested. This lets ComplexFold
228+ run the prediction multiple times with all given models. Only the best 5 models, based on plDDT
229+ (normal models) or pTM (ptm models), are relaxed and given as output.
230+
231+ Keep in mind that the scores are themselves only prediction and this way predicted model may
232+ just have an erroneously high score.
224233
225234### Small bfd
226- You can either use the full bfd or the faster smaller than . ` -p <preset> ` where the argument is
227- either full_dbs or reduced_dbs. This can especially help if MSA get too big (several GB) and
228- HHBlits crashes.
235+ You can either use the full bfd or the faster smaller one . ` -p <preset> ` where the argument is
236+ either ` full_dbs ` or ` reduced_dbs ` . This can especially help if the MSA gets too big (several GB) and
237+ HHBlits crashes. The MSAs often do not differ.
229238
230239### Difficulty presets - thoroughness
231240ComplexFold combines the listed features in difficulty presets: ` -y <thoroughness> ` . By default
@@ -237,35 +246,36 @@ ComplexFold uses "alphafold", which is equivalent to the original AlphaFold sett
2372465 . ` extreme ` : ` -r 20 -l 0.33 -x 30 -p full_dbs `
238247
239248### Keep results with a good score in a certain region
240- I have got an a/b globular prediction which had always 10-15 amino acids unstructured while the
241- entire protein was around 70 amino acids long . I was afraid this bad region allows the other
249+ Once, I have got an a/b globular prediction which had always 10-15 amino acids unstructured. The
250+ entire protein was only 70 amino acids short . I was afraid this bad region allowed the other
242251parts to be very good, while itself might even be physically impossible. Hence such a
243252predictions might only be a local minimum and may prevent proper folding/prediction.
244253
245254` -i <focus_region> ` where the start and end position (x-y) is given, lets CompexFold only keep
246- the models with the best pLDDT in that region. This has to be combined with ` -x <num_seeds> ` .
255+ the models with the best pLDDT in that region. This has to be combined with larger ` -x <num_seeds> ` .
256+
257+ I was abel to get very different predictions while sampling 50+ seeds. This included a b-barrel (good
258+ average pLDTT and good score at any position), further b-sheet-only-fold (bad average pLDDT)
259+ and more a/b globular-folds which looked similar as the initial one but were differently arranged.
247260
248- I was abel to get very different prediction sampling 50+ seed, including a b-barrel (good
249- average pLDTT and good score at any position), further b-sheet only fold (bad average pLDDT)
250- and further a/b globular fold which look similat as the initial one but were differentlya arranged.
251261Eventually, the initial predction was confirmed to be true by crystallisation, though.
252262
253263
254264### AlphaFold output
255- The outputs will be in a subfolder of ` output_dir ` . They include the computed MSAs,
256- unrelaxed structures, relaxed structures, raw model outputs, some prediction metadata
257- and a comprehensive report of given argument , scores and timings. The ` output_dir `
258- directory will have the following structure:
265+ The outputs will be in a subfolder of ` output_dir ` named like the input FASTA file. It
266+ includes the computed MSAs, unrelaxed structures, relaxed structures, raw model outputs,
267+ some prediction metadata and a comprehensive report of given arguments , scores and timings.
268+ The ` output_dir ` directory will have the following structure:
259269
260270```
261271<target_name>/
262272 msas/
263- {protein description}_bfd_uniclust_hits.a3m
264- {protein description}_mgnify_hits.sto
265- {protein description}_uniref90_hits.sto
266- {protein description}_pdb70_hits.hhr
273+ {heteromer description}_bfd_uniclust_hits.a3m
274+ {heteromer description}_mgnify_hits.sto
275+ {heteromer description}_uniref90_hits.sto
276+ {heteromer description}_pdb70_hits.hhr
267277 heteromers/
268- {protein description}.fa
278+ {heteromer description}.fa
269279 parsed_results.pkl
270280 unrelaxed_model_{1,2,3,4,5}{,_ptm}-sx.pdb
271281 relaxed_model_{1,2,3,4,5}{,_ptm}-sx.pdb
@@ -280,10 +290,10 @@ directory will have the following structure:
280290
281291The contents of each output file are as follows:
282292
283- * ` msas/ ` - A directory containing the files describing the various genetic
293+ * ` msas/ ` – A directory containing the files describing the various genetic
284294 tool hits that were used to construct the input MSA. Files are given for
285- each unique protein identified by it >protein description.
286- * ` heteromers/ ` - A directory containing FASTA files for each heteromers .
295+ each unique protein identified by the ` description ` given in the FAST file .
296+ * ` heteromers/ ` – A directory containing FASTA files for each heteromer .
287297* ` parsed_results.pkl ` – A ` pickle ` file containing a class which collects
288298 raw_model outputs and auxiliary outputs. Please look up exact structure
289299 in the alphafold/complexfold.py ` class Result ` and ` class Result_Handler ` .
@@ -295,17 +305,17 @@ The contents of each output file are as follows:
295305 structure prediction (see Jumper et al. 2021, Suppl. Methods 1.8.6 for
296306 details). ` x ` indicates the seed used, look it up in ` report.json ` .
297307* ` model_*-sx.png ` – Graphical representation of the model by ColabFold.
298- * msa_coverage.png – Coverage of the used MSAs by ColabFold.
299- * PAE.png – Predicted aligned error by ColabFold.
300- * predicted_contacts.png – Predicted contacts by ColabFold.
301- * predicted_distogram.png – Predicted distogram by ColabFold.
302- * pLDDT.png – pLDDT of each residue by ColabFold.
308+ * ` msa_coverage.png ` – Coverage of the used MSAs by ColabFold.
309+ * ` PAE.png ` – Predicted aligned error by ColabFold.
310+ * ` predicted_contacts.png ` – Predicted contacts by ColabFold.
311+ * ` predicted_distogram.png ` – Predicted distogram by ColabFold.
312+ * ` pLDDT.png ` – pLDDT of each residue by ColabFold.
303313* ` report.json ` – A JSON format text file containing the scores, auxillary data,
304314 command arguments values.
305315
306316
307317## Citing this work
308- Please refer to the github but also acknowledge by citing:
318+ Please refer to this github by Matthias Uthoff but also acknowledge by citing:
309319
310320``` bibtex
311321@Article{AlphaFold2021,
@@ -330,12 +340,11 @@ Please refer to the github but also acknowledge by citing:
330340}
331341```
332342
333- 5
334-
335343
336344## Acknowledgements
337345
338- Great thanks goes to Deepmind and the ColabFold contributors.
346+ Great thanks goes to [ Deepmind] ( https://github.com/deepmind/alphafold )
347+ and the [ ColabFold] ( https://github.com/sokrypton/ColabFold ) contributors.
339348
340349AlphaFold communicates with and/or references the following separate libraries
341350and packages:
@@ -369,6 +378,9 @@ We thank all their contributors and maintainers!
369378
370379This is not an officially supported Google product.
371380
381+ This is derivative of [ AlphaFold] ( https://github.com/deepmind/alphafold )
382+ and [ ColabFold] ( https://github.com/sokrypton/ColabFold )
383+
372384### ComplexFold Code License
373385
374386Licensed under the Apache License, Version 2.0 (the "License"); you may not use
0 commit comments