trimHS_maxC {Rtapas} | R Documentation |
Trims the H-S association matrix maximizing the congruence
Description
For N runs, it randomly chooses n
unique one-to-one associations and
trims the H-S association matrix to include only the n associations.
Usage
trimHS_maxC(N, HS, n, check.unique = TRUE, strat = "sequential", cl = 1)
Arguments
N |
Number of runs. |
HS |
Host-Symbiont association matrix. |
n |
Number of unique 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_maxC(N, np_matrix, n, check.unique = TRUE)