$$H = - \sum_{i=1}^n{p_i ln(p_i)}$$ where n is the number of signatures identified in the signature with exposure > cutoff, and pi is the normalized exposure of the ith signature with exposure > cutoff. Exposures of signatures were normalized to sum to 1.

get_shannon_diversity_index(rel_expo, cutoff = 0.001)

## Arguments

rel_expo a data.frame with numeric columns indicating relative signature exposures for each sample. Typically this data can be obtained from get_sig_exposure(). a relative exposure cutoff for filtering signatures, default is 0.1%.

## Value

a data.frame

## References

Steele, Christopher D., et al. "Undifferentiated sarcomas develop through distinct evolutionary pathways." Cancer Cell 35.3 (2019): 441-456.

## Examples

# Load mutational signature