Skip to content

Conversation

@timholy
Copy link
Collaborator

@timholy timholy commented May 3, 2025

This computes the standard chi angles for standard residues. The table was taken from http://www.mlb.co.jp/linux/science/garlic/doc/commands/dihedrals.html

This is best reviewed excluding whitespace differences, as the documentation has a lot of trailing whitespace and my editor is configured to delete it upon file saving. If this is undesirable, I can back this part of the change out. I decided to back it out, as most is trailing whitespace in docs for the column-based (and thus whitespace-sensitive) PDB file.

@timholy
Copy link
Collaborator Author

timholy commented May 4, 2025

Relies on #66 being merged first (only for the test)

This computes the standard `chi` angles for standard residues.
The table was taken from http://www.mlb.co.jp/linux/science/garlic/doc/commands/dihedrals.html
Copy link
Member

@jgreener64 jgreener64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be very useful. Just one small comment, merge when ready.

src/spatial.jl Outdated
ct = chitables[i]
rname = resname(res)
t = get(ct, rname, nothing)
t === nothing && throw(ArgumentError("Chi angle $i does not exist for residue $rname"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe check the residue name is a standard amino acid and throw a different error if it isn't, e.g. "Chi angles are only defined for standard amino acids, residue name is $rname".

@timholy timholy closed this May 7, 2025
@timholy timholy reopened this May 7, 2025
@codecov
Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.32%. Comparing base (58456ce) to head (a85ffd4).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage   94.99%   95.32%   +0.32%     
==========================================
  Files          14       14              
  Lines        1919     2030     +111     
==========================================
+ Hits         1823     1935     +112     
+ Misses         96       95       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timholy timholy merged commit ea51e2e into master May 7, 2025
11 of 17 checks passed
@timholy timholy deleted the teh/chi branch May 7, 2025 07:09
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.

3 participants