<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Dennis,<div class=""><br class=""></div><div class=""> Are you asking about fetching AlphaFold database models? Those are only of monomer proteins.</div><div class=""><br class=""></div><div class=""> With AlphaFold predictions energy minimization is done using OpenMM and the Amber force field -- it has nothing to do with binding affinity. I don't know what you mean by a contact map. Maybe you are interested in the ChimeraX interfaces tool that shows contact residues at an interface.</div><div class=""><br class=""></div><div class=""> Please give enough details in your questions so they are clear, otherwise we will not be able to spend the time to answer.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 5, 2022, at 7:41 PM, Dennis Poh <<a href="mailto:pohdennis90@gmail.com" class="">pohdennis90@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Tom<div class=""><br class=""></div><div class="">Thanks, also in the chimerax GUI software, I can fetch my separated sequences delimited with a comma, but does the overall structure that appears the most energy-minimized model or just a superimposition simply based on sequence similarity?</div><div class=""><br class=""></div><div class="">How is the energy-minimization done (is it based on deltaG = G(bound complex) - G(protein1) -G(protein2)) ?</div><div class="">Could a contact map be produced (if 2 sequences are compared pairwise) too?</div><div class=""><br class=""></div><div class="">-Dennis</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 6 Oct 2022 at 01:43, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi Dennis,<div class=""><br class=""></div><div class=""> AlphaFold on Google Colab will only work for total sequence length of about 1000 because the old Google Colab GPUs only have 16 Gbytes of memory. Modern GPUs for machine learning like an Nvidia A40 (48 GB) or A100 (40 or 80GB) or A6000 (48 GB) can handle more than 3000 residues but those GPUs cost $5000-$15000. A consumer Nvidia RTX 3090 (24 GB, $1500) can manage up to 2000 residues. Setting up AlphaFold on your own machine is a bit of work. I see from your output file name "af1848" you tried to run total sequence length 1848 which certainly will fail on Google Colab. For examples of AlphaFold runs at different sequence lengths see</div><div class=""><br class=""></div><div class=""><span style="white-space:pre-wrap" class=""> </span><a href="https://www.rbvi.ucsf.edu/chimerax/data/alphafold-jan2022/afspeed.html" target="_blank" class="">https://www.rbvi.ucsf.edu/chimerax/data/alphafold-jan2022/afspeed.html</a></div><div class=""><div class=""><br class=""></div><div class=""> Also AlphaFold has a minimum sequence length for each individual sequence is 16 so your example ACCCC and ALLPAAAA will not work. This minimum length is because AlphaFold uses a sequence alignment made by searching a billion database sequences and searching shorter sequence produces millions of hits that are not evolutionarily related.</div><div class=""><br class=""></div><div class=""> The sequence length limits are described in the ChimeraX documentation</div><div class=""><br class=""></div><div class=""><span style="white-space:pre-wrap" class=""> </span><a href="https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/alphafold.html#caveats" target="_blank" class="">https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/alphafold.html#caveats</a></div><div class=""><br class=""></div><div class=""> Tom</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">On Oct 5, 2022, at 9:35 AM, Dennis Poh via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" target="_blank" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hi Eric<div class=""><br class=""></div><div class="">1. It seems that I don't have sufficient GPU memory in colab.</div><div class=""><br class=""></div><div class="">I have the following error message:</div><div class="">INFO:colabfold.batch:Running model_1<br class="">/usr/local/lib/python3.7/dist-packages/haiku/_src/data_structures.py:195: FutureWarning: jax.tree_flatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_flatten instead.<br class=""> leaves, structure = jax.tree_flatten(mapping)<br class="">/usr/local/lib/python3.7/dist-packages/haiku/_src/data_structures.py:203: FutureWarning: jax.tree_unflatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_unflatten instead.<br class=""> self._mapping = jax.tree_unflatten(self._structure, self._leaves)<br class="">/usr/local/lib/python3.7/dist-packages/haiku/_src/stateful.py:457: FutureWarning: jax.tree_leaves is deprecated, and will be removed in a future release. Use jax.tree_util.tree_leaves instead.<br class=""> length = jax.tree_leaves(xs)[0].shape[0]<br class="">/usr/local/lib/python3.7/dist-packages/alphafold/model/geometry/struct_of_array.py:136: FutureWarning: jax.tree_flatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_flatten instead.<br class=""> flat_array_like, inner_treedef = jax.tree_flatten(array_like)<br class="">/usr/local/lib/python3.7/dist-packages/alphafold/model/geometry/struct_of_array.py:210: FutureWarning: jax.tree_unflatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_unflatten instead.<br class=""> inner_treedef, data[array_start:array_start + num_array])<br class="">/usr/local/lib/python3.7/dist-packages/alphafold/model/mapping.py:50: FutureWarning: jax.tree_flatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_flatten instead.<br class=""> values_tree_def = jax.tree_flatten(values)[1]<br class="">/usr/local/lib/python3.7/dist-packages/alphafold/model/mapping.py:54: FutureWarning: jax.tree_unflatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_unflatten instead.<br class=""> return jax.tree_unflatten(values_tree_def, flat_axes)<br class="">/usr/local/lib/python3.7/dist-packages/alphafold/model/mapping.py:129: FutureWarning: jax.tree_flatten is deprecated, and will be removed in a future release. Use jax.tree_util.tree_flatten instead.<br class=""> flat_sizes = jax.tree_flatten(in_sizes)[0]<br class="">ERROR:colabfold.batch:Could not predict af1819. Not Enough GPU memory? INTERNAL: cublas error<br class="">INFO:colabfold.batch:Done<br class="">Downloading structure predictions to directory Downloads/ChimeraX/AlphaFold<br class="">cp: cannot stat '*_relaxed_rank_1_model_*.pdb': No such file or directory<br class="">cp: cannot stat '*_unrelaxed_rank_1_model_*_scores.json': No such file or directory<br class=""></div><div class=""><br class=""></div><div class="">2. Would it be possible to run this in jupyter? Or are there alternatives?</div><div class=""><br class=""></div><div class="">3. " Prediction may fail with total sequence length over 1000 residues due to limited GPU memory." - this total sequence length meaning all the sequences in the list to be concatenated?</div><div class=""><br class=""></div><div class="">4. I seem to also have some pdbxx.m8 and afxxxx.csv files - may I know what these files are for?<br class=""></div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">-Dennis</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 6 Oct 2022 at 00:25, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" target="_blank" class="">pett@cgl.ucsf.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Also, if you are copying the sequence from a text editor, make sure the editor is displaying the sequence as plain text or that you are copying as plain text, otherwise invisible formatting characters may be embedded in what you paste.<br class="">
<br class="">
--Eric<br class="">
<br class="">
Eric Pettersen<br class="">
UCSF Computer Graphics Lab<br class="">
<br class="">
<br class="">
> On Oct 5, 2022, at 9:14 AM, Elaine Meng via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" target="_blank" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class="">
> <br class="">
> Well, the message says there is an invalid character, so all I can say is to make sure that you are pasting plain text, and check to see that you have only standard amino acid codes and commas. <br class="">
> <br class="">
> WIthout seeing exactly what you pasted, we can't tell which part caused the problem.<br class="">
> <br class="">
> Elaine<br class="">
> <br class="">
> <br class="">
>> On Oct 5, 2022, at 9:09 AM, Dennis Poh <<a href="mailto:pohdennis90@gmail.com" target="_blank" class="">pohdennis90@gmail.com</a>> wrote:<br class="">
>> <br class="">
>> Hi Elaine,<br class="">
>> <br class="">
>> Thanks, I was trying to predict a multimer or the overall structure of many subunit chains using individual sequences, each separated with a comma in colab.<br class="">
>> But it seems that there was some error and no pdb file was generated; the error message is as follows:<br class="">
>> <br class="">
>> ERROR:colabfold.batch:Could not generate input features af1848: Invalid character in the sequence: <br class="">
>> Traceback (most recent call last):<br class="">
>> File "/usr/local/lib/python3.7/dist-packages/colabfold/batch.py", line 1357, in run<br class="">
>> model_type,<br class="">
>> File "<ipython-input-1-d6881d38b934>", line 122, in generate_input_feature_wrapper<br class="">
>> (input_features, domain_names) = batch.generate_input_feature_orig(*args, **kw)<br class="">
>> File "/usr/local/lib/python3.7/dist-packages/colabfold/batch.py", line 1018, in generate_input_feature<br class="">
>> sequence, input_msa, template_features[sequence_index]<br class="">
>> File "/usr/local/lib/python3.7/dist-packages/colabfold/batch.py", line 869, in build_monomer_feature<br class="">
>> sequence=sequence, description="none", num_res=len(sequence)<br class="">
>> File "/usr/local/lib/python3.7/dist-packages/alphafold/data/pipeline.py", line 43, in make_sequence_features<br class="">
>> map_unknown_to_x=True)<br class="">
>> File "/usr/local/lib/python3.7/dist-packages/alphafold/common/residue_constants.py", line 580, in sequence_to_onehot<br class="">
>> raise ValueError(f'Invalid character in the sequence: {aa_type}')<br class="">
>> ValueError: Invalid character in the sequence: <br class="">
>> INFO:colabfold.batch:Done<br class="">
>> Downloading structure predictions to directory Downloads/ChimeraX/AlphaFold<br class="">
>> cp: cannot stat '*_relaxed_rank_1_model_*.pdb': No such file or directory<br class="">
>> cp: cannot stat '*_unrelaxed_rank_1_model_*_scores.json': No such file or directory<br class="">
>> <br class="">
>> -Dennis<br class="">
>> <br class="">
>> On Wed, 5 Oct 2022 at 23:36, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" target="_blank" class="">meng@cgl.ucsf.edu</a>> wrote:<br class="">
>> Hi Dennis,<br class="">
>> Your sequence input is wrong - it should contain only the sequences pasted as plain text, with only a comma between them (NOT the ">description" line because it is not supposed to be in fasta format). How to input sequence(s) is explained in the AlphaFold help page.<br class="">
>> <br class="">
>> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/tools/alphafold.html#predict" rel="noreferrer" target="_blank" class="">https://rbvi.ucsf.edu/chimerax/docs/user/tools/alphafold.html#predict</a>><br class="">
>> <br class="">
>> "For predicting a complex (multimer), the sequences of all chains in the complex must be given. The same sequence must be given multiple times if it occurs in multiple copies in the complex. The sequences can be specified either collectively as a model number chosen from the menu of currently open models (e.g. when that model contains multiple chains), or individually within a comma-separated list of UniProt identifiers or pasted-in amino acid sequences."<br class="">
>> <br class="">
>> E.g. something like<br class="">
>> <br class="">
>> ACCCC,ALLPAAAA<br class="">
>> <br class="">
>> I hope this helps,<br class="">
>> Elaine<br class="">
>> -----<br class="">
>> Elaine C. Meng, Ph.D. <br class="">
>> UCSF Chimera(X) team<br class="">
>> Department of Pharmaceutical Chemistry<br class="">
>> University of California, San Francisco<br class="">
>> <br class="">
>>> On Oct 5, 2022, at 4:12 AM, Dennis Poh via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" target="_blank" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class="">
>>> <br class="">
>>> Sorry, I couldn't generate the pdb from chimera colab - is there anything that i may have missed?<br class="">
>>> <br class="">
>>> -Dennis<br class="">
>>> <br class="">
>>> On Wed, 5 Oct 2022 at 17:11, Dennis Poh <<a href="mailto:pohdennis90@gmail.com" target="_blank" class="">pohdennis90@gmail.com</a>> wrote:<br class="">
>>> Hi <br class="">
>>> <br class="">
>>> I encounter a problem in multimer prediction with the sequences I use as input.<br class="">
>>> It's always indicating:<br class="">
>>> "Missing or invalid "sequences" argument: Sequences argument"<br class="">
>>> and " is not a chain specifier, alignment id, UniProt id, or sequence characters"<br class="">
>>> <br class="">
>>> The input format is always something like a fasta format:<br class="">
>>>> seq_id<br class="">
>>> ACCCC<br class="">
>>> <br class="">
>>>> seq_id2<br class="">
>>> ALLPAAAA<br class="">
>>> <br class="">
>>> May I know how I can rectify this?<br class="">
>>> <br class="">
>>> Thanks!<br class="">
>>> - Dennis<br class="">
>> <br class="">
> <br class="">
> <br class="">
> _______________________________________________<br class="">
> ChimeraX-users mailing list<br class="">
> <a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">
> Manage subscription:<br class="">
> <a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
<br class="">
</blockquote></div>
_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class=""><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>