graphein
graphein copied to clipboard
Refactor granularity kwarg in `protein.process_dataframe`
trafficstars
I think you're right about granularity - it's doing too much. The idea is to have control over:
- What the nodes are in a residue graph (e.g. a-Carbon "CA", b-Carbon "CB")
- Whether to use that atom position or compute residue centroids
- Whether or not to build a residue-graph as above or an atom-graph
Originally posted by @a-r-j in https://github.com/a-r-j/graphein/issues/27#issuecomment-752674289
Refactoring out this little piece of the function will probably help with longer-term maintenance.