How to calculate correlations across two matrices across samples?
1
1
Entering edit mode
8.0 years ago
biohack92 ▴ 170

I have methylation count data in the following two matrices.

cov <- matrix(sample(0:7, 100,replace=TRUE), nrow=10, ncol=10)
colnames(cov) <- c("group1_1", "group1_2", "group1_3", "group1_4", "group1_5", "group2_1", "group2_2", "group2_3", "group2_4", "group2_5")
meth <- matrix(sample(7:10, 100,replace=TRUE), nrow=10, ncol=10)
colnames(meth) <- c("group1_1", "group1_2", "group1_3", "group1_4", "group1_5", "group2_1", "group2_2", "group2_3", "group2_4", "group2_5")

First five samples in each matrix belong to group1, second five samples to group2.

I've been asked to look at correlations across the matrices across samples, with the purpose of identifying outliers. How do I perform this test and what should I be looking for?

statistics R sequencing methylation • 1.5k views
ADD COMMENT
1
Entering edit mode
8.0 years ago
Shicheng Guo ★ 9.4k

I think you can cbind the two matrix and do the cluster analysis to check the relationship or distance between the samples in different group and different samples, such kind of Batch effect, outlier and identification can be shown in this way. In addition, you can try some other methods such as PCA, SVD and MDS.

ADD COMMENT

Login before adding your answer.

Traffic: 2078 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6