Skip to content
Snippets Groups Projects
Commit 70fa85d7 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix assembly-symmetry off option

- would not remove cage/axes visuals
parent 5a23cd48
No related branches found
No related tags found
No related merge requests found
......@@ -28,4 +28,8 @@
* Multiple models with different sets of ligands or missing ligands (1J6T, 1VRC, 2ICY, 1O2F)
* Long linear sugar chain (4HG6)
* Anisotropic B-factors/Ellipsoids (1EJG)
* NOS bridges (LYS-CSO in 7B0L, 6ZWJ, 6ZWH)
\ No newline at end of file
* NOS bridges (LYS-CSO in 7B0L, 6ZWJ, 6ZWH)
Assembly symmetries
* 5M30 (Assembly 1, C3 local and pseudo)
* 1RB8 (Assembly 1, I global)
\ No newline at end of file
......@@ -124,16 +124,20 @@ export function getSymmetrySelectParam(structure?: Structure) {
if (structure) {
const assemblySymmetryData = AssemblySymmetryDataProvider.get(structure).value;
if (assemblySymmetryData) {
const options: [number, string][] = [];
const options: [number, string][] = [
[-1, 'Off']
];
for (let i = 0, il = assemblySymmetryData.length; i < il; ++i) {
const { symbol, kind } = assemblySymmetryData[i];
if (symbol !== 'C1') {
options.push([ i, `${i + 1}: ${symbol} ${kind}` ]);
}
}
if (options.length) {
if (options.length > 1) {
param.options = options;
param.defaultValue = options[0][0];
param.defaultValue = options[1][0];
} else {
options.length = 0;
}
}
}
......
......@@ -73,7 +73,6 @@ export class AssemblySymmetryControls extends CollapsableControls<{}, AssemblySy
const structure = this.pivot.cell.obj?.data;
const params = PD.clone(structure ? AssemblySymmetryProvider.getParams(structure) : AssemblySymmetryProvider.defaultParams);
params.serverUrl.isHidden = true;
params.symmetryIndex.options = [[-1, 'Off'], ...params.symmetryIndex.options];
return params;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment