Skip to content
Snippets Groups Projects
Commit 35f4cfdc authored by Olivier Langella's avatar Olivier Langella
Browse files

fix mhplus mass

parent 45ee698a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -36,12 +36,18 @@ public class Utils {
private static final Logger logger = Logger.getLogger(Utils.class);
/*
* m(1H) = 1.00727646677 u = mass of proton; charge +1
m(1H+e-) = 1.00782504 u = mass of proton + mass of electron
* m(1H) = 1.00727646677 u = mass of proton; charge +1 m(1H+e-) = 1.00782504
* u = mass of proton + mass of electron
*/
public static double mhplus = (float) 1.007825;
public static double mhplus = (double) 1.00727646677;
public static double onemillion = (float) 1000000;
/*
*
* Monoisotopic mass from : http://www.unimod.org/masses.html 1.007825035
*/
public static double mhelectron = (double) 1.007825035;
public static double onemillion = (double) 1000000;
static private String getPappsoGroupingId(Integer num) {
int size = (int) java.lang.Math.log10(num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment