Skip to content

Commit

Permalink
Add support author defined amino terminal residue e.g. NHE:Q1 -> NH2:…
Browse files Browse the repository at this point in the history
…HN1/HN2 (6hnh)
  • Loading branch information
yokochi47 committed Jul 30, 2024
1 parent 5ae4e7d commit 4e4ba53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wwpdb/utils/nmr/mr/ParserListenerUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ def translateToStdAtomName(atomId, refCompId=None, refAtomIdList=None, ccU=None,
return 'HD2'

elif refCompId == 'NH2':
if atomId in ('HN*', 'HN%', 'H*', 'H%', 'QH', 'QN') and not unambig:
if atomId in ('HN*', 'HN%', 'H*', 'H%', 'QH', 'QN', 'Q1') and not unambig:
return 'HN%'
if atomId in ('H', 'HN'):
return 'HN1'
Expand Down Expand Up @@ -3218,6 +3218,9 @@ def translateToStdResName(compId, refCompId=None, ccU=None):
if compId == 'HCY':
return 'CH' if refCompId == 'C' else 'DNR'

if compId == 'NHE' and refCompId == 'NH2':
return 'NH2'

if compId in ('RADE', 'RA'):
return 'A'
if compId in ('RCYT', 'RC'):
Expand Down

0 comments on commit 4e4ba53

Please sign in to comment.