diff --git a/src/cli/chem-comp-dict/create-table.ts b/src/cli/chem-comp-dict/create-table.ts index 7221e6276915b43e3cfe5484b47758ff264e9f3c..f20af5933515312cce4663262436f1de07e55e8b 100644 --- a/src/cli/chem-comp-dict/create-table.ts +++ b/src/cli/chem-comp-dict/create-table.ts @@ -87,19 +87,19 @@ function checkAddingBondsFromPVCD(pvcd: DatabaseCollection<CCD_Schema>) { } function checkAddingAtomsFromPVCD(pvcd: DatabaseCollection<CCD_Schema>) { - const ccbSetByParent = DefaultMap<string, Set<string>>(() => new Set()); + const ccaSetByParent = DefaultMap<string, Set<string>>(() => new Set()); for (const k in pvcd) { const { chem_comp, chem_comp_atom } = pvcd[k]; if (chem_comp_atom._rowCount) { const parentIds = chem_comp.mon_nstd_parent_comp_id.value(0); if (parentIds.length === 0) { - const set = ccbSetByParent.getDefault(chem_comp.id.value(0)); + const set = ccaSetByParent.getDefault(chem_comp.id.value(0)); addChemCompAtomToSet(set, chem_comp_atom); } else { for (let i = 0, il = parentIds.length; i < il; ++i) { const parentId = parentIds[i]; - const set = ccbSetByParent.getDefault(parentId); + const set = ccaSetByParent.getDefault(parentId); addChemCompAtomToSet(set, chem_comp_atom); } }