pub struct GraphStats {
pub node_count: usize,
pub edge_count: usize,
pub bubble_count: usize,
pub max_bubble_depth: usize,
pub coverage_mean: f64,
pub coverage_variance: f64,
pub edge_weight_gini: f64,
pub single_support_fraction: f64,
pub mean_column_entropy: f64,
pub longest_bubble_span: usize,
pub median_input_read_len: usize,
}Expand description
Per-graph statistics computed in a single O(V+E) pass.
Fields§
§node_count: usize§edge_count: usize§bubble_count: usizeNumber of heterozygous nodes (nodes with 2+ successors each above min_allele_freq).
max_bubble_depth: usize§coverage_mean: f64Mean coverage across all nodes.
coverage_variance: f64Coverage variance across all nodes.
edge_weight_gini: f64Gini coefficient of edge weights (0 = uniform, 1 = all weight on one edge).
single_support_fraction: f64Fraction of nodes supported by exactly one read.
mean_column_entropy: f64Mean per-column Shannon entropy (bits).
longest_bubble_span: usizeSpan in bases of the longest arm across all bubbles that meet the
min_allele_freq threshold. 0 when no qualifying bubble exists.
Arms longer than 4096 nodes are capped at 4096.
median_input_read_len: usizeMedian length (in bases) of all reads that built this graph, including
the seed. 0 when no reads have been added. Used by [diagnose] to
detect consensus truncation: a consensus much shorter than the median
input read is a signal that banded DP converged to the wrong diagonal.
Trait Implementations§
Source§impl Clone for GraphStats
impl Clone for GraphStats
Source§fn clone(&self) -> GraphStats
fn clone(&self) -> GraphStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more