Expand description
duplicateCorrelation (dups.R) and its helpers. Estimates the intra-block
(or intra-duplicate) correlation of a series of arrays via REML, reproducing
limma’s call into statmod’s mixedModel2Fit(only.varcomp=TRUE) and
glmgam.fit. Only the weights = NULL path is implemented; weighted
correlation estimation is out of scope for this pure-Rust port.
Structs§
- DupCor
Output - Result of
duplicate_correlation.
Functions§
- avedups
avedups.default(numeric matrix path): average over thendupsduplicate spotsspacingapart, optionally weighted, giving a(spacing*ngroups) x nslidesmatrix.NaNvalues are skipped (R’sna.rm = TRUE); a weight that isNaN, negative, or paired with aNaNvalue is treated as zero, so a group with no usable weight yieldsNaN.- duplicate_
correlation duplicateCorrelation(object, design, ndups, spacing, block, trim)for the unweighted matrix path. Provide eitherblock(intra-block correlation,ndups/spacingignored) orndups >= 2(intra-duplicate correlation).- uniquegenelist
uniquegenelist: keep one entry per gene by selecting the first of each group ofndupsduplicate spotsspacingapart (the first column ofunwrapdups). Generic over the element type so it serves character gene lists as well as numeric ones.- unwrapdups
unwrapdups: reshape anspots x nslidesmatrix so that thendupsspotsspacingapart for one gene share a row, givingnspots/ndups/spacingrows andndups*nslidescolumns.