public class AlleleDepthUtil
Depth compression utility. Depths are scored in byte (256 states). 0 to 127 are used for exact depth values. -128 to -1 are used for log approximations (1.0746^(-x)). This permits depths upto 10,482 to be stored with exact precision for low values, and <3% error for high depths.
public static byte DEPTH_BYTE_MISSING
public static int DEPTH_MISSING
public static byte addByteDepths(byte depth1,
byte depth2)
Returns the depth combined depths in byte format. Converts both to integers, adds, and reconverts back.
depth1 - first depth in byte formatdepth2 - second depth in byte formatpublic static byte depthIntToByte(int depth)
Converts integer depth to byte version. Positive return values are exact, negative return values are log approximations
public static kotlin.Array[] depthIntToByte(kotlin.Array[] depth)
Converts integer array of depth to byte array version. Positive return values are exact, negative return values are log approximations
public static kotlin.Array[] depthIntToByte(kotlin.Array[] depth)
Converts a two dimensional integer array of depths to a 2D byte array version. Positive return values are exact, negative return values are log approximations
public static int depthByteToInt(byte depth)
Converts byte depth to integer version. Positive depths value are exact, negative depths are log approximations
public static kotlin.Array[] depthByteToInt(kotlin.Array[] depth)
Converts byte arrays of depth to integer array version. Positive depths value are exact, negative depths are log approximations