public class GraphUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int[] |
distributionTaxaRepresented(HaplotypeGraph graph) |
static List<HaplotypeNode> |
nodes(HaplotypeGraph graph,
SortedSet<Integer> hapids)
Returns a list of HaplotypeNodes corresponding to the given hapids in the given graph.
|
static List<HaplotypeNode> |
nodesContainingExactly(net.maizegenetics.taxa.TaxaList taxa,
HaplotypeGraph graph)
Gets list of HaplotypeNodes containing exact list of taxa.
|
static void |
nodeTaxaPairs(HaplotypeGraph graph,
String filename) |
static SortedSet<Integer> |
path(TreeMap<net.maizegenetics.dna.map.Chromosome,HaplotypePath> paths)
Returns sorted set of haplotype ids from the given paths.
|
static SortedSet<HaplotypeNode> |
pathsToNodes(TreeMap<net.maizegenetics.dna.map.Chromosome,HaplotypePath> paths) |
static void |
presenceAbsenceTaxonByNode(HaplotypeGraph graph,
String filename) |
static SortedSet<net.maizegenetics.dna.map.Position> |
snpPositions(HaplotypeGraph graph)
Return sorted set of positions that are variant (SNP) positions in given graph.
|
static SortedSet<net.maizegenetics.dna.map.Position> |
snpPositions(HaplotypeGraph graph,
Collection<Integer> referenceRanges)
Return sorted set of positions that are variant (SNP) positions in given graph.
|
static void |
tagNodePairCounts(String tagTaxaFile,
HaplotypeGraph graph,
String outputFile) |
public static SortedSet<Integer> path(TreeMap<net.maizegenetics.dna.map.Chromosome,HaplotypePath> paths)
paths - pathspublic static SortedSet<HaplotypeNode> pathsToNodes(TreeMap<net.maizegenetics.dna.map.Chromosome,HaplotypePath> paths)
public static List<HaplotypeNode> nodes(HaplotypeGraph graph, SortedSet<Integer> hapids)
graph - graphhapids - haplotype idspublic static void presenceAbsenceTaxonByNode(HaplotypeGraph graph, String filename)
public static int[] distributionTaxaRepresented(HaplotypeGraph graph)
public static List<HaplotypeNode> nodesContainingExactly(net.maizegenetics.taxa.TaxaList taxa, HaplotypeGraph graph)
taxa - taxa listgraph - graphpublic static void tagNodePairCounts(String tagTaxaFile, HaplotypeGraph graph, String outputFile)
public static void nodeTaxaPairs(HaplotypeGraph graph, String filename)
public static SortedSet<net.maizegenetics.dna.map.Position> snpPositions(HaplotypeGraph graph)
graph - graphpublic static SortedSet<net.maizegenetics.dna.map.Position> snpPositions(HaplotypeGraph graph, Collection<Integer> referenceRanges)
graph - graphreferenceRanges - set of reference ranges (ids) that are included in result.
If null, all ranges are included.Copyright © 2018. All rights reserved.