net.maizegenetics.dna.snp.byte2d.MemoryByte2D Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tassel Show documentation
Show all versions of tassel Show documentation
TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage
disequilibrium.
/*
* MemoryByte2D
*/
package net.maizegenetics.dna.snp.byte2d;
import net.maizegenetics.dna.snp.score.SiteScore;
import net.maizegenetics.util.SuperByteMatrix;
/**
* @author Terry Casstevens
*/
public class MemoryByte2D extends AbstractByte2D {
private final SuperByteMatrix myValues;
MemoryByte2D(SiteScore.SITE_SCORE_TYPE scoreType, SuperByteMatrix values) {
super(scoreType, values.getNumRows(), values.getNumColumns());
myValues = values;
}
@Override
public byte valueForAllele(int taxon, int site) {
return myValues.get(taxon, site);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy