trimHS_maxI {Rtapas} | R Documentation |
Trims the H-S association matrix maximizing the incongruence
Description
For N runs, it randomly chooses n
associations and trims the H-S
association matrix to include them, allowing both single and multiple
associations.
Usage
trimHS_maxI(N, HS, n, check.unique = TRUE, strat = "sequential", cl = 1)
Arguments
N |
Number of runs. |
HS |
Host-Symbiont association matrix. |
n |
Number of associations. |
check.unique |
if |
strat |
Flag indicating whether execution is to be |
cl |
Number of cluster to be used for parallel computing.
|
Value
A list of the N trimmed matrices.
Examples
data(nuc_cp)
N = 10 #for the example, we recommend 1e+4 value
n = 15
TNC <- trimHS_maxI(N, np_matrix, n, check.unique = TRUE)