Open konstin opened 3 years ago
The same thing is happening to me with a custom MSA. Amber works in the af_mmseqs2 notebook, but fails in the af_batch notebook.
Error message when running batch inference:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/colabfold_env/bin/colabfold_batch", line 8, in <module>
sys.exit(main())
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/colabfold/batch.py", line 856, in main
recompile_all_models=args.recompile_all_models,
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/colabfold/batch.py", line 703, in run
stop_at_score=stop_at_score,
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/colabfold/batch.py", line 236, in predict_structure
relaxed_pdb_str, _, _ = amber_relaxer.process(prot=unrelaxed_protein)
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/relax/relax.py", line 62, in process
max_outer_iterations=self._max_outer_iterations)
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/relax/amber_minimize.py", line 482, in run_pipeline
ret.update(get_violation_metrics(prot))
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/relax/amber_minimize.py", line 356, in get_violation_metrics
structural_violations, struct_metrics = find_violations(prot)
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/relax/amber_minimize.py", line 343, in find_violations
"clash_overlap_tolerance": 1.5, # Taken from model config.
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/model/folding.py", line 773, in find_structural_violations
bond_length_tolerance_factor=config.violation_tolerance_factor)
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/common/residue_constants.py", line 861, in make_atom14_dists_bounds
residue_bonds, residue_virtual_bonds, _ = load_stereo_chemical_props()
File "/home/ubuntu/anaconda3/envs/colabfold_env/lib/python3.7/site-packages/alphafold/common/residue_constants.py", line 409, in load_stereo_chemical_props
with open(stereo_chemical_props_path, 'rt') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'stereo_chemical_props.txt'
Got it to work by fixing three things:
conda install -c conda-forge pdbfixer
wget -q https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt --no-check-certificate
and link its abs path to https://github.com/sokrypton/ColabFold/blob/main/colabfold/batch.py#L215relaxed_pdb_lines
not unrelaxed_pdb_lines
When I try to run the predefined example sequence (
PIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASK
) with templates, one model and amber it works in AlphaFold2_mmseqs2, but fails in AlphaFold2_batch with the following error: