Skip to content

Conversation

@IAlibay
Copy link
Member

@IAlibay IAlibay commented Jul 19, 2025

When finding host atoms, rather than just looking at the number of atoms in the atomgroup prior to evaluating how far they are from the guest anchor, we now check how many atoms there are after distance filtering.

Developers certificate of origin

@codecov
Copy link

codecov bot commented Jul 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.15%. Comparing base (048a56c) to head (da30e1a).
⚠️ Report is 110 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1440      +/-   ##
==========================================
- Coverage   95.19%   93.15%   -2.04%     
==========================================
  Files         165      165              
  Lines       12433    12446      +13     
==========================================
- Hits        11835    11594     -241     
- Misses        598      852     +254     
Flag Coverage Δ
fast-tests 93.15% <100.00%> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@atravitz atravitz changed the title Evaluate host idxs atoms in DSSP filtlers after distance evaluation [Issue #1418] Evaluate host idxs atoms in DSSP filters after distance evaluation [Issue #1418] Jul 21, 2025
)

if len(stable_ag) < 20:
if len(filtered_host_idxs) < 20:
Copy link
Contributor

Choose a reason for hiding this comment

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

naive question, why 20?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just a heuristic that Hannah and I decided upon. We'll probably refine in the future, but for now it's ~ 6 residues if you're using the backbone.

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
@IAlibay IAlibay requested a review from atravitz July 21, 2025 18:07

if filtered_host_idxs is None:
filtered_host_idxs = _host_atoms_search(
atomgroup=selected_host_ag,
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we also want to try out the protein chain selection (as in line 154) when no dssp filter is applied, or just use the selected host ag?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you raise an issue for this? We can address it separately.

Copy link
Contributor

Choose a reason for hiding this comment

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

Raised an issue!

@IAlibay IAlibay requested a review from hannahbaumann July 31, 2025 11:22
@hannahbaumann
Copy link
Contributor

I think the two tests are failing because the selected residues are now outside the 1.5nm distance
host_selection="backbone and resnum 15:25",
maybe we could use
host_selection="backbone and resnum 212:221" instead.

@github-actions
Copy link

No API break detected ✅

@IAlibay IAlibay enabled auto-merge July 31, 2025 13:03
@IAlibay IAlibay merged commit 16124bf into main Jul 31, 2025
13 checks passed
@IAlibay IAlibay deleted the issue-1418 branch July 31, 2025 13:04
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.

5 participants