Package VCF.Mappers
Class DepthMapper
- java.lang.Object
-
- VCF.Mappers.DepthMapper
-
-
Constructor Summary
Constructors Constructor Description DepthMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[][][]
get2DArray(int dim)
Get a 2d array of the returned typeint[][]
getArray(int dim)
Get an array of the returned typeint[]
map(java.lang.String s)
Maps from string representing read depths to an integer array of read depths
-
-
-
Method Detail
-
map
public int[] map(java.lang.String s) throws VCFUnexpectedDataException
Maps from string representing read depths to an integer array of read depths- Specified by:
map
in interfaceMapper<int[]>
- Parameters:
s
- The string- Returns:
- The read depths
- Throws:
VCFUnexpectedDataException
- If there is unexpected data in the VCF
-
getArray
public int[][] getArray(int dim)
Description copied from interface:Mapper
Get an array of the returned type
-
get2DArray
public int[][][] get2DArray(int dim)
Description copied from interface:Mapper
Get a 2d array of the returned type- Specified by:
get2DArray
in interfaceMapper<int[]>
- Parameters:
dim
- Size of the major dimension- Returns:
- The array
-
-