PistoiaHELM / HELMWebEditor

Web browser based editor for drawing HELM macromolecules.
MIT License
17 stars 10 forks source link

Collapsing a group affects the mol wt and formula #198

Closed ClairePA closed 5 years ago

ClairePA commented 6 years ago

I use the following HELM string: PEPTIDE1{A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.C.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E}|PEPTIDE2{G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.G.C.S.S.S.S.S.S.S.S.S.P.P.P.P.P.P.P.P.P.K.K.K.K.K.K.K.K.K.K.K.K.K}|CHEM1{[PEG2]}|CHEM2{[SMCC]}$PEPTIDE1,CHEM1,C:R3-1:R1|PEPTIDE2,CHEM2,C:R3-1:R1$G1(PEPTIDE1+CHEM1:2.5)|G2(PEPTIDE2+CHEM2:1.5)$$ image

and see the following properties which look like the mol wts and formulae of the CHEM monomers only. image

If I expand the group I see a larger mol wt and formula. image

Expanding or collapsing groups should not affect the mol wt and formula.

scilligence commented 5 years ago

Fixed now.

ClairePA commented 5 years ago

Confirmed fixed. Close.