a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
1.03k stars 131 forks source link

Adds one-hot encoding of amino acids types as node feature #116

Closed a-r-j closed 2 years ago

a-r-j commented 2 years ago

Reference Issues/PRs

N/A

What does this implement/fix? Explain your changes

Adds onehot encoding of Amino acid types as node features.

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

Includes example test and execution test.

sonarcloud[bot] commented 2 years ago

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 commented 2 years ago

Codecov Report

Merging #116 (9731bf7) into master (8123f42) will increase coverage by 1.12%. The diff coverage is 37.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
+ Coverage   40.27%   41.39%   +1.12%     
==========================================
  Files          48       50       +2     
  Lines        2811     3167     +356     
==========================================
+ Hits         1132     1311     +179     
- Misses       1679     1856     +177     
Impacted Files Coverage Δ
graphein/protein/analysis.py 0.00% <0.00%> (ø)
graphein/protein/visualisation.py 12.93% <9.67%> (-3.29%) :arrow_down:
graphein/protein/graphs.py 74.21% <66.66%> (+2.51%) :arrow_up:
graphein/protein/utils.py 68.00% <73.33%> (+16.78%) :arrow_up:
graphein/protein/subgraphs.py 73.64% <73.64%> (ø)
graphein/protein/features/nodes/amino_acid.py 84.48% <88.23%> (+0.76%) :arrow_up:
graphein/__init__.py 100.00% <100.00%> (ø)
graphein/protein/__init__.py 84.61% <100.00%> (+1.28%) :arrow_up:
graphein/protein/features/nodes/dssp.py 90.12% <100.00%> (+65.44%) :arrow_up:
graphein/protein/resi_atoms.py 100.00% <100.00%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0b5a7c1...9731bf7. Read the comment docs.