Переглянути джерело

explictly activate original residue type

JonStargaryen 4 роки тому
батько
коміт
dc6d107b56
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      src/viewer/ui/strucmotif.tsx

+ 5 - 0
src/viewer/ui/strucmotif.tsx

@@ -271,6 +271,11 @@ export class Residue {
 
     constructor(readonly entry: StructureSelectionHistoryEntry, readonly callback: () => void) {
         this.exchanges = new Set<string>();
+        // by default: explicitly 'activate' original residue type
+        const structure = entry.loci.structure;
+        const e = entry.loci.elements[0];
+        StructureElement.Location.set(location, structure, e.unit, e.unit.elements[OrderedSet.getAt(e.indices, 0)]);
+        this.exchanges.add(StructureProperties.atom.label_comp_id(location));
     }
 
     toggleExchange(val: string): void {