Skip to content

Commit

Permalink
Handle cases with RMSD is greater than 100 - this causes the RMSD col…
Browse files Browse the repository at this point in the history
…umn and the Z column of the DALI file to merge...
  • Loading branch information
jnoms committed May 16, 2024
1 parent 188b76c commit 0ea4a15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sat/scripts/aln_parse_dali.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ def aln_parse_dali_main(args):

# Otherwise, we're at alignments
line = line.split()
_, chain, z, rmsd, alnlen, tlen, pident, *_ = line
try:
_, chain, z, rmsd, alnlen, tlen, pident, *_ = line
except ValueError:
msg = (
f"Failed to parse LINE: {line}. This probably happened because the"
"RMSD is above 100 so its column merged with z score column."
)
print(msg)

# Removing the chain identifier (-A for chain A, etc)
target_id = chain[:-2]
Expand Down

0 comments on commit 0ea4a15

Please sign in to comment.