Skip to content

Commit

Permalink
added "Display extended PDB ID"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Peisach committed Dec 10, 2024
1 parent c41cf7a commit 3d4dc64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wwpdb/apps/entity_transform/depict/ProcessPrdSummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ def __readSplitMergePolymerResidueResult(self):
continue
#
if d['linkage_info'] == 'linked':
# For the time being, only get self.__combResidueFlag value from 'pdbx_match_result' category,
# not from 'pdbx_merge_polymer_residue_info' category.
#self.__combResidueFlag = True
self.__image_data.append((d['merge_id'], d['merge_id'].upper()))
#
#
Expand Down
6 changes: 6 additions & 0 deletions wwpdb/apps/entity_transform/webapp/EntityWebApp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
##
# File: EntityWebApp.py
# Date: 02-Oct-2012
#
# Updates:
# 09-Dec-2024 zf get ext_pdb_id from '_database_2.pdbx_database_accession' field
#
##
"""
Entity fixer web request and response processing modules.
Expand Down Expand Up @@ -1226,6 +1229,9 @@ def __getInputFileInfo(self, inputFileName):
dbcode = d['database_code'].upper().strip()
if dbname == 'PDB':
self.__pdbId = dbcode
if ('pdbx_database_accession' in d) and d['pdbx_database_accession']:
self.__pdbId = d['pdbx_database_accession'].strip()
#
self.__lfh.write("+EntityWebApp.__getInputFileInfo() pdbId %s\n" % self.__pdbId)
elif dbname == 'WWPDB':
self.__identifier = dbcode
Expand Down

0 comments on commit 3d4dc64

Please sign in to comment.