View source: R/qtool_functions.R
getSimilarities.sample | R Documentation |
This function get similarity metrics for comparisons per sample
getSimilarities.sample(s, dat1, dat2, method, pvalue)
s |
sample name |
dat1 |
matrix with bin-level copy numbers per sample to test |
dat2 |
matrix with bin-level copy numbers per model to compare |
method |
method to use for testing similarity. Default is all methods. |
pvalue |
a logical value to indicate if the empirical pvalue is calculated or not |
dataframe with similarity metrics for all comparisons of the sample
posBins<-lapply(1,function(chr) getBinsStartsEnds(window=1000000, chr, lengthChr[chr])) ccle_cn<-getCNbins(posBins=posBins,data=cells_segcn,samples=unique(cells_segcn$sample)[1:2]) exp_cell<-as.matrix(ccle_cn[,1]) colnames(exp_cell)<-unique(cells_segcn$sample)[1] measures<-getSimilarities.sample(s=colnames(exp_cell),dat1=exp_cell, dat2=ccle_cn,method="pearson",pvalue=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.