rcsb.exdb 1.21__tar.gz → 1.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/HISTORY.txt +1 -0
- {rcsb_exdb-1.21/rcsb.exdb.egg-info → rcsb_exdb-1.22}/PKG-INFO +1 -1
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/cli/__init__.py +1 -1
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/LigandNeighborMappingExtractor.py +3 -3
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/LigandNeighborMappingProvider.py +1 -1
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testLigandNeighborMappingProvider.py +2 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testObjectExtractor.py +1 -1
- {rcsb_exdb-1.21 → rcsb_exdb-1.22/rcsb.exdb.egg-info}/PKG-INFO +1 -1
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/LICENSE +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/MANIFEST.in +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/README.md +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/branch/BranchedEntityExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/branch/GlycanProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/branch/GlycanUtils.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/branch/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/ChemRefEtlWorker.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/ChemRefExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/ChemRefMappingProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/PubChemDataCacheProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/PubChemEtlWrapper.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/PubChemIndexCacheProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/chemref/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/citation/CitationAdapter.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/citation/CitationExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/citation/CitationUtils.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/citation/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/cli/ExDbExec.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/entry/EntryInfoProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/entry/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/AnnotationExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/PolymerEntityExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/ReferenceSequenceAnnotationAdapter.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/ReferenceSequenceAnnotationProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/ReferenceSequenceAssignmentAdapter.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/ReferenceSequenceAssignmentProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/ReferenceSequenceCacheProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/TaxonomyExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/UniProtCoreEtlWorker.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/UniProtExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/seq/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/fixtureDictMethodResourceProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/fixturePdbxLoader.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testAnnotationExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testBranchedEntityExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testChemRefLoader.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testChemRefMappingProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testCitationAdapter.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testCitationExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testCitationUtils.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testEntryInfoEtlWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testEntryInfoProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testExDbWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testGlycanEtlWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testGlycanProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testGlycanUtils.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testObjectTransformer.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testObjectUpdater.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testPolymerEntityExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testPubChemDataCacheProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testPubChemEtlWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testPubChemEtlWrapper.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testPubChemIndexCacheProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceAnnotationAdapter.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceAssignmentAdapter.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceAssignmentAdapterValidate.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceAssignmentProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceCacheProvider.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testTaxonomyExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testTreeNodeListWorker.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testUniProtCoreEtlWorker.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testUniProtExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tree/TreeNodeListWorker.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tree/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/utils/ObjectAdapterBase.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/utils/ObjectExtractor.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/utils/ObjectTransformer.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/utils/ObjectUpdater.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/utils/ObjectValidator.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/utils/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/wf/EntryInfoEtlWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/wf/ExDbWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/wf/GlycanEtlWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/wf/PubChemEtlWorkflow.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/wf/__init__.py +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb.exdb.egg-info/SOURCES.txt +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb.exdb.egg-info/dependency_links.txt +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb.exdb.egg-info/entry_points.txt +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb.exdb.egg-info/not-zip-safe +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb.exdb.egg-info/requires.txt +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb.exdb.egg-info/top_level.txt +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/requirements.txt +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/setup.cfg +0 -0
- {rcsb_exdb-1.21 → rcsb_exdb-1.22}/setup.py +0 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
# Utilities to extract ligand neighbor mapping details from the exchange collections.
|
|
6
6
|
#
|
|
7
7
|
# Updates:
|
|
8
|
+
# 17-Jul-2024 dwp Stop fetching and including rcsb_ligand_neighbors.ligand_is_bound, since no longer populating that field
|
|
8
9
|
#
|
|
9
10
|
##
|
|
10
11
|
__docformat__ = "google en"
|
|
@@ -58,7 +59,6 @@ class LigandNeighborMappingExtractor(object):
|
|
|
58
59
|
"rcsb_polymer_entity_instance_container_identifiers.entity_id",
|
|
59
60
|
"rcsb_polymer_entity_instance_container_identifiers.asym_id",
|
|
60
61
|
"rcsb_ligand_neighbors.ligand_comp_id",
|
|
61
|
-
"rcsb_ligand_neighbors.ligand_is_bound",
|
|
62
62
|
],
|
|
63
63
|
)
|
|
64
64
|
eCount = obEx.getCount()
|
|
@@ -71,8 +71,8 @@ class LigandNeighborMappingExtractor(object):
|
|
|
71
71
|
entityId = peiD["rcsb_polymer_entity_instance_container_identifiers"]["entity_id"]
|
|
72
72
|
ky = entryId + "_" + entityId
|
|
73
73
|
for lnD in peiD["rcsb_ligand_neighbors"] if "rcsb_ligand_neighbors" in peiD else []:
|
|
74
|
-
if "ligand_comp_id" in lnD
|
|
75
|
-
rD.setdefault(ky, set()).add(
|
|
74
|
+
if "ligand_comp_id" in lnD:
|
|
75
|
+
rD.setdefault(ky, set()).add(lnD["ligand_comp_id"])
|
|
76
76
|
else:
|
|
77
77
|
logger.warning("%s %s missing details lnD %r", entryId, entityId, lnD)
|
|
78
78
|
except Exception as e:
|
|
@@ -56,7 +56,7 @@ class LigandNeighborMappingProvider(StashableBase):
|
|
|
56
56
|
list: [chem_comp_id, ... ]
|
|
57
57
|
"""
|
|
58
58
|
try:
|
|
59
|
-
return list(set([t
|
|
59
|
+
return list(set([t for t in self.__mapD["mapping"][rcsbEntityId.upper()]]))
|
|
60
60
|
except Exception:
|
|
61
61
|
return []
|
|
62
62
|
|
|
@@ -69,7 +69,9 @@ class LigandNeighborMappingProviderTests(unittest.TestCase):
|
|
|
69
69
|
ok = crmP.testCache(minCount=2)
|
|
70
70
|
self.assertTrue(ok)
|
|
71
71
|
nL = crmP.getLigandNeighbors("3VFJ_2")
|
|
72
|
+
logger.info("ligand neighbor list nL %r", nL)
|
|
72
73
|
self.assertGreaterEqual(len(nL), 4)
|
|
74
|
+
self.assertGreater(len(nL[0]), 1)
|
|
73
75
|
#
|
|
74
76
|
except Exception as e:
|
|
75
77
|
logger.exception("Failing with %s", str(e))
|
|
@@ -102,7 +102,7 @@ class ObjectExtractorTests(unittest.TestCase):
|
|
|
102
102
|
"""Test case - extract entries subject to date restriction"""
|
|
103
103
|
try:
|
|
104
104
|
tU = TimeUtil()
|
|
105
|
-
tS = tU.getTimestamp(useUtc=True, before={"days": 365 *
|
|
105
|
+
tS = tU.getTimestamp(useUtc=True, before={"days": 365 * 7})
|
|
106
106
|
tD = tU.getDateTimeObj(tS)
|
|
107
107
|
obEx = ObjectExtractor(
|
|
108
108
|
self.__cfgOb,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceAssignmentAdapterValidate.py
RENAMED
|
File without changes
|
{rcsb_exdb-1.21 → rcsb_exdb-1.22}/rcsb/exdb/tests/testReferenceSequenceAssignmentProvider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|