spmviz.measures.contrast#
- spmviz.measures.contrast(ps, groups, positive=None, pseudocount=0.5)[source]#
Support of every pattern in two or more groups of sequences.
- Parameters:
- ps
PatternSet - groups
stror array_like An attribute column of the database or one label per sequence.
- positive
label,optional Group compared with all others (two-group statistics); default the first label.
- pseudocount
float Added to the counts of the log-ratio so that it stays finite.
- ps
- Returns:
pandas.DataFrameRelative support per group (
supp[<label>]),diffandlog2_ratioof the positive group against the rest,growth_rate(Dong & Li, 1999) and the p-value of Fisher’s exact test (two-sided).