ProteinNPT: MSA processing error

Hello,

first of all, thank you so much for this amazing work!

Im trying to follow the pipeline.sh script with my own DMS data, but Im getting the following error in the MSA processing

Computing MSA sequence weights
Proportion of sequences dropped due to fraction of gaps: 33.33%
Proportion of non-focus columns removed: 0.0%
Traceback (most recent call last):
  File "/home/projects/ProteinNPT/scripts/pipeline.py", line 98, in <module>
    _ = MSA_processing(
        ^^^^^^^^^^^^^^^
  File "/home/conda_envs/proteinnpt_env/lib/python3.12/site-packages/proteinnpt/utils/msa_utils.py", line 57, in __init__
    self.gen_alignment()
  File "/home/conda_envs/proteinnpt_env/lib/python3.12/site-packages/proteinnpt/utils/msa_utils.py", line 114, in gen_alignment
    start,stop = focus_loc.split("-")
    ^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

Not sure if the issue comes from the format of the MSA file. At the moment, Im using an MSA in a3m format (which looks as a fasta alignment).

Many thanks!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 42 (21 by maintainers)

Most upvoted comments

Thanks for the help. I will close this issue and continue on #12

Hi @loodvn! thanks for the heads up on this. I follow your advice on scenario 2 and it worked just fine ๐Ÿ˜ƒ

Please keep me posted on any new functionalities, specially the one for predicting on new mutant sequences! Thanks again.

thank you so much @pascalnotin ! I think I made it work ๐Ÿ˜ƒ

Looking forward for the update!

Regarding the zero-shot fitness computation, the variable name for mutant triplets expected by the code is mutant. If this variable was not present in the assay file, we were setting its values to default โ€œmutant_iโ€. In the new version we just pushed (thanks @loodvn for the suggestion), if the variable is not present, we are computing these mutant triplets automatically by comparing target_seq and the various mutated sequences. With that update to the code you should thus be able to leverage zero-shot fitness predictions from MSA Transformer as auxiliary labels within ProteinNPT (you would now need to remove --deactivate_zero_shot_prediction from the pipeline.py parameters, and use the initial default parameters as per the README file).