Closed anton-bushuiev closed 1 year ago
Hi 👋!
Is remove_insertions here on purpose or just a legacy part from the times when insertion codes were always removed? https://github.com/a-r-j/graphein/blob/649a490505740a266b26976807e7f303c2a32ff0/graphein/protein/graphs.py#L540
remove_insertions
Now it leads to an error, when running add_beta_carbon_vector(g) on any g with underlying insertions because rgroup_df does not contain beta carbons of inserted residues when the difference vectors are computed.
add_beta_carbon_vector(g)
g
rgroup_df
Good spot! Yep, this should be removed. I think now that insertion codes are part of residue IDs this shouldn't create any downstream problems.
I found another related bug, so I'll make a PR
Hi 👋!
Is
remove_insertions
here on purpose or just a legacy part from the times when insertion codes were always removed? https://github.com/a-r-j/graphein/blob/649a490505740a266b26976807e7f303c2a32ff0/graphein/protein/graphs.py#L540Now it leads to an error, when running
add_beta_carbon_vector(g)
on anyg
with underlying insertions becausergroup_df
does not contain beta carbons of inserted residues when the difference vectors are computed.