Description Usage Arguments Value Examples
This is an important internal function to calculate distance matrix, it is used in Tree.build.1 and Tree.build.2nd.clustering
1 2 3 4 | dist.matrix.prep(binary.primary, datainfo.col1 = c("res.0.6", "nUMI",
"Sample"), cluster.col1 = "res.0.6", datainfo.col2 = c("res.0.6",
"nUMI", "Sample"), cluster.col2 = "res.0.6", res1 = "res.0.06",
res2 = "res.0.06", datainfo.col3 = c("res.0.6", "nUMI", "Sample"))
|
binary.primary |
This is the primary clustering result that can be retrieved from Tree.build.prepare object. (Because Tree.build.prepare mainly do the primary clustering.)The input here is tree.prep.ob$primary.total |
datainfo.col1 |
default is c("res.0.6","nUMI","Sample") |
cluster.col1 |
default is "res.0.6" |
datainfo.col2 |
default is c("res.0.6","nUMI","Sample") |
cluster.col2 |
default is "res.0.6" |
res1 |
default is "res.0.06 |
res2 |
default is "res.0.06" |
datainfo.col3 |
c("res.0.6","nUMI","Sample") |
This will return an object used for Tree.build.1
1 | total.dist.matrxes<-dist.matrix.prep(primary.total,datainfo.col1=c(paste("res.",first.reso[1],sep=""),"nUMI","Sample"),cluster.col1=paste("res.",first.reso[1],sep=""),datainfo.col2=c(paste("res.",first.reso[2],sep=""),"nUMI","Sample"),cluster.col2=paste("res.",first.reso[2],sep=""),res1=paste("res.",first.reso[1],sep=""),res2=paste("res.",first.reso[2],sep=""))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.