public class GenotypeAdditiveSite
extends AbstractAdditiveSite
GenotypeAdditiveSite is an AdditiveSite that takes a byte[] array of genotypes as input and converts them to a double[] array. It codes the homozygous major as 2, homozygous minor as 0 and het as 1. It then subtracts the mean value from all elements of the array and sets missing to zero (now the mean). For efficient storage, the values of 0,1,2,3 are stored in a byte array which indexes the double values.
public GenotypeAdditiveSite(int site,
java.lang.String chr,
int pos,
java.lang.String id,
net.maizegenetics.analysis.modelfitter.AdditiveSite.CRITERION selectionCriterion,
kotlin.Array[] genotype,
byte majorAllele,
double majorAlleleFrequency)
site - the site index from the originating GenotypeTablegenotype - genotypeAllTaxa for this sitemajorAllele - major allelemajorAlleleFrequency - major allele frequencypublic void reindexTaxa(kotlin.Array[] taxaIndex,
java.util.List<java.lang.Integer> uniqueTaxa)
public kotlin.Array[] getCovariate()
public kotlin.Array[] getCovariate(kotlin.Array[] subset)
public kotlin.Array[] getCovariateNoReindex()
public kotlin.Array[] getCovariateNoReindex(kotlin.Array[] subset)
public kotlin.Array[] getCovariateWithReindex()
public kotlin.Array[] getCovariateWithReindex(kotlin.Array[] subset)
public static void serializeAdditiveSites(GenotypeTable geno, java.lang.String outFile)
public AdditiveSite copy()