public class FindMergeHaplotypesPlugin
extends AbstractPlugin
Creates haplotypes by finding large IBS regions within GBS data. Starts with the highest coverage taxa and looks within windows of near perfect matches. Combines all matches together into one haplotype. The haplotype is named for the highest coverage sample. TODO: 1. plus add short inbred segments not present full ones 2. Cluster and choose haplotypes by cluster and number of new minor alleles (or information) 3. Set max het frequency as a setting
public FindMergeHaplotypesPlugin()
public FindMergeHaplotypesPlugin(java.awt.Frame parentFrame)
public void runFindMergeHaplotypes(java.lang.String inFile,
java.lang.String exportFile,
java.lang.String errorExportFile,
double maxDistance,
int minSites,
int appoxSitesPerHaplotype)
Produces donor haplotypes that can be used for imputation.
inFile - Input DNA sequence alignment file name in either HapMap or HDF5exportFile - errorExportFile - maxDistance - maximum distance between founder haplotype and other haplotypeminSites - appoxSitesPerHaplotype - public static kotlin.Array[] divideChromosome(GenotypeTable a, int appoxSitesPerHaplotype)
public static java.util.ArrayList<java.lang.Integer> maxMajorAllelesTaxa(GenotypeTable a, int numMaxTaxa, WHICH_ALLELE alleleNumber)
public void setParameters(java.lang.String[] args)
public javax.swing.ImageIcon getIcon()
public java.lang.String getButtonName()
public java.lang.String getToolTipText()
public static void main(java.lang.String[] args)
args -