-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom template raises error "hit.name did not start with PDBID_chain" #177
Comments
Also the original template pdb did not have a chain ID, but even if I add it (the fille attached below), I get the same error. |
The custom templates require to be in four letter code, e.g. |
In addition to these two rules, For now, your custom structure file can be used as a template by following the steps below:
Then I could use your file as custom template (in localcolabfold).
Also, this custom template file could be used in AlphaFold2.ipynb. |
Thank you @YoshitakaMo & @martin-steinegger, it works perfectly! @martin-steinegger Do you want me to close this issue? "custom" - upload and search own templates (mmCIF format) --> |
I added the help text to the AlphaFold2 notebook and also linked this issue for users to find more info. I will close this issues for now. :) |
The web service https://mmcif.pdbj.org/converter/index.php?l=en is sometimes down. For macOS/Linux users who want to use the converter massively from command line on your machine, I made Homebrew Formulae of MAXIT. # install MAXIT
$ brew install brewsci/bio/maxit
...
==> Installing maxit from brewsci/bio
==> Pouring maxit--11.100_1.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/maxit/11.100_1: 31 files, 887.7MB
# show the usage
$ maxit
Usage: maxit -input inputfile -output outputfile -o num [ -log logfile ]
[-o 1: Translate PDB format file to CIF format file]
[-o 2: Translate CIF format file to PDB format file]
[-o 8: Translate CIF format file to mmCIF format file]
# sample
$ maxit -input foo.pdb -output bar.cif -o 1 You can convert your custom pdb/cif file instead of using the web service. |
I made the same script for chimeraX. But it still does not give the from glob import glob
def convert_with_chimera(pdb_in, cif_out=None, chimera_bin="C:/bin/chimeraX-dev/bin/ChimeraX-console.exe"):
if cif_out is None:
cif_out = pdb_in.replace('.pdb', '.cif')
cmd = f"""{chimera_bin} --exit --nogui --notools --nostatus --cmd "open {pdb_in}; save {cif_out} bestGuess true" """
!{cmd}
time_stamp ="""
#
loop_
_pdbx_audit_revision_history.ordinal
_pdbx_audit_revision_history.data_content_type
_pdbx_audit_revision_history.major_revision
_pdbx_audit_revision_history.minor_revision
_pdbx_audit_revision_history.revision_date
1 'Structure model' 1 0 1971-01-01
#
"""
with open(cif_out, 'a') as fn:
fn.write(time_stamp)
#convert_with_chimera('aphx.pdb') |
@martin-steinegger How are mutliple templates taken into account? I'm trying to give just the template for each edge (6 templates) but I don't see them in the MSA file or sequence coverage plot. Could I specify which template is used with a custom MSA? |
Here is how we implemented the custom template feature: Currently we do not have a way to assign templates based on a custom MSA. What do you try to do exactly? |
@martin-steinegger I have a complicate structure built from 6 coiled-coils (CC) (https://www.nature.com/articles/nbt.3994, https://github.com/NIC-SBI/CC_protein_origami). AF2 can not predict those without an initial structure, but I'm trying to see if only information about CC paring (i.e. just the structure of individual CCs) could be enough to fold the structure. The problem is the pairs are really far apart in primary sequence. PS: do custom templates work with multimer as well? |
The features for templates per chain are not so easy to develop. Custom templates work with multimer as well but the template information is only assigned to each monomer separately. There is no features that extracts the chain orientation of the complexes directly in multimer. |
Hi AlphaFold2 prediction group, I met some template prediction as well, which is different from the issue others met. The custom pdb file is produced based on your suggestion and named as new1.cif. But when I tried to upload it, the error showed as: MessageError Traceback (most recent call last) 3 frames MessageError: RangeError: Maximum call stack size exceeded. May I ask you how to solve this issue? I guess it's something relative to the prediction setting? Many thanks in advance! |
Withdraw the issue below, as suggested, I post it as a new issue.
|
@data2code It's probably best if you open a new issue. |
Expected Behavior
Colabfold outputs 5 models.
Current Behavior
Error in the Run Prediction cell
Steps to Reproduce (for bugs)
Seq: MLEEELKQLEEELQAIEEQLAQLQWKAQARKEKLAQLKEKLSGPGSPEDEIQQLEEEISQLEQKNSELKE KNQELKYGSGPGDIEQELERAKESIRRLEQEVNQERSRMQYLQTLLEKSGPGQLEDKVEELLSKNYHLEN EVERLKKLVGSGPGLEEELKQLEEELQAIEEQLAQLQWKAQARKEKLAQLKEKLSGPGSPEDEIQQLEEK NSQLKQEISQLEEKNQELKYGSGPGQLEDKVEELLSKNYHLENEVERLKKLVGSGPGSPEDKISQLKEKI QQLKQENQQLEEENSQLEYGSGPGSPEDENSQLEEKISQLKQKNSELKEEIQQLEYGSGPGSPEDKISEL KEENQQLEQKIQQLKEENSQLEYGSGPGDIEQELERAKESIRRLEQEVNQERSRMQYLQTLLEKSGPGSP EDKNSELKEEIQQLEEENQQLEEKISELKYGLEHHHHHHHH
job_name: tet12sn
Set template mode to custom
Upload the template: https://gist.github.com/ajasja/dce9c4f4c26a9f0ab8dabc06f1bcf89b
msa_mode is single_sequence.
ColabFold Output (for bugs)
Context
Trying to run a difficult structure by adding a new template. (Trying to set this PDB as initial guess)
Your Environment
Running colabfold 1.2.0 (7e9952e)
The text was updated successfully, but these errors were encountered: