SampleToSampleStats.scala 531 Bytes
Newer Older
Peter van 't Hof's avatar
Peter van 't Hof committed
1
2
3
package nl.lumc.sasc.biopet.tools.vcfstats

/**
Peter van 't Hof's avatar
Peter van 't Hof committed
4
5
6
7
 * Class to store sample to sample compare stats
 * @param genotypeOverlap Number of genotypes match with other sample
 * @param alleleOverlap Number of alleles also found in other sample
 */
Peter van 't Hof's avatar
Peter van 't Hof committed
8
9
10
11
12
13
14
15
case class SampleToSampleStats(var genotypeOverlap: Int = 0,
                               var alleleOverlap: Int = 0) {
  /** Add an other class */
  def +=(other: SampleToSampleStats) {
    this.genotypeOverlap += other.genotypeOverlap
    this.alleleOverlap += other.alleleOverlap
  }
}