public class LDKNNiImputationHetV3Plugin
extends AbstractPlugin
This imputation algorithm uses LD to identify good predictors for each SNP, and then uses the high LD SNPs to identify K- Nearest Neighbors. The genotype is called with a weighted mode of the KNNs.
public LDKNNiImputationHetV3Plugin()
public LDKNNiImputationHetV3Plugin(java.awt.Frame parentFrame,
boolean isInteractive)
protected void preProcessParameters(DataSet input)
public java.lang.String getCitation()
public javax.swing.ImageIcon getIcon()
public java.lang.String getButtonName()
public java.lang.String getToolTipText()
public static void main(java.lang.String[] args)
public GenotypeTable runPlugin(DataSet input)
Convenience method to run plugin with one return object.
public java.lang.Integer highLDSSites()
Number of sites in high LD to use in imputation
public LDKNNiImputationHetV3Plugin highLDSSites(java.lang.Integer value)
Set High LD Sites. Number of sites in high LD to use in imputation
value - High LD Sitespublic java.lang.Integer knnTaxa()
Number of neighbors to use in imputation
public LDKNNiImputationHetV3Plugin knnTaxa(java.lang.Integer value)
Set Number of nearest neighbors. Number of neighbors to use in imputation
value - Number of nearest neighborspublic java.lang.Integer maxDistance()
Maximum physical distance between sites to search for LD (-1 for no distance cutoff - unlinked chromosomes will be tested)
public LDKNNiImputationHetV3Plugin maxDistance(java.lang.Integer value)
Set Max distance between site to find LD. Maximum physical distance between sites to search for LD (-1 for no distance cutoff - unlinked chromosomes will be tested)
value - Max distance between site to find LDpublic java.lang.Double maxDistanceFromNN()
Maximum distance from Nearest Neighbor
public LDKNNiImputationHetV3Plugin maxDistanceFromNN(java.lang.Double value)
Set Maximum distance from Nearest Neighbor. Maximum distance from Nearest Neighbor
value - Maximum distance from Nearest Neighborpublic java.lang.Double duplicateHetsThreshold()
Threshold for defining heterozygous sites
public LDKNNiImputationHetV3Plugin duplicateHetsThreshold(java.lang.Double value)
Set HeterozygousThreshold. Threshold for defining heterozygous sites
value - HeterozygousThresholdpublic java.lang.Double automaticMajorMAF()
Set to Major genotype if no imputation result and MAF is below threshold
public LDKNNiImputationHetV3Plugin automaticMajorMAF(java.lang.Double value)
Set Automatic MajorGenotype if MAF. Set to Major genotype if no imputation result and MAF is below threshold
value - Automatic MajorGenotype if MAFpublic java.lang.Double minCoverageForDonors()
Minimum coverage for donor genotype and LD calculation
public LDKNNiImputationHetV3Plugin minCoverageForDonors(java.lang.Double value)
Set Minimum coverage for donors and LD. Minimum coverage for donor genotype and LD calculation
value - Minimum coverage for donors and LDpublic java.lang.Double minCallBestGenoRatio()
Minimum ratio between best and second best genotype to make a call
public LDKNNiImputationHetV3Plugin minCallBestGenoRatio(java.lang.Double value)
Set Minimum support ratio for best genotype. Minimum ratio between best and second best genotype to make a call
value - Minimum support ratio for best genotypepublic java.lang.Integer maxCores()
Maximum number of cores to be used for processing
public LDKNNiImputationHetV3Plugin maxCores(java.lang.Integer value)
Set Maximum number of cores for processing. Maximum number of cores to be used for processing
value - Maximum number of cores for processingpublic static kotlin.Array[] dist(kotlin.Array[] b1,
kotlin.Array[] b2,
int min)
Alternative to current IBS distance measure AA <> AA = 0 Aa <> Aa = 0 distance (normal IBS distance this is 0.5) AA <> aa = 1 distance