All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.maizegenetics.taxa.TaxaTissueDist Maven / Gradle / Ivy

Go to download

TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage disequilibrium.

The newest version!
package net.maizegenetics.taxa;

public class TaxaTissueDist {
    private final int maxTaxa;
    private final int maxTissue;
    int[][] tissueTaxa;       
    public TaxaTissueDist(int mtissue, int mtaxa) {
        maxTaxa = mtaxa;
        maxTissue = mtissue;
        tissueTaxa = new int[maxTissue][maxTaxa];
    }
    
   public synchronized void increment(int tissueNum, int taxaNum) {
       tissueTaxa[tissueNum][taxaNum]++;
   }

   public synchronized int getTissueDepths(int tissueNum, int taxaNum) {
       return tissueTaxa[tissueNum][taxaNum];
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy