Skip to content

Commit

Permalink
fix bug caused by residue number = 0 in calRMSD
Browse files Browse the repository at this point in the history
  • Loading branch information
giangpth committed Dec 21, 2023
1 parent 78ae469 commit 9b32545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pythonScript/calRMSD.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ def apply(path_exp, path_align, path_out, ligname, dist = 5, debug=True):


atom_pr_align = pr_align.df['ATOM']

atom_pr_ex = pr_exp.df['ATOM']
# some time the res_id start with 0, it causes problem, delete this one
atom_pr_ex = atom_pr_ex.drop(atom_pr_ex[atom_pr_ex['residue_number'] == 0].index)

al_seq = getseq(atom_pr_align)
ex_seq = getseq(atom_pr_ex)
Expand Down

0 comments on commit 9b32545

Please sign in to comment.