-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Modify graphs.py to handle insertions when {'insertions': True}
#223
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportBase: 40.27% // Head: 47.93% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #223 +/- ##
==========================================
+ Coverage 40.27% 47.93% +7.66%
==========================================
Files 48 85 +37
Lines 2811 5411 +2600
==========================================
+ Hits 1132 2594 +1462
- Misses 1679 2817 +1138
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Reference Issues/PRs
The centroid coordinates of protein graphs contain NaN values when the PDB file contains at least one insertion and when
{'insertions': True}
is provided to ProteinGraphConfigWhat does this implement/fix? Explain your changes
Adding the
insertion
identifier in the node_id and in the centroid atom grouping function solves the problemWhat testing did you do to verify the changes in this PR?
Graph creation for 1i7z.
ex:
before modifications: ['A:ASP:1', 'A:LEU:2', 'A:PRO:95', 'A:TRP:96', ...]
G.coords #=> contains NaNs
after modifications:before modifications: ['A:ASP:1', 'A:LEU:2', 'A:PRO:95', 'A:TRP:96', ...]
G.coords #=> no NaN
Pull Request Checklist
./CHANGELOG.md
file (if applicable)./graphein/tests/*
directories (if applicable)./notebooks/
(if applicable)python -m py.test tests/
and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g.,python -m py.test tests/protein/test_graphs.py
)black .
andisort .