Closed universvm closed 1 year ago
Hi @universvm the add_dssp_function
is really used internally. Could you try with some of the functions here? I expect this will resolve your issue.
That's what I mentioned in the post. I'm doing this after the creation of the graph:
g2 = add_dssp_feature(g, feature="phi")
It would be more ideal if it was taken as part of the parameters when constructing a graph. Also the documentation seems to use it too although it is commented out.
It's not a problem, just a bit slow.
Ah, I spotted this issue. The docs don’t help much; Node metadata functions are of the form func(node: str, node_data: Dict[str, Any])
. IIRC the DSSP funcs should be used as a graph_metadata_function
as we require access to the whole protein in order to compute them, though we add them as node features. This is admittedly super confusing (and I should do something about this). It’s probably smart for us to move over to using PyDSSP anyway.
Yeah makes sense! I think the PyDSSP may simplify things a bit, especially during installation
Will close for now. Feel free to ping me if this doesn’t work!
Describe the bug I'm unable to add dssp features to atoms
To Reproduce Simply using some parameters like these:
Which also appears to be the right way at least from: https://graphein.ai/notebooks/pscdb_baselines.html?highlight=add_dssp_feature#Transformation-from-Raw-Structure-to-ML-ready-Datasets-Construction-with-Graphein
My current workaround is to build the graph and then use
g2 = add_dssp_feature(g, feature="phi")
But I'd need to do these for all the fetures
Expected behavior Adding DSSP as node features.
Screenshots Error message when using add_dssp_feature
Desktop (please complete the following information):
Additional context Add any other context about the problem here.