Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions rnapro/data/featurizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ def get_prot_nuc_frame(token: Token, centre_atom: Atom) -> tuple[int, list[int]]

idx_in_atom_indices = []
for i in abc_atom_name:
if centre_atom.mol_type == "protein" and "N" not in token.atom_names:
return 0, [-1, -1, -1]
elif centre_atom.mol_type != "protein" and "C1'" not in token.atom_names:
if i not in token.atom_names:
return 0, [-1, -1, -1]
idx_in_atom_indices.append(token.atom_names.index(i))
# Protein/DNA/RNA always has frame
Expand Down