Browse Source

molecule type tweaks

Alexander Rose 6 years ago
parent
commit
27c485ac31
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/mol-model/structure/model/types.ts

+ 7 - 0
src/mol-model/structure/model/types.ts

@@ -148,6 +148,11 @@ export const SaccharideComponentTypeNames = [
     'D-SACCHARIDE', 'SACCHARIDE',
 ]
 
+/** Chemical component type names for other */
+export const OtherComponentTypeNames = [
+    'NON-POLYMER', 'OTHER'
+]
+
 /** Common names for water molecules */
 export const WaterNames = [
     'SOL', 'WAT', 'HOH', 'H2O', 'W', 'DOD', 'D3O', 'TIP3', 'TIP4', 'SPC'
@@ -185,6 +190,8 @@ export function getMoleculeType(compType: string, compId: string) {
         return MoleculeType.water
     } else if (IonNames.includes(compId)) {
         return MoleculeType.ion
+    } else if (OtherComponentTypeNames.includes(compType)) {
+        return MoleculeType.other
     } else {
         return MoleculeType.unknown
     }