Closed kamurani closed 1 year ago
Hey @kamurani good catch! This seems like an easy fix, requiring only another case here: https://github.com/a-r-j/graphein/blob/87985a157623a92f01e7942e048fbdae32e26f14/graphein/protein/graphs.py#L496
Any chance you could make a PR?
Yep i'll fix and PR when I get the chance. Cheers!
I'm trying to extract sequences from graphs loaded from PDB files.
When constructing a residue-granularity graph from the protein, the sequence (stored at
g.graph[f'sequence_{chain_id}'
is as expected. However, when usingatom
granularity, the graph's sequence attribute contains repeated residue letters (I am guessing for each atom in the amino acid).