niche_stats module

niche_stats module#

Tools to test and visualize the internal cohesion of each niche relative to its cross-niche connections

community_edge_stats

Per-community positive/negative edge count and weight statistics.

community_edge_stats_df

Flat DataFrame version of community_edge_stats().

community_edge_weight_distributions

Raw edge weight lists per community, split by location and sign.

community_signed_weight_distributions

Combine positive and negative weights into a single signed distribution.

pairwise_ranksums_int_ext

Wilcoxon rank-sum test comparing internal vs external edge weight distributions for each community, with multiple-testing correction.

plot_internal_external_boxplots

Box plots of signed edge weights (internal vs external) per community.