public class GenosToABHPlugin
extends AbstractPlugin
Plugin to convert genotypes to parental comparisons and store them in an output file. The user can get outputs as A/H/B, 0/1/2, or 0/0.5/1 for a genotype matching parent A's genotype, heterozygous, or parent B's genotype respectively. If the genotype is neither A or B or a het combination of A/B (B/A) then it is coded as "NA".
public GenosToABHPlugin()
public GenosToABHPlugin(java.awt.Frame parentFrame,
boolean isInteractive)
protected void preProcessParameters(DataSet input)
public DataSet processData(DataSet input)
The main method. Plugin to convert genotypes to parental comparisons and store them in an output file. The user can get outputs as A/H/B, 0/1/2, or 0/0.5/1 for a genotype matching parent A's genotype, heterozygous, or parent B's genotype respectively. If the genotype is neither A or B or a het combination of A/B (B/A) then it is coded as "NA".
input - inputpublic void createParentalByteGenos(GenotypeTable genos, kotlin.Array[] parentAGenos, kotlin.Array[] parentBGenos, kotlin.Array[] hets)
public byte getParentalGenotype(GenotypeTable genos, java.util.ArrayList<java.lang.Integer> parentIndices, int site)
public java.lang.String getToolTipText()
public javax.swing.ImageIcon getIcon()
public java.lang.String getButtonName()
public GenotypeTable runPlugin(DataSet input)
Convenience method to run plugin with one return object.
public java.lang.String outfile()
Output genotype file with ABH encoding
public GenosToABHPlugin outfile(java.lang.String value)
Set Output file. Output genotype file with ABH encoding
value - Output filepublic java.lang.String parentA()
The full name of parent to be encoded as A
public GenosToABHPlugin parentA(java.lang.String value)
Set Parent A. The full name of parent to be encoded as A
value - Parent Apublic java.lang.String parentB()
The full name of parent to be encoded as B
public GenosToABHPlugin parentB(java.lang.String value)
Set Parent B. The full name of parent to be encoded as B
value - Parent Bpublic net.maizegenetics.analysis.data.GenosToABHPlugin.OUTPUT_CHECK outputFormat()
The output format enum
public GenosToABHPlugin outputFormat(net.maizegenetics.analysis.data.GenosToABHPlugin.OUTPUT_CHECK value)
Set Output Format. The output format enum
value - Output Formatpublic java.lang.String getCitation()
public java.lang.String pluginUserManualURL()