Describe the solution you'd like
Currently, we add sequence-based edges in the form of graphein.protein.edges.distance.add_peptide_bonds, which joins adjacent residues with an edge (e.g. separation=0). It would be useful to generalise this function to add edges at a specified interval. E.g:
g = construct_graph(pdb_code="3eiy")
g = add_peptide_bonds(g, step = 1)
Would add edges between nodes:
1 - 3
2 - 4
3 - 5
4 - 6
5 - 7
...
and
g = construct_graph(pdb_code="3eiy")
g = add_peptide_bonds(g, step = 5)
Describe the solution you'd like Currently, we add sequence-based edges in the form of
graphein.protein.edges.distance.add_peptide_bonds
, which joins adjacent residues with an edge (e.g. separation=0). It would be useful to generalise this function to add edges at a specified interval. E.g:Would add edges between nodes:
and
Would add edges between nodes: