diff --git a/src/apps/viewer/extensions/cellpack/data.ts b/src/apps/viewer/extensions/cellpack/data.ts index 67e59cd02986c078f3e98cf01bde3546e7ea218d..a22c19df55c30710da796768856498e91e044b21 100644 --- a/src/apps/viewer/extensions/cellpack/data.ts +++ b/src/apps/viewer/extensions/cellpack/data.ts @@ -54,8 +54,8 @@ export interface Ingredient { source: IngredientSource; results: [Vec3, Quat][]; name: string; - positions?: [Positions];//Vec3[]]; - radii?: [Radii];//number[]]; + positions?: [Positions];//Vec3[]];CoarseGraind Beads coordinates LOD + radii?: [Radii];//number[]];CoarseGraind Beads radii LOD /** Number of `curveX` properties in the object where `X` is a 0-indexed number */ nbCurve?: number; /** Curve properties are Vec3[] but that is not expressable in TypeScript */ diff --git a/src/apps/viewer/extensions/cellpack/model.ts b/src/apps/viewer/extensions/cellpack/model.ts index 58fa20a6cca649beea757f11eac2ae3aa8d41eb5..0e9a3d067f999f9b12db02378d5f1224a79eb44d 100644 --- a/src/apps/viewer/extensions/cellpack/model.ts +++ b/src/apps/viewer/extensions/cellpack/model.ts @@ -57,7 +57,9 @@ async function getStructure(model: Model, source:IngredientSource, props: { asse structure = await StructureSymmetry.buildAssembly(structure, assembly).run() } if (source.selection){ - const asymIds:string[] = source.selection.split(":") + //use NGL selection string or :A or :B etc... + const asymIds:string[] = source.selection.replace(" :","").split(" or") + console.log(asymIds) const query = MS.struct.modifier.union([ MS.struct.generator.atomGroups({ 'chain-test': MS.core.set.has([MS.set(...asymIds), MS.ammp('label_asym_id')])