Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package net.maizegenetics.analysis.modelfitter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.maizegenetics.analysis.association.AssociationUtils;
import net.maizegenetics.analysis.modelfitter.AdditiveSite.CRITERION;
import net.maizegenetics.dna.map.Position;
import net.maizegenetics.dna.snp.GenotypeTable;
import net.maizegenetics.phenotype.CategoricalAttribute;
import net.maizegenetics.phenotype.GenotypePhenotype;
import net.maizegenetics.phenotype.NumericAttribute;
import net.maizegenetics.phenotype.Phenotype;
import net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE;
import net.maizegenetics.phenotype.PhenotypeAttribute;
import net.maizegenetics.phenotype.PhenotypeBuilder;
import net.maizegenetics.phenotype.TaxaAttribute;
import net.maizegenetics.stats.linearmodels.CovariateModelEffect;
import net.maizegenetics.stats.linearmodels.FactorModelEffect;
import net.maizegenetics.stats.linearmodels.ModelEffect;
import net.maizegenetics.taxa.TaxaList;
import net.maizegenetics.taxa.TaxaListBuilder;
import net.maizegenetics.taxa.TaxaListUtils;
import net.maizegenetics.taxa.Taxon;
/**
* @author pbradbury
*
*/
public abstract class AbstractForwardRegression implements ForwardRegression {
//performs forward regression
//requires one phenotype as a double array and a genotype table
//accepts additional fixed effects, either covariates or factors
//returns a list of markers with p-values
//no missing values allowed in phenotype, factors, or covariates
private Logger myLogger = LogManager.getLogger(AbstractForwardRegression.class);
protected double[] y; //data for a single phenotype (no missing data allowed)
protected final GenotypePhenotype myGenotypePhenotype;
protected final GenotypeTable myGenotype;
protected final Phenotype myPhenotype;
protected double enterLimit;
protected int maxVariants;
protected final int numberOfSites;
protected final int numberOfObservations;
protected List siteList;
protected final List myBaseModel;
protected List myModel;
protected List