inst/testData/testData_normalize_correlation.R

library(spqn)
library(spqnData)
library(SummarizedExperiment)

data(gtex.4k)
cor_m <- cor(t(assay(gtex.4k)))
ave_logrpkm <- rowData(gtex.4k)$ave_logrpkm

cor_m_spqn <- normalize_correlation(cor_m, ave_exp=ave_logrpkm, ngrp=20, size_grp=300, ref_grp=18)

cor_m_spqn_sample = cor_m_spqn[1:500,1:500]
save(cor_m_spqn_sample, file=file.path("..", "unitTests", "cor_m_spqn_sample.rda"))

sessionInfo()

Try the spqn package in your browser

Any scripts or data that you put into this service are public.

spqn documentation built on Nov. 8, 2020, 8:10 p.m.