Skip to content
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

add total frustration functions and an example notebook #9

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

eagalpern
Copy link
Collaborator

Description

I added functions at the end of the frustration.py file to compute energy using the proper masks for segments "in context". I also included a function to compute total frustration. For the frustration of an "independent" fragment, the total frustration should be computed using a sliced pdb model using only that fragment.

The new functions use explicit decoy computation. Sequence decoys are created using the lenght and amino acid composition of the native sequence, and their energy is computed directly. An "approximation" for the total configurational frustration is available also.

I added the total frustration function to the Frustratometer class.
I created a new example notebook to use these new functions

Todos

  • Improve the description of the new functions in the frustration.py file
  • Add functions to compute the sliding window frustration (using the "in context" energy computation).

Note

The total frustration that can be directly computed using this module is not directly comparable with the PNAS 2024 results for exon relative total frustration. For that, it should be taken into account that the sequences and potts models do not cover the complete PDBs and that the native sequences used were not PDB sequences, but instead the ones having the analyzed exon.

@HanaJaafari HanaJaafari merged commit 441a129 into main Feb 5, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants