|
@@ -18,6 +18,9 @@ import { Mat4 } from 'molstar/lib/mol-math/linear-algebra';
|
|
|
import { MembraneOrientationPreset } from 'molstar/lib/extensions/anvil/behavior';
|
|
|
import { Target } from '@rcsb/rcsb-molstar/build/src/viewer/helpers/selection';
|
|
|
import { TMDET_STRUCTURE_PRESET_ID } from '@rcsb/rcsb-molstar/build/src/tmdet-extension/behavior';
|
|
|
+import { TmDetDescriptorCache } from '@rcsb/rcsb-molstar/build/src/tmdet-extension/prop';
|
|
|
+import { DebugUtil } from '@rcsb/rcsb-molstar/build/src/tmdet-extension/debug-utils';
|
|
|
+import { StateTransforms } from 'molstar/lib/mol-plugin-state/transforms';
|
|
|
|
|
|
type BaseProps = {
|
|
|
assemblyId?: string
|
|
@@ -162,12 +165,38 @@ export const TmDetRcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
} else if (p.kind === 'nakb') {
|
|
|
console.warn('nakb case not implemented in TmDetRcsbPreset');
|
|
|
} else {
|
|
|
+
|
|
|
console.log('HERE WE GO:', { structure: structure, structureProps: structureProperties, presetParams: presetParams });
|
|
|
|
|
|
representation = await plugin.builders.structure.representation.applyPreset(
|
|
|
structureProperties!, 'auto', { theme: { globalName: 'tmdet-custom-color-theme' } });
|
|
|
- await plugin.builders.structure.hierarchy.applyPreset(
|
|
|
+ const selector = await plugin.builders.structure.hierarchy.applyPreset(
|
|
|
trajectory, 'default', { representationPreset: TMDET_STRUCTURE_PRESET_ID as any });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
console.log('STRUCTURE REPRESENTATION:', representation);
|