update conversion#218
Conversation
|
SonarCloud Quality Gate failed.
|
|
Thanks for the PR @manonreau!! I'll check this out tomorrow. Do you think you'd be able to add an appropriate unit test? |
|
Hi @manonreau could you provide the code for |
|
Changes added in #220 |
Hi @a-r-j, Thank you very much for considering my PRs. I just removed the You should be able to write a test now. |
|
@manonreau I see. Would you be willing to share it anyway? It could be useful :) And thanks for the contributions!! |
|
Sure, here it is: I later noticed that the onehot encoding is already provided by Graphein :) |









Reference Issues/PRs
Fixes #217
What does this implement/fix? Explain your changes
The edge features are now given as a list of lists instead of a list of string during the networkx object to pyg object conversion
What testing did you do to verify the changes in this PR?
Pull Request Checklist
./CHANGELOG.mdfile (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 .