Molecula Paclet Symbol
MDescriptorValue
MDescriptorList
MHasDescriptor
See Also »
|
Molecula Editing Functions
More About »
MDescriptorUpdate
MDescriptorUpdate[
hexpr
,
descr
,
new
]
resturns
hexpr
with descriptor value pointed by
descr
replaced by
new
.
MORE INFORMATION
hexpr
could be any of the predefined hierarchical expressions of
Molecula
:
MData
,
MModel
,
MChain
,
MResidue
and
MAtom
.
descr
is typically a string corrsponding to a descriptor. Usual descriptors are
"Label"
,
"Id"
,
"NextLevel"
, ...
new
can be any
Mathematica
expression.
MDescriptorUpdate
is key low level programming function for edition hierarchical expressions in
Molecula
. It allow to modify a descriptor value.
If
hexpr
has no descriptor
descr
, a descriptor
descr
is added to
hexpr
with value
new
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
In[1]:=
Loads a sample residue:
In[2]:=
Out[2]=
Update the residue index:
In[3]:=
Out[3]=
Add a representation as a residue descriptor:
In[4]:=
Out[4]=
Extract the added descriptor:
In[5]:=
Out[5]=
SEE ALSO
MDescriptorValue
,
MDescriptorList
,
MHasDescriptor
, ...
MORE ABOUT
Molecula Editing Functions