|
@@ -89,7 +89,7 @@ type FeatureDensityProps = {
|
|
|
|
|
|
export type MotifProps = {
|
|
export type MotifProps = {
|
|
kind: 'motif',
|
|
kind: 'motif',
|
|
- label: string,
|
|
|
|
|
|
+ label?: string,
|
|
targets: Target[],
|
|
targets: Target[],
|
|
color?: number
|
|
color?: number
|
|
} & BaseProps
|
|
} & BaseProps
|
|
@@ -188,22 +188,25 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
const params = {
|
|
const params = {
|
|
ignoreHydrogens: CommonParams.ignoreHydrogens.defaultValue,
|
|
ignoreHydrogens: CommonParams.ignoreHydrogens.defaultValue,
|
|
quality: CommonParams.quality.defaultValue,
|
|
quality: CommonParams.quality.defaultValue,
|
|
- theme: { globalName: 'superpose' as any, focus: { name: 'superpose' } },
|
|
|
|
|
|
+ theme: { globalName: 'superpose', focus: { name: 'superpose' } },
|
|
selectionExpressions: selectionExpressions
|
|
selectionExpressions: selectionExpressions
|
|
};
|
|
};
|
|
- representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, RcsbSuperpositionRepresentationPreset, params);
|
|
|
|
|
|
+ representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties!, RcsbSuperpositionRepresentationPreset, params);
|
|
} else if (p.kind === 'motif') {
|
|
} else if (p.kind === 'motif') {
|
|
- let selectionExpressions = createSelectionExpression(p.label, p.targets);
|
|
|
|
- const globalExpressions = createSelectionExpression(p.label); // global reps, to be hidden
|
|
|
|
|
|
+ let selectionExpressions = createSelectionExpression(p.label || model.data!.entryId, p.targets);
|
|
|
|
+ const globalExpressions = createSelectionExpression(p.label || model.data!.entryId); // global reps, to be hidden
|
|
selectionExpressions = selectionExpressions.concat(globalExpressions.map(e => { return { ...e, isHidden: true }; }));
|
|
selectionExpressions = selectionExpressions.concat(globalExpressions.map(e => { return { ...e, isHidden: true }; }));
|
|
|
|
|
|
|
|
+ if (p.color) {
|
|
|
|
+ selectionExpressions = selectionExpressions.map(e => { return { ...e, color: p.color }; });
|
|
|
|
+ }
|
|
|
|
+
|
|
const params = {
|
|
const params = {
|
|
ignoreHydrogens: true,
|
|
ignoreHydrogens: true,
|
|
quality: CommonParams.quality.defaultValue,
|
|
quality: CommonParams.quality.defaultValue,
|
|
- theme: { globalName: 'superpose' as any, focus: { name: 'superpose' } },
|
|
|
|
selectionExpressions: selectionExpressions
|
|
selectionExpressions: selectionExpressions
|
|
};
|
|
};
|
|
- representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, RcsbSuperpositionRepresentationPreset, params);
|
|
|
|
|
|
+ representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties!, RcsbSuperpositionRepresentationPreset, params);
|
|
} else if (p.kind === 'validation') {
|
|
} else if (p.kind === 'validation') {
|
|
representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, ValidationReportGeometryQualityPreset);
|
|
representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, ValidationReportGeometryQualityPreset);
|
|
} else if (p.kind === 'symmetry') {
|
|
} else if (p.kind === 'symmetry') {
|