Package VCF.Mappers

Class DepthMapper

  • All Implemented Interfaces:
    Mapper<int[]>

    public class DepthMapper
    extends java.lang.Object
    implements Mapper<int[]>
    Maps from a string representing read depths to an integer array of read depths
    • 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 type
      int[][] getArray​(int dim)
      Get an array of the returned type
      int[] map​(java.lang.String s)
      Maps from string representing read depths to an integer array of read depths
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DepthMapper

        public DepthMapper()
    • 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 interface Mapper<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
        Specified by:
        getArray in interface Mapper<int[]>
        Parameters:
        dim - Size of the array
        Returns:
        The array
      • get2DArray

        public int[][][] get2DArray​(int dim)
        Description copied from interface: Mapper
        Get a 2d array of the returned type
        Specified by:
        get2DArray in interface Mapper<int[]>
        Parameters:
        dim - Size of the major dimension
        Returns:
        The array