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

show non-polymer residues of polymer entities as ball&stick

parent 8e2521a7
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,8 @@ const branchedConnectedOnly = MS.struct.modifier.union([
])
const ligand = MS.struct.modifier.union([
MS.struct.combinator.merge([
MS.struct.modifier.union([
MS.struct.generator.atomGroups({
'entity-test': MS.core.logic.and([
MS.core.rel.eq([MS.ammp('entityType'), 'non-polymer']),
......@@ -125,6 +127,18 @@ const ligand = MS.struct.modifier.union([
MS.core.str.match([MS.re('saccharide', 'i'), MS.ammp('chemCompType')])
])
})
]),
// this is to get non-polymer components in polymer entities, e.g. PXZ in 4HIV
// one option to optimize this is to expose `_entity_poly.nstd_monomer` in molql
// and only check those entities residue by residue
MS.struct.modifier.union([
MS.struct.generator.atomGroups({
'entity-test': MS.core.rel.eq([MS.ammp('entityType'), 'polymer']),
'chain-test': MS.core.rel.eq([MS.ammp('objectPrimitive'), 'atomistic']),
'residue-test': MS.core.str.match([MS.re('non-polymer', 'i'), MS.ammp('chemCompType')])
})
])
]),
])
// don't innclude branched entities as they have their own link representation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment