Class ChrPosStats

  • Direct Known Subclasses:
    PosStats

    public class ChrPosStats
    extends java.lang.Object
    How many changes per position do we have in a chromosome. Summary by dividing the chromosome into MAX_BINS bins
    Author:
    pcingola
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean debug  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChrPosStats​(java.lang.String chrName, int length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCount​(int idx)  
      int getTotal()  
      int[] posArray()  
      void sample​(int position)
      Use 'num' as a sample
      int size()  
      java.lang.String toString()  
      java.lang.String toStringHistoPlot​(java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel)
      Create a histogram plot using Google charts
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • debug

        public static boolean debug
    • Constructor Detail

      • ChrPosStats

        public ChrPosStats​(java.lang.String chrName,
                           int length)
    • Method Detail

      • getCount

        public int getCount​(int idx)
      • getTotal

        public int getTotal()
      • posArray

        public int[] posArray()
      • sample

        public void sample​(int position)
        Use 'num' as a sample
        Parameters:
        num -
      • size

        public int size()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringHistoPlot

        public java.lang.String toStringHistoPlot​(java.lang.String title,
                                                  java.lang.String xAxisLabel,
                                                  java.lang.String yAxisLabel)
        Create a histogram plot using Google charts
        Returns: