|
@@ -41,6 +41,7 @@ import { DebugUtil } from './debug-utils';
|
|
|
|
|
|
const Tag = MembraneOrientation.Tag;
|
|
|
const TMDET_MEMBRANE_ORIENTATION = 'TMDET Membrane Orientation';
|
|
|
+const TMDET_STRUCTURE_PRESET_ID = 'tmdet-preset-membrane-orientation';
|
|
|
|
|
|
export const TMDETMembraneOrientation = PluginBehavior.create<{ autoAttach: boolean }>({
|
|
|
name: 'tmdet-membrane-orientation-prop',
|
|
@@ -231,7 +232,7 @@ async function loadStructure(ctx: PluginUIContext, params: any, pdbtmDescriptor:
|
|
|
|
|
|
// create membrane representation
|
|
|
await builders.structure.hierarchy.applyPreset(
|
|
|
- trajectory, 'default', { representationPreset: 'tmdet-preset-membrane-orientation' as any });
|
|
|
+ trajectory, 'default', { representationPreset: TMDET_STRUCTURE_PRESET_ID as any });
|
|
|
}
|
|
|
|
|
|
|
|
@@ -310,7 +311,7 @@ const MembraneOrientation3D = PluginStateTransform.BuiltIn({
|
|
|
});
|
|
|
|
|
|
export const MembraneOrientationPreset = StructureRepresentationPresetProvider({
|
|
|
- id: 'tmdet-preset-membrane-orientation',
|
|
|
+ id: TMDET_STRUCTURE_PRESET_ID,
|
|
|
display: {
|
|
|
name: TMDET_MEMBRANE_ORIENTATION, group: 'Annotation',
|
|
|
description: 'Shows orientation of membrane layers. Data calculated with TMDET algorithm.' // TODO add ' or obtained via RCSB PDB'
|