Skip to content

Commit

Permalink
DAOTHER-8905: Combine spectral peak lists written in software native …
Browse files Browse the repository at this point in the history
…formats into single
  • Loading branch information
yokochi47 committed Dec 16, 2024
1 parent 035b498 commit c7720a1
Show file tree
Hide file tree
Showing 65 changed files with 6,995 additions and 2,778 deletions.
22 changes: 22 additions & 0 deletions wwpdb/utils/nmr/AlignUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,28 @@ def getRestraintFormatName(fileType: str, ambig: bool = False) -> str:
if fileType == 'nm-res-xpl':
return 'XPLOR-NIH/CNS restraint' if ambig else 'XPLOR-NIH restraint'

if fileType == 'nm-aux-xea':
return 'XEASY PROT assignment'

if fileType == 'nm-pea-ari':
return 'ARIA spectral peak list'
if fileType == 'nm-pea-pip':
return 'NMRPIPE spectral peak list'
if fileType == 'nm-pea-spa':
return 'SPARKY spectral peak list'
if fileType == 'nm-pea-top':
return 'TOPSPIN spectral peak list'
if fileType == 'nm-pea-viw':
return 'NMRVIEW spectral peak list'
if fileType == 'nm-pea-vnm':
return 'VNMR spectral peak list'
if fileType == 'nm-pea-xea':
return 'XEASY spectral peak list'
if fileType == 'nm-pea-xwi':
return 'XWINNMR spectral peak list'
if fileType == 'nm-pea-any':
return 'other spectral peak list'

return 'other restraint'


Expand Down
5 changes: 3 additions & 2 deletions wwpdb/utils/nmr/NmrDpReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
# 19-Nov-2024 M. Yokochi - add support for pH titration data (NMR restraint remediation)
# 22-Nov-2024 M. Yokochi - add 'nm-res-noa' file type for CYANA NOA (NOE Assignment) file
# 05-Dec-2024 M. Yokochi - add 'nm-aux-xea' file type for XEASY PROT (Assignment) file (NMR restraint remediation)
# 16-Dec-2024 M. Yokochi - add 'nm-pea-vnm' file types for VNMR spectral list file (NMR restraint remediation)
##
""" Wrapper class for NMR data processing report.
@author: Masashi Yokochi
Expand Down Expand Up @@ -1759,7 +1760,7 @@ def __init__(self, verbose: bool = True, log: IO = sys.stdout):
'nm-res-noa', 'nm-res-oth', 'nm-res-ros', 'nm-res-sax', 'nm-res-syb',
'nm-res-xpl',
'nm-pea-any', 'nm-pea-ari', 'nm-pea-pip', 'nm-pea-spa', 'nm-pea-top',
'nm-pea-vie', 'nm-pea-xea', 'nm-pea-xwi')
'nm-pea-vie', 'nm-pea-vnm', 'nm-pea-xea', 'nm-pea-xwi')
self.content_types = ('model',
'nmr-data-nef', 'nmr-data-str',
'nmr-chemical-shifts', 'nmr-restraints', 'nmr-peaks')
Expand Down Expand Up @@ -1868,7 +1869,7 @@ def __init__(self, verbose: bool = True, log: IO = sys.stdout):
self.__lfh = log

self.items = ('model_poly_seq_vs_coordinate', 'model_poly_seq_vs_nmr_poly_seq', 'nmr_poly_seq_vs_model_poly_seq',
'model_poly_seq_vs_mr_restraint', 'model_poly_seq_vs_mr_topology',
'model_poly_seq_vs_mr_restraint', 'model_poly_seq_vs_mr_topology', 'model_poly_seq_vs_spectral_peak',
'nmr_poly_seq_vs_chem_shift', 'nmr_poly_seq_vs_dist_restraint', 'nmr_poly_seq_vs_dihed_restraint',
'nmr_poly_seq_vs_rdc_restraint', 'nmr_poly_seq_vs_spectral_peak', 'nmr_poly_seq_vs_spectral_peak_alt',
'nmr_poly_seq_vs_noepk_restraint', 'nmr_poly_seq_vs_jcoup_restraint',
Expand Down
Loading

0 comments on commit c7720a1

Please sign in to comment.