public class AMatrixPlugin
extends AbstractPlugin
public AMatrixPlugin(java.awt.Frame parentFrame, boolean isInteractive)
public java.lang.String pluginDescription()
public static java.lang.String[] plinkToPed(java.lang.String ped)
Takes a filepath to a PLINK formatted file(see below). Converts to a String[][] format where each row contains 3 columns: Individual Identifier, Paternal Identifier, Maternal Identifier This format is convenient in calculating an pedigree-based kinship (A) matrix Expected PLINK pedigree file format (.ped) Family ID Individual ID Paternal ID Maternal ID and several more fields These fields are separated by one or more whitespace characters, and each row is on its own line. For our purposes, we expect every Individual ID in the file to be unique
ped
- filepath to a valid PLINK .ped file, or compatible file formatpublic kotlin.Array[] pedMatrix(java.lang.String[] pedigree)
Calculates an A matrix from a pedigree (see
)net.maizegenetics.analysis.distance.AMatrixPlugin$plinkToPed(java.lang.String)
pedigree
- A n by 3 matrix, where each row is of the format myProgeny, parent1, parent2, where each is its unique string identifier. Identifiers of * blank, "0" are treated as unknown parents.net.maizegenetics.analysis.distance.AMatrixPlugin$plinkToPed(java.lang.String)
public java.util.List<java.lang.String> getNameList(java.lang.String[] pedigree)
Given a pedigree in
format, returns the ordered list of identifiers used as indices in the matrix returned by net.maizegenetics.analysis.distance.AMatrixPlugin$plinkToPed(java.lang.String)
.net.maizegenetics.analysis.distance.AMatrixPlugin$pedMatrix(Array((Array((java.lang.String)))))
pedigree
- A n by 3 matrix, where each row is of the format myProgeny, parent1, parent2, where each is its unique string identifier. Identifiers of blank, "0" are treated as unknown parents.net.maizegenetics.analysis.distance.AMatrixPlugin$plinkToPed(java.lang.String)
,
net.maizegenetics.analysis.distance.AMatrixPlugin$pedMatrix(Array((Array((java.lang.String)))))
public java.lang.String pedFilename()
Create A Matrix
public AMatrixPlugin pedFilename(java.lang.String value)
Set Ped Filename. Create A Matrix
value
- Ped Filenamepublic javax.swing.ImageIcon getIcon()
public java.lang.String getButtonName()
public java.lang.String getToolTipText()
public java.lang.String getCitation()