public class AbstractFixedEffectLM implements FixedEffectLM
protected static org.apache.log4j.Logger myLogger
protected Datum myDatum
protected GenotypePhenotype myGenoPheno
protected int numberOfObservations
protected int numberOfSites
protected java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> myDataAttributes
protected java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> myFactorAttributes
protected java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> myCovariateAttributes
protected TableReportBuilder siteReportBuilder
protected TableReportBuilder alleleReportBuilder
protected int numberOfSiteReportColumns
protected int numberOfAlleleReportColumns
protected kotlin.Array[] allData
protected int myCurrentSite
protected int myCurrentSiteMinimumClassSize
protected kotlin.Array[] siteData
protected OpenBitSet missingObsForSite
protected java.lang.String currentTraitName
protected boolean areTaxaReplicated
protected boolean saveToFile
protected java.lang.String siteReportFilename
protected java.lang.String alleleReportFilename
protected double maxP
protected FixedEffectLMPlugin myParentPlugin
protected boolean appendAddDomEffects
protected int minClassSize
protected boolean biallelicOnly
protected boolean outputSiteStats
protected java.lang.String siteStatsFile
protected boolean permute
protected int numberOfPermutations
protected kotlin.Array[] minP
protected java.util.List<net.maizegenetics.matrixalgebra.Matrix.DoubleMatrix> permutedData
protected kotlin.Array[] baseErrorSSdf
protected kotlin.Array[] totalcfmSSdf
protected kotlin.Array[] markerSSdf
protected kotlin.Array[] errorSSdf
protected java.util.List<kotlin.Array[]> siteTableReportRows
protected int markerpvalueColumn
protected int permpvalueColumn
protected java.util.ArrayList<net.maizegenetics.stats.linearmodels.ModelEffect> myModel
protected DoubleMatrix G
protected java.util.ArrayList<net.maizegenetics.stats.linearmodels.ModelEffect> myBaseModel
protected int numberOfBaseEffects
protected int taxaEffectNumber
protected int randomSeed
protected boolean useRandomSeed
protected java.util.Random rand
protected static java.util.Map<net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE,java.lang.String> typeNameMap
public AbstractFixedEffectLM(Datum dataset, FixedEffectLMPlugin parentPlugin)
public void initializeReportBuilders()
public void solve()
public TableReport siteReport()
public TableReport alleleReport()
public java.util.List<net.maizegenetics.plugindef.Datum> datumList()
public void permutationTest(boolean permute,
int nperm)
protected void getGenotypeAndUpdateMissing(BitSet missingObsBeforeSite)
missingObsBeforeSite - a BitSet with bits set for observations missing in model covariates and dataprotected void getGenotypeAfterUpdatingMissing()
updates the genotype after missingObsForSite has changed
protected void analyzeSite()
protected java.lang.String[] siteReportColumnNames()
protected java.lang.String[] alleleReportColumnNames()
protected java.util.ArrayList<net.maizegenetics.stats.linearmodels.ModelEffect> baseModel()
protected void createPermutedData()
protected void updateReportsWithPermutationP()
protected ModelEffect taxaEffect()
protected void testTaxaReplication()
protected void updateMinP(BitSet missingObsBeforeSite)
public void maxP(double maxP)
public void siteReportFilepath(java.lang.String savefile)
public void alleleReportFilepath(java.lang.String savefile)
public void biallelicOnly(boolean biallelic)
public void minimumClassSize(int minsize)
public void saveSiteStats(boolean siteStats)
public void siteStatsFile(java.lang.String filename)
public void appendAddDom(boolean append)
public void setRandomSeed(int seed)
This method is used mainly for testing in order to generate reproducible permutation results. If the seed is not set, the current time is used to initialize the random number generator.
seed - the seed used to initialize the random number generator used by permutation