On Tuesday, 11 April 2017 17:17:54 UTC+2, Lev Levitsky wrote:
> Hi Joel,
>
>
> Thanks for your feedback!
>
>
>
> As noted in the docs, the ion_type parameter is optional, you don't have to specify anything in case of the precursor ion. If for some reason it's more convenient for you to explicitly pass an ion_type, you can use the value 'M', which is the default.
>
>
> P.S. Charge is optional as well, in case you are interested in the neutral mass.
>
>
> Best,
>
>
> Lev
>
>
> On Tue, Apr 11, 2017 at 6:07 PM, Joel Wallenius <
joelwa...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> Hello!
>
> I'm just starting to get into Pyteomics. I think it will make my life a lot easier. Thank you very much for that!
>
> My first hurdle is:
>
> How do I calculate the mass of a precursor/parent? It does not have an ion type, so what do I put in the ion_type argument?
>
> mass.calculate_mass(sequence='PEPccTIoxiDE',ion_type=???,charge=4,aa_comp_aa_comps)
>
> The parent has charge, modifications, and a sequence, but not an ion type. What to do?
>
>
> Thank you so much, again.
>
>
>
> sincerely,
>
>
> Joel
>
>
>
>
>
> --
>
>
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Pyteomics" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to
>
> For more options, visit
https://groups.google.com/d/optout.
>
>
>
>
>
> --
>
> Lev Levitsky
>
> Institute for Energy Problems
> of Chemical Physics RAS
> Laboratory of Physical and Chemical Methods for
> Structure Analysis
> Leninsky pr. 38, bld. 2 119334 Moscow Russia
> tel: +7
> 499 1378257 fax:
+7 499 1378257,
+7 499 1378258
Hello Lev and thank you for your reply! I did not see it until now (Mark told me how to access it). For some reason I did not receive any notification about it.
Anyway. I tested three things:
The answer was the same regardless of which of these three approaches I used (apart from random floating point rounding errors at the fifteenth decimal).