|
@@ -3,6 +3,8 @@
|
|
|
*
|
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
|
* @author Joan Segura <joan.segura@rcsb.org>
|
|
|
+ * @author Yana Rose <yana.rose@rcsb.org>
|
|
|
+ * @author Sebastian Bittrich <sebastian.bittrich@rcsb.org>
|
|
|
*/
|
|
|
|
|
|
import { BehaviorSubject } from 'rxjs';
|
|
@@ -38,7 +40,7 @@ import { PluginUIContext } from 'molstar/lib/mol-plugin-ui/context';
|
|
|
import { ANVILMembraneOrientation, MembraneOrientationPreset } from 'molstar/lib/extensions/anvil/behavior';
|
|
|
import { MembraneOrientationRepresentationProvider } from 'molstar/lib/extensions/anvil/representation';
|
|
|
import { MotifAlignmentRequest, alignMotifs } from './helpers/superpose/pecos-integration';
|
|
|
-import { AlphaFoldConfidenceColorThemeProvider } from './helpers/af-confidence/color';
|
|
|
+import { AlphaFoldConfidenceScore } from './helpers/af-confidence/behavior';
|
|
|
|
|
|
/** package version, filled in at bundle build time */
|
|
|
declare const __RCSB_MOLSTAR_VERSION__: string;
|
|
@@ -53,7 +55,8 @@ const Extensions = {
|
|
|
'rcsb-assembly-symmetry': PluginSpec.Behavior(RCSBAssemblySymmetry),
|
|
|
'rcsb-validation-report': PluginSpec.Behavior(RCSBValidationReport),
|
|
|
'mp4-export': PluginSpec.Behavior(Mp4Export),
|
|
|
- 'anvil-membrane-orientation': PluginSpec.Behavior(ANVILMembraneOrientation)
|
|
|
+ 'anvil-membrane-orientation': PluginSpec.Behavior(ANVILMembraneOrientation),
|
|
|
+ 'af-confidence': PluginSpec.Behavior(AlphaFoldConfidenceScore)
|
|
|
};
|
|
|
|
|
|
const DefaultViewerProps = {
|
|
@@ -63,7 +66,6 @@ const DefaultViewerProps = {
|
|
|
showStructureSourceControls: true,
|
|
|
showSuperpositionControls: true,
|
|
|
showMembraneOrientationPreset: false,
|
|
|
- showAlphaFoldConfidenceColorTheme: false,
|
|
|
/**
|
|
|
* Needed when running outside of sierra. If set to true, the strucmotif UI will use an absolute URL to sierra-prod.
|
|
|
* Otherwise, the link will be relative on the current host.
|
|
@@ -186,10 +188,7 @@ export class Viewer {
|
|
|
const renderer = this.plugin.canvas3d!.props.renderer;
|
|
|
await PluginCommands.Canvas3D.SetSettings(this.plugin, { settings: { renderer: { ...renderer, backgroundColor: o.backgroundColor } } });
|
|
|
this.plugin.representation.structure.themes.colorThemeRegistry.add(SuperposeColorThemeProvider);
|
|
|
- // conditionally load PDBe's AlphaFold preset
|
|
|
- if (o.showAlphaFoldConfidenceColorTheme) {
|
|
|
- this.plugin.representation.structure.themes.colorThemeRegistry.add(AlphaFoldConfidenceColorThemeProvider);
|
|
|
- }
|
|
|
+ // this.plugin.representation.structure.themes.colorThemeRegistry.add(AlphaFoldConfidenceColorThemeProvider);
|
|
|
|
|
|
if (o.showWelcomeToast) {
|
|
|
await PluginCommands.Toast.Show(this.plugin, {
|