public class ConvertGBSToSNPs extends Object
| Constructor and Description |
|---|
ConvertGBSToSNPs() |
public ConvertGBSToSNPs countHaplotypeNodesFromFastQ()
public void testHapidCounts(HaplotypeGraph graph, String taxonName)
public ConvertGBSToSNPs filterHaplotypeGraph(HaplotypeGraph hapGraph)
hapGraph - the HaplotypeGraph to be filteredpublic ConvertGBSToSNPs filterHaplotypeGraph(HaplotypeGraph hapGraph, List<Integer> rangesToKeep)
hapGraph - the HaplotypeGraph to be filteredpublic void listTaxa()
public void showNodeCounts()
public List<HaplotypeNode> haplotypeCountsToPath()
public List<double[]> haplotypeCountsToPathProbability()
public List<HaplotypeNode> nodeListFromProbabilities(double minP, String infoFilename)
public List<HaplotypeNode> nodeListFromProbabilities(double minP)
public double[] startProbabilities(List<HaplotypeNode> nodeList)
nodeList - the list of nodes at the first range in a linked series of ranges (a chromosome)public double[] probabilityOfBeingCorrect(HaplotypeGraph hapGraph, com.google.common.collect.Multiset<Integer> hapidCounts)
hapGraph - a HaplotypeGraphhapidCounts - a Multiset of hapids used to retrieve hapid countspublic double[] probabilityOfBeingCorrect(com.google.common.collect.Multiset<Integer> hapidCounts, TreeMap<ReferenceRange,List<HaplotypeNode>> rangeToNodesMap)
hapidCounts - a Multiset of hapids used to retrieve hapid countsrangeToNodesMap - a map with ReferenceRange as key and the List of nodes at that range as the associated valuepublic double[] probabilityOfBeingCorrect(Map<Integer,Integer> hapidCountMap, TreeMap<ReferenceRange,List<HaplotypeNode>> rangeToNodesMap)
hapidCountMap - a Multiset of hapids used to retrieve hapid countsrangeToNodesMap - a map with ReferenceRange as key and the List of nodes at that range as the associated valuepublic List<HaplotypeNode> nodesOnPath()
public HaplotypeGraph filteredGraph()
public ConvertGBSToSNPs hapidCounts(com.google.common.collect.Multiset<Integer> hapidCounts)
public ConvertGBSToSNPs hapidCountMap(Map<Integer,Integer> countmap)
public ConvertGBSToSNPs hapidExclusionCountMap(Map<Integer,Integer> countmap)
public ConvertGBSToSNPs minReadsPerRange(int minReads)
public ConvertGBSToSNPs maxReadsPerRangeKB(int maxReads)
public ConvertGBSToSNPs taxaFilterList(String taxaNames)
public ConvertGBSToSNPs taxaFilterList(net.maizegenetics.taxa.TaxaList listOfTaxa)
public ConvertGBSToSNPs minTaxaPerRange(int minTaxa)
public ConvertGBSToSNPs maxNodesPerRange(int maxNodes)
public ConvertGBSToSNPs probabilityReadMappingCorrect(double probCorrect)
public ConvertGBSToSNPs minTransitionProbability(double minprob)
public ConvertGBSToSNPs emissionProbabilityMethod(ReferenceRangeEmissionProbability.METHOD method)
public ConvertGBSToSNPs splitTaxa(boolean split)
public ConvertGBSToSNPs transitionProbabilitySameTaxon(double p)
public ConvertGBSToSNPs targetTaxon(String taxonName)
Copyright © 2018. All rights reserved.