
SparCC correlation matrix (Rcpp implementation)
Source:R/sparcc_matrix_rcpp.R
sparcc_matrix_rcpp.RdFast C++ implementation of SparCC for inferring correlations from compositional count data. Input: samples x taxa matrix. Output: taxa x taxa correlation matrix.
Arguments
- data
Numeric matrix. Rows = samples, columns = taxa (ASVs/OTUs).
- iter
Integer. Number of outer iterations (Dirichlet resampling). Default 20.
- inner_iter
Integer. Max inner iterations for pair exclusion. Default 10.
- th
Numeric. Threshold for excluding highly correlated pairs. Default 0.1.
- nthreads
Integer. Number of OpenMP threads for parallel
sparccinner(0 = use default). Only effective when OpenMP is available.