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

Node classification tasks #51

Open
mpedraza98 opened this issue Sep 27, 2023 · 3 comments
Open

Node classification tasks #51

mpedraza98 opened this issue Sep 27, 2023 · 3 comments

Comments

@mpedraza98
Copy link

Hi! First of all great job! I have been trying to do node classification in residue view, using my own node labels. However, I haven't been able to configure the NodePropertyPrediction task to use those labels instead of predicting the residue features. Do you have any guidance on how I can proceed to do this? Any help is appreciated

@Oxer11
Copy link
Collaborator

Oxer11 commented Oct 16, 2023

Hi! The NodePropertyPrediction task is orginally defined for sequence-based models. To adapt it to structure-based models, maybe you just need to add a graph_construction_model part following what we do in task.PropertyPrediction.

@mpedraza98
Copy link
Author

Thank you for your answer. I have a couple more questions, I have been trying to modify the AttributeMasking task for my node classification problem, however it is not clear to me how is the relation between the nodes id and the amino acids in the sequence. The only clue I've found so far is this note in the data/protein.py file "Nodes may have a different order with residues." Can you guide me on how to proceed?

@Oxer11
Copy link
Collaborator

Oxer11 commented Nov 27, 2023

Sorry for the late response. In data.Protein, we usually use node and atom interchangably, while residue corresponds to the real residue in proteins. You can use data.Protein.atom2residue to learn which residue an atom belongs to.

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

No branches or pull requests

2 participants