Closed EyalRozenberg1 closed 2 years ago
Describe the bug While you calculate covalent edges based on atomic distances, you check whether two atoms are in the same chain or not. The condition you use there is wrong, and will always return False.
To Reproduce Steps to reproduce the behavior:
https://github.com/a-r-j/graphein/blob/553fd2615e69fcad74c6c2659b795faf6d1c798b/graphein/protein/edges/atomic.py#L137
not (chain_1 and chain_2)
To Fix Replace to not (chain_1 == chain_2) for the expected behavior.
not (chain_1 == chain_2)
best, Eyal
Thanks for the report, Eyal! Should be fixed in 1.5.1 :)
1.5.1
Describe the bug While you calculate covalent edges based on atomic distances, you check whether two atoms are in the same chain or not. The condition you use there is wrong, and will always return False.
To Reproduce Steps to reproduce the behavior:
not (chain_1 and chain_2)
condition is always False.To Fix Replace to
not (chain_1 == chain_2)
for the expected behavior.best, Eyal