alphafold-multistate's People
alphafold-multistate's Issues
Colab Interface Failed on "Run Prediction" Step
query_align = next(iter(sequence_dict.values())) && StopIteration
Hello, I encountered an error during the configuration and usage process.
I was able to run the original version of AlphaFold successfully after configuring the environment.
However, when attempting to predict the GPCR state, I encountered an error.
query_align = next(iter(sequence_dict.values()))
StopIteration
Additionally, the following files were generated but were empty: "uniref90_hits.sto" and "mgnify_hits.sto".
Difference between `remove_msa_for_template_aligned_regions` in `colabfold_runner.py` and `libaf.py`
Hi, @huhlim
I can see different implementations of remove_msa_for_template_aligned_regions
in alphafold-multistate/structure_prediction/colabfold_runner.py
and alphafold-multistate/structure_prediction/libaf.py
https://github.com/huhlim/alphafold-multistate/blob/main/structure_prediction/libaf.py#L27-L42
Why these functions are implemented differently despite the same function name?
I know these functions are for removing features relating to MSAs but is there any difference in cases of using colabfold and original AlphaFold2 when processing features made from MSAs and templates? The difference led to different implementations?
Could you help me understand them?
Failed to download databases from the Zenodo repository
I will upload databases on Google Drive and link to them.
To download from Google Drive,
pip install gdown
gdown https://drive.google.com/uc?id=<file_id> # for files
gdown <file_id> # alternative format
gdown --folder https://drive.google.com/drive/folders/<file_id> # for folders
gdown --folder --id <file_id> # this format works for folders too
Reference: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive
Colab Protocol Fails on Run Prediction Step
Hi,
I am trying to use AlphaFold-Multistate for the first time on Colab, but I am getting an error on the Run Prediction step. I was wondering if I am doing something wrong?
Here is what I entered in the Input Protein Sequence step:
Then I hitted Runtime -> Run all.
I will appreciate your help or any suggestions you might have on this issue.
Thanks!
Colab: Installation of dependencies fails
When running the cell "Install dependencies" in the Colab, the following error occurs:
installing colabfold...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 43.9 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 371.7/371.7 kB 40.0 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.1/12.1 MB 88.5 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.0/214.0 MB 6.2 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.1/242.1 kB 31.8 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.9/77.9 kB 10.6 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 101.2 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 100.2 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 103.6 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 76.2 MB/s eta 0:00:00
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 311.2/311.2 kB 32.4 MB/s eta 0:00:00
installing conda...
warning libmamba [python-3.10.14-hd12c33a_0_cpython] The following files were already present in the environment:
- bin/python
warning libmamba [charset-normalizer-3.3.2-pyhd8ed1ab_0] The following files were already present in the environment:
- bin/normalizer
warning libmamba [wheel-0.43.0-pyhd8ed1ab_0] The following files were already present in the environment:
- bin/wheel
warning libmamba [pip-24.0-pyhd8ed1ab_0] The following files were already present in the environment:
- bin/pip
- bin/pip3
warning libmamba [tqdm-4.66.2-pyhd8ed1ab_0] The following files were already present in the environment:
- bin/tqdm
Currently, only install, create, list, search, run, info, clean, remove, update, repoquery, activate and deactivate are supported through mamba.
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
[<ipython-input-2-c7ae885addc1>](https://localhost:8080/#) in <cell line: 1>()
----> 1 get_ipython().run_cell_magic('bash', '-s $use_amber $use_templates $python_version', '\nset -e\n\nUSE_AMBER=$1\nUSE_TEMPLATES=$2\nPYTHON_VERSION=$3\n\nif [ ! -f COLABFOLD_READY ]; then\n echo "installing colabfold..."\n # install dependencies\n # We have to use "--no-warn-conflicts" because colab already has a lot preinstalled with requirements different to ours\n pip install -q --no-warn-conflicts "colabfold[alphafold-minus-jax] @ git+https://github.com/sokrypton/ColabFold"\n ln -s /usr/local/lib/python3.*/dist-packages/colabfold colabfold\n ln -s /usr/local/lib/python3.*/dist-packages/alphafold alphafold\n touch COLABFOLD_READY\nfi\n\n# setup conda\nif [ ${USE_AMBER} == "True" ] || [ ${USE_TEMPLATES} == "True" ]; then\n if [ ! -f CONDA_READY ]; then\n echo "installing conda..."\n wget -qnc [https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh\n](https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh/n) bash Mambaforge-Linux-x86_64.sh -bfp /usr/local 2>&1 1>/dev/null\n rm Mambaforge-Linux-x86_64.sh\n mamba config --set auto_update_conda false\n touch CONDA_READY\n fi\nfi\n# setup template search\nif [ ${USE_TEMPLATES} == "True" ] && [ ! -f HH_READY ]; then\n conda install -y -q -c conda-forge -c bioconda kalign2=2.04 hhsuite=3.3.0 python="${PYTHON_VERSION}" gdown 2>&1 1>/dev/null\n touch HH_READY\nfi\n\nif [ ! -e colabfold_runner.py...
4 frames
[/usr/local/lib/python3.10/dist-packages/google/colab/_shell.py](https://localhost:8080/#) in run_cell_magic(self, magic_name, line, cell)
332 if line and not cell:
333 cell = ' '
--> 334 return super().run_cell_magic(magic_name, line, cell)
335
336
[/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py](https://localhost:8080/#) in run_cell_magic(self, magic_name, line, cell)
2471 with self.builtin_trap:
2472 args = (magic_arg_s, cell)
-> 2473 result = fn(*args, **kwargs)
2474 return result
2475
[/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py](https://localhost:8080/#) in named_script_magic(line, cell)
140 else:
141 line = script
--> 142 return self.shebang(line, cell)
143
144 # write a basic docstring:
<decorator-gen-103> in shebang(self, line, cell)
[/usr/local/lib/python3.10/dist-packages/IPython/core/magic.py](https://localhost:8080/#) in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
[/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py](https://localhost:8080/#) in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
--> 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):
CalledProcessError: Command 'b'\nset -e\n\nUSE_AMBER=$1\nUSE_TEMPLATES=$2\nPYTHON_VERSION=$3\n\nif [ ! -f COLABFOLD_READY ]; then\n echo "installing colabfold..."\n # install dependencies\n # We have to use "--no-warn-conflicts" because colab already has a lot preinstalled with requirements different to ours\n pip install -q --no-warn-conflicts "colabfold[alphafold-minus-jax] @ git+https://github.com/sokrypton/ColabFold"\n ln -s /usr/local/lib/python3.*/dist-packages/colabfold colabfold\n ln -s /usr/local/lib/python3.*/dist-packages/alphafold alphafold\n touch COLABFOLD_READY\nfi\n\n# setup conda\nif [ ${USE_AMBER} == "True" ] || [ ${USE_TEMPLATES} == "True" ]; then\n if [ ! -f CONDA_READY ]; then\n echo "installing conda..."\n wget -qnc [https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh\n](https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh/n) bash Mambaforge-Linux-x86_64.sh -bfp /usr/local 2>&1 1>/dev/null\n rm Mambaforge-Linux-x86_64.sh\n mamba config --set auto_update_conda false\n touch CONDA_READY\n fi\nfi\n# setup template search\nif [ ${USE_TEMPLATES} == "True" ] && [ ! -f HH_READY ]; then\n conda install -y -q -c conda-forge -c bioconda kalign2=2.04 hhsuite=3.3.0 python="${PYTHON_VERSION}" gdown 2>&1 1>/dev/null\n touch HH_READY\nfi\n\nif [ ! -e colabfold_runner.py ]; then\n wget -q [https://raw.githubusercontent.com/huhlim/alphafold-multistate/main/structure_prediction/colabfold_runner.py\nfi\n](https://raw.githubusercontent.com/huhlim/alphafold-multistate/main/structure_prediction/colabfold_runner.py/nfi/n)'' returned non-zero exit status 1.
Can I exclude specific templates?
Hi, @huhlim
Thank you for your excellent work.
I want to exclude annotated templates used for prediction that are highly similar to the query sequence.
Does this method have any such options?
(I couldn't find them)
If not, I need exclude the templates when building state-annotated HHsuite databases?
Conflicting versions of packages
build_db.sh running error
Line 26 of the build_db.sh file is running incorrectly. There is no cif2fasta.py script under this directory.
Error in annotating GPCR HHsuite databases
I tried to build the HHsuite databases as specified in the README file. I had to adapt a few lines of code in build_db.sh to make it compatible with my system, and also introduce the exception mentioned in the hhsuite git for cif2fasta.py in line 274.
Even with these fixes, I get to the point where, when running this command:
ffindex_apply ${db}_a3m.ff{data,index} -i ${db}_hhm.ffindex -d ${db}_hhm.ffdata -- hhmake -i stdin -o stdout
I get the following error:
- 14:54:08.444 ERROR: Error in /opt/conda/conda-bld/hhsuite_1616660820288/work/src/hhfunc.cpp:16: ReadQueryFile:
- 14:54:08.444 ERROR: stdin is empty!
As far as I can see, the code is running correctly and producing the right outputs until:
ffindex_build -s ../${db}_msa.ff{data,index} .
In the next step, empty .ffdata and .ffindex are being generated, therefore the command I firstly mentioned gives errors because it is trying to read in empty files.
I installed the UniRef30_2020_06_hhsuite.tar.gz as mentioned in the requirements and HHsuite from the conda installation. Is it possible that I am missing some extra database (i.e. pdb70, Pfam) that was not mentioned in the requirements?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.