|
@@ -17,6 +17,7 @@ import { MembraneOrientationPreset } from './tmdet-extension/behavior';
|
|
|
import { StateTransforms } from 'molstar/lib/mol-plugin-state/transforms';
|
|
|
import { applyTransformations } from './tmdet-extension/transformation';
|
|
|
import { TmDetDescriptorCache } from './tmdet-extension/prop';
|
|
|
+import { registerTmDetSymmetry } from './tmdet-extension/symmetry';
|
|
|
|
|
|
type BaseProps = {
|
|
|
assemblyId?: string
|
|
@@ -101,6 +102,10 @@ export const TmDetRcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
params: RcsbParams,
|
|
|
async apply(trajectory: StateObjectRef<PluginStateObject.Molecule.Trajectory>, params, plugin) {
|
|
|
console.log('TMDET RCSB PRESET: apply start', params);
|
|
|
+ const entryId = (trajectory as any).obj?.data.representative.entryId;
|
|
|
+ console.log('TRAJECTORY entry ID:', entryId);
|
|
|
+ const descriptor = TmDetDescriptorCache.get(entryId);
|
|
|
+ registerTmDetSymmetry(descriptor!);
|
|
|
|
|
|
const modelParams = { modelIndex: 0 };
|
|
|
|
|
@@ -129,7 +134,6 @@ export const TmDetRcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
const structureProperties = await builder.insertStructureProperties(structure);
|
|
|
const representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties, MembraneOrientationPreset, {});
|
|
|
|
|
|
- const descriptor = TmDetDescriptorCache.get(structure.data.model.entryId);
|
|
|
applyTransformations(plugin, descriptor!);
|
|
|
|
|
|
(window as any).plugin = plugin;
|