omicverse.micro.Alpha.shannon#
- Alpha.shannon()[source]#
Per-sample Shannon entropy.
Convenience wrapper for
self.run('shannon')['shannon']. Higher values mean more even community composition (mathematical max islog(n_taxa)). Sensitive to rare taxa, so always rarefy first if sequencing depths are unequal — otherwise samples with more reads will appear “more diverse” purely from depth.