public class NucleotideImputationUtils
public static void callParentAllelesByWindow(PopulationData popdata, double maxMissing, double minMaf, int windowSize, double minR)
public static void callParentAllelesUsingClusters(PopulationData popdata, double maxMissing, double minMaf, int windowSize, boolean checkSubpops)
public static void callParentAllelesUsingClustersOnly(PopulationData popdata, double maxMissing, double minMaf, int windowSize, boolean checkSubpops)
public static boolean compareHaplotypes(kotlin.Array[] h0,
kotlin.Array[] h1,
int overlap,
int haplength)
public static double haplotypeOverlapSimilarity(kotlin.Array[] h0,
kotlin.Array[] h1,
int overlap,
int haplength)
public static void createSubPops(PopulationData popdata, boolean isNAM)
public static void checksubpops(PopulationData popdata, int halfWindowSize)
public static kotlin.Array[] translateSitesBackToOriginal(kotlin.Array[] sites,
kotlin.Array[] translation)
public static java.util.ArrayList<net.maizegenetics.analysis.clustering.HaplotypeCluster> extendClusters(GenotypeTable a, java.util.ArrayList<net.maizegenetics.analysis.clustering.HaplotypeCluster> clusters, kotlin.Array[] sites, kotlin.Array[] windowSize, boolean forward)
public static java.lang.String getMajorAlleleFromSnpset(com.google.common.collect.Multiset<java.lang.String> snpset,
double alpha)
public static java.lang.String getMajorAlleleFromSnpset(com.google.common.collect.Multiset<java.lang.String> snpset)
public static void updateAlleleCalls(HaplotypeCluster cluster, kotlin.Array[] sites, kotlin.Array[] alleleCalls)
public static void callParentAllelesByWindowForBackcrosses(PopulationData popdata, double maxMissing, double minMaf, int windowSize, double minR)
public static void callParentAllelesByWindowForMultipleBC(PopulationData popdata, double maxMissing, int minMinorAlleleCount, int windowSize)
public static void checkAlignmentOrderIgnoringParents(GenotypeTable[] alignments, PopulationData family, double r)
public static kotlin.Array[] getWindows(BitSet ispoly, int windowSize)
public static void callParentAllelesUsingTaxaGroups(PopulationData family, GenotypeTable[] taxaGroups, java.util.LinkedList<java.lang.Integer> snpList)
family - a PopulationData object containing information for this familytaxaGroups - an array of two alignments corresponding to two clusters of taxasnpList - the list of snps to be calledpublic static double getIdCorrelation(TaxaList[] id)
public static BitSet whichSitesArePolymorphic(GenotypeTable a, double maxMissing, int minMinorAlleleCount)
public static BitSet whichSitesArePolymorphic(GenotypeTable a, double maxMissing, double minMaf)
public static BitSet whichSitesSegregateCorrectly(GenotypeTable a, double maxMissing, double ratio)
public static GenotypeTable[] getTaxaGroupAlignments(GenotypeTable a, kotlin.Array[] parentIndex, java.util.LinkedList<java.lang.Integer> snpIndices)
public static double computeRForAlleles(int site1,
int site2,
GenotypeTable a)
public static double computeRForMissingness(int site1,
int site2,
GenotypeTable a)
public static boolean areSameTag(int site1,
int site2,
GenotypeTable a)
public static kotlin.Array[] matchCount(int site1,
int site2,
GenotypeTable a)
public static double computeGenotypeR(int site1,
int site2,
GenotypeTable a)
public static GenotypeTable imputeUsingViterbiFiveState(GenotypeTable a, double probHeterozygous, java.lang.String familyName)
public static GenotypeTable imputeUsingViterbiFiveState(GenotypeTable a, double probHeterozygous, java.lang.String familyName, boolean useVariableRecombitionRates)
public static void fillGapsInAlignment(PopulationData popdata)
public static GenotypeTable fillGapsInImputedAlignment(PopulationData popdata)
public static GenotypeTable convertParentCallsToNucleotides(PopulationData popdata)
public static OpenBitSet whichSnpsAreFromSameTag(GenotypeTable geno, double minRsq)
public static OpenBitSet whichSnpsAreFromSameTag(GenotypeTable geno, BitSet polybits)
public static GenotypeTable filterSnpsByTag(GenotypeTable a, double minMaf, double maxMissing, double maxHet)
public static BitSet ldfilter(GenotypeTable a, int window, double minR, BitSet filterBits)
public static double neighborLD(GenotypeTable a, int snp, int window, BitSet filterBits)
public static java.util.ArrayList<net.maizegenetics.analysis.clustering.HaplotypeCluster> clusterWindow(GenotypeTable a, int start, int length, int maxdif)
public static void checkParentage(PopulationData popdata)
Checks whether alleleA is parent1 and alleleC is parent2. If not, switches them.
popdata -