FastFold icon indicating copy to clipboard operation
FastFold copied to clipboard

Multimer model scores

Open s-kyungyong opened this issue 2 years ago • 7 comments

Hi!

Alphafold's multimer model produces iptm scores that are saved within the pickle file as below:

distogram
experimentally_resolved
masked_msa
predicted_aligned_error
predicted_lddt
structure_module
plddt
aligned_confidence_probs
max_predicted_aligned_error
ptm
iptm
ranking_confidence

However, it seems like fastfold's output does not contain this data

msa
pair
single
sm
final_atom_positions
final_atom_mask
final_affine_tensor
lddt_logits
plddt
distogram_logits
masked_msa_logits
experimentally_resolved_logits
tm_logits
predicted_tm_score
aligned_confidence_probs
predicted_aligned_error
max_predicted_aligned_error

Is it possible to get the iptm scores?

Thanks!

s-kyungyong avatar Feb 25 '23 06:02 s-kyungyong

hello, I add iptm for results in branch add_iptm_in_heads, can you help to check if the value is the same as AlphaFold?

Shenggan avatar Feb 27 '23 12:02 Shenggan

Hi @Shenggan. Thanks for the update! I used precomputed MSAs for both fastfold and alphafold, so I know the inputs are the same. But I haven't checked whether other parameters are variable at default. There are some variations in the iptm scores. Is this a reasonable amount of differences you are expecting?

Fastfold:
AT1G52380_and_AT5G48810_model_1_multimer.pkl: iptm 0.11; plddt 48.45; ptm 0.32
AT1G52380_and_AT5G48810_model_2_multimer.pkl: iptm 0.09; plddt 45.71; ptm 0.3
AT1G52380_and_AT5G48810_model_3_multimer.pkl: iptm 0.08; plddt 44.54; ptm 0.3
AT1G52380_and_AT5G48810_model_4_multimer.pkl: iptm 0.08; plddt 45.12; ptm 0.29
AT1G52380_and_AT5G48810_model_5_multimer.pkl: iptm 0.08; plddt 43.84; ptm 0.29



Alphafold:
result_model_1_multimer_v3_pred_0.pkl: iptm 0.16; plddt 46.66; ptm 0.3
result_model_2_multimer_v3_pred_0.pkl: iptm 0.16; plddt 47.08; ptm 0.31
result_model_3_multimer_v3_pred_0.pkl: iptm 0.16; plddt 45.26; ptm 0.3
result_model_4_multimer_v3_pred_0.pkl: iptm 0.15; plddt 45.1; ptm 0.29
result_model_5_multimer_v3_pred_0.pkl: iptm 0.12; plddt 45.02; ptm 0.28

s-kyungyong avatar Mar 17 '23 05:03 s-kyungyong

Hi, it seems not so reasonable. Could you please share your input to help us reproduce it?

Gy-Lu avatar Mar 23 '23 01:03 Gy-Lu

Hi @Gy-Lu! I uploaded the precomputed alignments I used and model 1 outputs from fastfold and alphafold here.

For fastfold, I used: python /global/scratch/users/skyungyong/Software/FastFold/inference.py --output_dir ./ --model_preset multimer --use_precomputed_alignments Alignments --enable_workflow --inplace --param_path /global/scratch/users/skyungyong/Software/FastFold/data/params/params_model_1_multimer_v3.npz --model_name model_1_multimer AT1G52380_and_AT5G48810.fasta /global/scratch/users/skyungyong/Software/alphafold-multimer-v2.2.2-080922/Database/pdb_mmcif/mmcif_files/

For alphafold, I allowed it to use the precomputed MSAs, without relaxation. For both, top 4 templates were used regardless of their release dates.

Thank you!

s-kyungyong avatar Mar 23 '23 03:03 s-kyungyong

Hi, I have reproduced this problem. And it would be fixed soon.

Gy-Lu avatar Mar 25 '23 09:03 Gy-Lu

Hi!

Is there any update on this? Would it also be possible to compute the iptm score given the pickle file produced during the inference? I have several thousand multimer structures, and it would be a waste to rerun the prediction to get the score.

Thank you!

s-kyungyong avatar Apr 09 '23 10:04 s-kyungyong

Hi, I have made some experiments. And I found it is the preprocessing led to the difference, seems there is some randomness in preprocessing. Can you rerun alphafold with precomputed aligments for us to see if the result is consistent?

Besides, to my understanding, you want to calculate iptm score for given structures?

Gy-Lu avatar Apr 14 '23 09:04 Gy-Lu