topPairs: A function to list the top predicted interactions from a...

Description Usage Arguments Value Examples

View source: R/topPairs.R

Description

This pulls out the top predicted interactions from a model

Usage

1
topPairs(P, Z, topX = 10)

Arguments

P

the estimated posterior probability interaction matrix

Z

the observed bipartite interaction matrix

topX

number of interactions to return (default is 10)

Value

Returns a datafame of Host, Parasite, and p(interaction) with length determined by topX (default is 10)

Examples

1
2
3
4
## Not run: 
topPairs(P, Z, topX=15)

## End(Not run)

melmasri/HPprediction documentation built on May 2, 2020, 11:09 a.m.