-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
fragalysis-frontend/js/components/nglView/renderingObjects.js
Lines 394 to 436 in 0e67527
| const showDensity = ({ stage, input_dict, object_name, representations, dispatch }) => { | |
| let densityParams_event = { | |
| color: input_dict.color_DENSITY, | |
| isolevel: input_dict.isolevel_DENSITY, | |
| smooth: input_dict.smooth || 0, | |
| boxSize: input_dict.boxSize_DENSITY, | |
| contour: input_dict.contour_DENSITY, | |
| wrap: true, | |
| opacity: input_dict.opacity_DENSITY, | |
| opaqueBack: false | |
| }; | |
| let densityParams_sigmaa = { | |
| color: input_dict.color_DENSITY_MAP_sigmaa, | |
| isolevel: input_dict.isolevel_DENSITY_MAP_sigmaa, | |
| smooth: input_dict.smooth || 0, | |
| boxSize: input_dict.boxSize_DENSITY_MAP_sigmaa, | |
| contour: input_dict.contour_DENSITY_MAP_sigmaa, | |
| wrap: true, | |
| opacity: input_dict.opacity_DENSITY_MAP_sigmaa, | |
| opaqueBack: false | |
| }; | |
| let densityParams_diff = { | |
| color: input_dict.color_DENSITY_MAP_diff, | |
| isolevel: input_dict.isolevel_DENSITY_MAP_diff, | |
| smooth: input_dict.smooth || 0, | |
| boxSize: input_dict.boxSize_DENSITY_MAP_diff, | |
| contour: input_dict.contour_DENSITY_MAP_diff, | |
| wrap: true, | |
| opacity: input_dict.opacity_DENSITY_MAP_diff, | |
| opaqueBack: false, | |
| negateIsolevel: false | |
| }; | |
| let densityParams_diff_negate = { | |
| color: input_dict.color_DENSITY_MAP_diff_negate, | |
| isolevel: input_dict.isolevel_DENSITY_MAP_diff, | |
| smooth: input_dict.smooth || 0, | |
| boxSize: input_dict.boxSize_DENSITY_MAP_diff, | |
| contour: input_dict.contour_DENSITY_MAP_diff, | |
| wrap: true, | |
| opacity: input_dict.opacity_DENSITY_MAP_diff, | |
| opaqueBack: false, | |
| negateIsolevel: true | |
| }; |
Following our previous conversations about fixing fragalysis-api maps. Providing that fofc and 2fofc maps get Z-Score normalised (the now current behaviour of fragalysis-api) we will need to specify that all electron densities be rendered using isolevelType: "value" in addition to all the other defaults.
let densityParams_sigmaa = {
color: input_dict.color_DENSITY_MAP_sigmaa,
isolevel: input_dict.isolevel_DENSITY_MAP_sigmaa,
smooth: input_dict.smooth || 0,
boxSize: input_dict.boxSize_DENSITY_MAP_sigmaa,
contour: input_dict.contour_DENSITY_MAP_sigmaa,
wrap: true,
opacity: input_dict.opacity_DENSITY_MAP_sigmaa,
opaqueBack: false,
isolevelType: "value"
};
let densityParams_diff = {
color: input_dict.color_DENSITY_MAP_diff,
isolevel: input_dict.isolevel_DENSITY_MAP_diff,
smooth: input_dict.smooth || 0,
boxSize: input_dict.boxSize_DENSITY_MAP_diff,
contour: input_dict.contour_DENSITY_MAP_diff,
wrap: true,
opacity: input_dict.opacity_DENSITY_MAP_diff,
opaqueBack: false,
negateIsolevel: false,
isolevelType: "value"
};
let densityParams_diff_negate = {
color: input_dict.color_DENSITY_MAP_diff_negate,
isolevel: input_dict.isolevel_DENSITY_MAP_diff,
smooth: input_dict.smooth || 0,
boxSize: input_dict.boxSize_DENSITY_MAP_diff,
contour: input_dict.contour_DENSITY_MAP_diff,
wrap: true,
opacity: input_dict.opacity_DENSITY_MAP_diff,
opaqueBack: false,
negateIsolevel: true,
isolevelType: "value"
};
Should do the trick.
But we only need to do this when we next to an Mpro upload.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels