|
@@ -47,7 +47,6 @@ import {
|
|
|
} from 'molstar/lib/extensions/rcsb/assembly-symmetry/prop';
|
|
|
import { Task } from 'molstar/lib/mol-task';
|
|
|
import { PLDDTConfidenceColorThemeProvider } from 'molstar/lib/extensions/model-archive/quality-assessment/color/plddt';
|
|
|
-import { TMDET_STRUCTURE_PRESET_ID } from '../../tmdet-extension/behavior';
|
|
|
|
|
|
type BaseProps = {
|
|
|
assemblyId?: string
|
|
@@ -135,7 +134,6 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
isApplicable: () => true,
|
|
|
params: RcsbParams,
|
|
|
async apply(trajectory, params, plugin) {
|
|
|
- console.log('RCSB PRESET: apply start');
|
|
|
const builder = plugin.builders.structure;
|
|
|
const p = params.preset;
|
|
|
|
|
@@ -176,8 +174,6 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
Object.assign(presetParams, { theme: { globalName: 'plddt-confidence', focus: { name: 'plddt-confidence' } } });
|
|
|
}
|
|
|
let representation: StructureRepresentationPresetProvider.Result | undefined = undefined;
|
|
|
- console.log('PRESET params:', params);
|
|
|
- console.log('PRESET p:', p);
|
|
|
|
|
|
if (p.kind === 'alignment') {
|
|
|
|
|
@@ -279,16 +275,9 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
} else if (p.kind === 'nakb') {
|
|
|
representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties!, 'auto', { ...presetParams, theme: { globalName: 'nakb', focus: { name: 'nakb' } } });
|
|
|
} 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(
|
|
|
- trajectory, 'default', { representationPreset: TMDET_STRUCTURE_PRESET_ID as any });
|
|
|
+ representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto', presetParams);
|
|
|
}
|
|
|
|
|
|
- console.log('STRUCTURE REPRESENTATION:', representation);
|
|
|
-
|
|
|
|
|
|
if ((p.kind === 'feature' || p.kind === 'feature-density') && structure?.obj) {
|
|
|
let loci = targetToLoci(p.target, structure!.obj.data);
|