|
@@ -8,6 +8,7 @@ import { StateObjectRef, StateBuilder } from '../../mol-state';
|
|
|
import { Expression } from '../../mol-script/language/expression';
|
|
|
import { MembraneOrientation } from './prop';
|
|
|
import { TmDetColorThemeProvider } from './tmdet-color-theme';
|
|
|
+import { DebugUtil } from '../../apps/tm-viewer';
|
|
|
|
|
|
export async function applyTransformations(plugin: PluginUIContext, pdbtmDescriptor: PDBTMDescriptor) {
|
|
|
const annotations = pdbtmDescriptor.additional_entry_annotations;
|
|
@@ -29,6 +30,11 @@ export async function applyTransformations(plugin: PluginUIContext, pdbtmDescrip
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
transformWholeModel(plugin, pdbtmDescriptor.additional_entry_annotations.membrane.transformation_matrix);
|
|
|
|
|
|
|
|
@@ -43,15 +49,15 @@ export function transformWholeModel(plugin: PluginUIContext, membraneMatrix: PDB
|
|
|
const membraneTransformation = transformationForStateTransform(membraneMatrix);
|
|
|
|
|
|
|
|
|
- console.log("STRUCTURES", getCurrentHierarchy(plugin).structures);
|
|
|
+ DebugUtil.log("STRUCTURES", getCurrentHierarchy(plugin).structures);
|
|
|
getCurrentHierarchy(plugin).structures[0].components.forEach(component => {
|
|
|
const structure: StateObjectRef<PMS> = component.cell;
|
|
|
const update: StateBuilder.To<any, any> = plugin.build().to(structure);
|
|
|
|
|
|
const label = component.cell.obj!.label.toUpperCase();
|
|
|
- console.log("memb.transform of ", label, component.cell.obj?.id);
|
|
|
-
|
|
|
-
|
|
|
+ DebugUtil.log("memb.transform of", label, component.cell.obj?.id);
|
|
|
+ DebugUtil.log(`${label} component.cell.obj:`, component.cell.obj);
|
|
|
+
|
|
|
|
|
|
update
|
|
|
.apply(StateTransforms.Model.TransformStructureConformation, {
|