|
@@ -1,5 +1,5 @@
|
|
|
/**
|
|
|
- * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
|
+ * Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
|
*
|
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
|
*/
|
|
@@ -30,7 +30,7 @@ const DnaAtomIdsList = [
|
|
|
|
|
|
/** Used to reduce false positives for atom name-based type guessing */
|
|
|
const NonPolymerNames = new Set([
|
|
|
- 'FMN', 'NCN', 'FNS', 'FMA' // Mononucleotides
|
|
|
+ 'FMN', 'NCN', 'FNS', 'FMA', 'ATP', 'ADP', 'AMP', 'GTP', 'GDP', 'GMP' // Mononucleotides
|
|
|
]);
|
|
|
|
|
|
const StandardComponents = (function () {
|
|
@@ -156,7 +156,7 @@ export class ComponentBuilder {
|
|
|
this.set(StandardComponents.get(compId)!);
|
|
|
} else if (WaterNames.has(compId)) {
|
|
|
this.set({ id: compId, name: 'WATER', type: 'non-polymer' });
|
|
|
- } else if (NonPolymerNames.has(compId)) {
|
|
|
+ } else if (NonPolymerNames.has(compId.toUpperCase())) {
|
|
|
this.set({ id: compId, name: this.namesMap.get(compId) || compId, type: 'non-polymer' });
|
|
|
} else {
|
|
|
const atomIds = this.getAtomIds(index);
|