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

fix disulphide bond node filtering #205 #209

Merged
merged 4 commits into from Sep 16, 2022
Merged

fix disulphide bond node filtering #205 #209

merged 4 commits into from Sep 16, 2022

Conversation

a-r-j
Copy link
Owner

@a-r-j a-r-j commented Sep 14, 2022

Reference Issues/PRs

#205

What does this implement/fix? Explain your changes

Disulfide bond edges were adding nodes to the graph (e.g. if we are only looking at a graph of chain A, nodes from chain B were added). This PR adds a filtering step to ensure identified ds bonds are only added if both nodes are present in the graph.

What testing did you do to verify the changes in this PR?

Pull Request Checklist

  • Added a note about the modification or contribution to the ./CHANGELOG.md file (if applicable)
  • Added appropriate unit test functions in the ./graphein/tests/* directories (if applicable)
  • Modify documentation in the corresponding Jupyter Notebook under ./notebooks/ (if applicable)
  • Ran 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)
  • Checked for style issues by running black . and isort .

a-r-j and others added 2 commits September 14, 2022 19:00
* add load local pdb_files to ProteinGraphDataset

* load local pdb_files from a list

* test and black and isort and add CHANGELOG.md

* docstring formatting

* comment jupyter; just run  and ssh or vscode to interact with container

* install dependency of jupyter nbextension

* Fixed Dockerfile and unit tests

* Update chage log

Co-authored-by: xutingfeng <xutingfeng@big.ac.cn>
Co-authored-by: Arian Jamasb <arjamasb@gmail.com>
Co-authored-by: ryan <ryan.greenhalgh@hotmail.co.uk>

Co-authored-by: Nicktf <49584439+1511878618@users.noreply.github.com>
Co-authored-by: xutingfeng <xutingfeng@big.ac.cn>
Co-authored-by: ryan <ryan.greenhalgh@hotmail.co.uk>
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sonarcloud
Copy link

sonarcloud bot commented Sep 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

Codecov Report

Merging #209 (8abdb2a) into master (8123f42) will increase coverage by 7.62%.
The diff coverage is 51.22%.

@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
+ Coverage   40.27%   47.89%   +7.62%     
==========================================
  Files          48       92      +44     
  Lines        2811     5533    +2722     
==========================================
+ Hits         1132     2650    +1518     
- Misses       1679     2883    +1204     
Impacted Files Coverage Δ
graphein/grn/parse_trrust.py 37.77% <ø> (ø)
graphein/ml/diffusion.py 0.00% <0.00%> (ø)
graphein/ppi/edges.py 100.00% <ø> (ø)
graphein/ppi/graph_metadata.py 0.00% <ø> (ø)
graphein/ppi/graphs.py 54.34% <ø> (ø)
graphein/ppi/parse_biogrid.py 75.00% <ø> (ø)
graphein/ppi/visualisation.py 0.00% <0.00%> (ø)
graphein/protein/analysis.py 0.00% <0.00%> (ø)
graphein/protein/edges/intramolecular.py 22.68% <0.00%> (ø)
graphein/protein/features/sequence/utils.py 28.00% <0.00%> (+3.00%) ⬆️
... and 80 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@a-r-j a-r-j merged commit 6c4ffd0 into master Sep 16, 2022
@a-r-j a-r-j deleted the disulfide_fix branch November 10, 2022 12:45
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.

None yet

2 participants