public class GenerateRCode
public static void main(java.lang.String[] args)
public static void generate(java.lang.Class currentMatch,
java.lang.String inputObject,
java.lang.String outputObject)
public static kotlin.Array[] genotypeTableToDosageByteArray(GenotypeTable genotype, boolean useRef)
This converts a genotype table to a double dimension dosage byte array.
genotype - genotype tableuseRef - Use reference if true, and use major allele if falsepublic static java.lang.String[] genotypeTableToSampleNameArray(GenotypeTable genotype)
This converts the taxa of the specified genotype table to an array of taxa name strings.
genotype - genotype tablepublic static java.lang.String[] genotypeTableToSampleNameArray(TaxaList taxa)
This converts the taxa list to an array of taxa name strings.
taxa - taxa listpublic static net.maizegenetics.plugindef.GenerateRCode.PositionVectors genotypeTableToPositionListOfArrays(PositionList positions)
This converts the given position list to a @class GenerateRCode.PositionVectors
positions - class GenerateRCode.PositionVectorsclass GenerateRCode.PositionVectorspublic static net.maizegenetics.plugindef.GenerateRCode.PositionVectors genotypeTableToPositionListOfArrays(GenotypeTable genotype)
This converts the position list of the given genotype table to a @class GenerateRCode.PositionVectors
genotype - genotype tableclass GenerateRCode.PositionVectorsclass GenerateRCode.PositionVectorspublic static net.maizegenetics.plugindef.GenerateRCode.TableReportVectors tableReportToVectors(TableReport tableReport)
Temporary place for this experimental method.
tableReport - public static Phenotype createPhenotypeFromRDataFrameElements(java.lang.String[] taxaArray, java.lang.String[] colNames, java.lang.String[] attributeType, java.util.List dataVectors)
public static java.util.Map<java.lang.String,java.lang.Object> association(DistanceMatrix kinship, GenotypeTable genotype, Phenotype phenotype, GenotypePhenotype genoPheno, int minClassSize, boolean biallelicOnly, boolean appendAddDom, boolean saveToFile, java.lang.String outputFile, double maxP)
public static java.util.Map<java.lang.String,java.lang.Object> fastAssociation(GenotypePhenotype genoPheno, java.lang.Double maxp, java.lang.Integer maxThreads, boolean writeToFile, java.lang.String outputFile)
public static TableReport linkageDiseq(GenotypeTable genotype, java.lang.String ldType, int windowSize, java.lang.String hetTreatment)
public static void exportToFlapjack(GenotypeTable genotype, java.lang.String filename)
public static GenotypeTable read(java.lang.String filename, boolean keepDepth, boolean sortPositions)
public static TableReport genomicSelection(Phenotype phenotype, DistanceMatrix matrix, boolean doCV, int kFolds, int nIter)
public static GenotypeTable filterSitesByGRanges(GenotypeTable input, java.lang.String[] seqName, kotlin.Array[] start, kotlin.Array[] end)
Filters given genotypes to only the ranges specified.
input - genotype table to be filteredseqName - sequence names (i.e. chromosomes) for rangesstart - start positions for each range (inclusive)end - end positions for each range (inclusive)public static DistanceMatrix asTasselDistanceMatrix(kotlin.Array[] m, java.lang.String[] taxa)
Convert an R matrix to a DistanceMatrix object
m - A numeric R matrix passed as a 2d array of doublestaxa - A String array of taxa IDs