GearNet icon indicating copy to clipboard operation
GearNet copied to clipboard

Node classification tasks

Open mpedraza98 opened this issue 2 years ago • 3 comments

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

mpedraza98 avatar Sep 27 '23 16:09 mpedraza98

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.

Oxer11 avatar Oct 16 '23 13:10 Oxer11

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?

mpedraza98 avatar Oct 17 '23 08:10 mpedraza98

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.

Oxer11 avatar Nov 27 '23 14:11 Oxer11