Here you can find the source of roundPhred(final double value, final double phredScorePrecision)
Parameter | Description |
---|---|
value | raw Phred score |
phredScorePrecision | Phred score precision |
public static double roundPhred(final double value, final double phredScorePrecision)
//package com.java2s; //License from project: Open Source License public class Main { /**// w ww . j a v a 2 s. co m * Round a Phred scaled score to precision {@code phredScorePrecision} * * @param value raw Phred score * @param phredScorePrecision Phred score precision * @return rounded Phred score */ public static double roundPhred(final double value, final double phredScorePrecision) { return Math.round(value / phredScorePrecision) * phredScorePrecision; } }