On 17/04/2008, Egon Willighagen <[EMAIL PROTECTED]> wrote:
> Submitted to SVN:
>
>  formula = 
> MolecularFormulaManipulator.getMajorIsotopeMolecularFormula("C11H17")
>  MolecularFormulaManipulator.getNaturalExactMass(formula2)
>
>  Does that solve your problem?
My starting point is a CDK Molecule. So I take this molecule. I need
to convert it into a molecular formula. Then I need to convert it to a
String representation. Next I use getMajorIsotopeMolecularFormula. And
finally I call getNaturalExactMass. I guess this solves the problem,
but it seems a very roundabout way of doing this. Maybe
getMajorIsotopeMolecularFormula could accept a MolecularFormula object
directly...?

>  BTW, you mentioned 'still disappointed'... sorry for having missed
>  your earlier request...
No earlier request - I meant that even after Miguel's explanation I
was not completely happy with the API. Your addition has removed my
disappointment :-)

Noel

>
>  Egon
>
>  --
>  ----
>  http://chem-bla-ics.blogspot.com/
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to