omicverse.micro.MMvec.top_pairs#
- MMvec.top_pairs(n=20)[source]#
Top-
n(microbe, metabolite) pairs ranked by|log-odds|.Stacks
cooccurrence()into long format and sorts by the absolute score, so the top of the list mixes strong positive and strong negative pairs (read thescorecolumn to see the sign). Returns a DataFrame with columnsmicrobe,metabolite,score.- Parameters:
n (
int(default:20))