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 interactions iterator #210

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Add interactions iterator #210

merged 2 commits into from
Jul 1, 2024

Conversation

cbouy
Copy link
Member

@cbouy cbouy commented Jul 1, 2024

Adds custom .interactions() iterator for values in fp.ifp that allows doing:

for index, ifp in fp.ifp.items():
    for interaction in ifp.interactions():
        print(interaction.ligand, interaction.protein, interaction.name, interaction.metadata)

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.47%. Comparing base (9be3cea) to head (cc30735).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #210      +/-   ##
==========================================
+ Coverage   94.43%   94.47%   +0.04%     
==========================================
  Files          20       20              
  Lines        1473     1484      +11     
==========================================
+ Hits         1391     1402      +11     
  Misses         82       82              

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

@cbouy cbouy merged commit 525e9dc into master Jul 1, 2024
13 checks passed
@cbouy cbouy deleted the interaction-data-iterator branch July 1, 2024 21:23
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.

1 participant