Skip to content

Commit

Permalink
Feat: V0.43 Add provenance to the aggregated "is_subject_of_investiga…
Browse files Browse the repository at this point in the history
…tion" ligand validation flag.
  • Loading branch information
jdwestbrook committed Jun 10, 2021
1 parent ed53cb2 commit 2449818
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
2-Jun-2021 - V0.39 Suppress voluminous diagnostics for non-corresponding Pfam data
2-Jun-2021 - V0.40 Add support to filter redundant records in category subsets
5-Jun-2021 - V0.41 Prune test cases
10-Jun-2021 - V0.42 Adding calculation of average occupancy __getAtomSiteInfo() in DictMethodCommonUtils()
10-Jun-2021 - V0.42 Adding calculation of average occupancy __getAtomSiteInfo() in DictMethodCommonUtils()
10-Jun-2021 - V0.43 Add provenance to the aggregated "is_subject_of_investigation" ligand validation flag.
2 changes: 1 addition & 1 deletion rcsb/utils/dictionary/DictMethodCommonUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def getEntityFormulaWeightBounds(self, dataContainer):
return wD["fwTypeBoundD"] if "fwTypeBoundD" in wD else {}

def getTargetComponents(self, dataContainer):
"""Return a components targets.
"""Return the author identified components targeted in the current entry.
Args:
dataContainer (object): mmcif.api.DataContainer object instance
Expand Down
5 changes: 5 additions & 0 deletions rcsb/utils/dictionary/DictMethodEntityInstanceHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1813,13 +1813,18 @@ def buildInstanceValidationScores(self, dataContainer, catName, **kwargs):
cObj.setValue(isBest, "is_best_instance", ii)
#
isTarget = "N"
isTargetProv = None
if compId in ccTargets:
isTarget = "Y"
isTargetProv = "Author"
elif compId in excludeList:
isTarget = "N"
elif self.__ccP.getFormulaWeight(compId) and self.__ccP.getFormulaWeight(compId) > 150.0:
isTarget = "Y"
isTargetProv = "RCSB"
cObj.setValue(isTarget, "is_subject_of_investigation", ii)
if isTarget == "Y":
cObj.setValue(isTargetProv, "is_subject_of_investigation_provenance", ii)
#
ii += 1
#
Expand Down
2 changes: 1 addition & 1 deletion rcsb/utils/dictionary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
__author__ = "John Westbrook"
__email__ = "[email protected]"
__license__ = "Apache 2.0"
__version__ = "0.42"
__version__ = "0.43"

0 comments on commit 2449818

Please sign in to comment.