Description Usage Arguments Value Examples
build_network constructs weighted neighborhood network
1 2 | build_network(exprs, landmark_cluster, distMethod = "euclidean",
baseName = NULL, writeRes = TRUE)
|
exprs |
a data frame or matrix of expression data(ie. rpkm, TPM, fpkm) containing cells in columns and genes in rows |
landmark_cluster |
a data frame or matrix of two columns or a tab delimited file of landmark cluster assignment of individual cells. The first column indicates cell ID, the second column indicates the landmark cluster which the cell was assigned to. |
distMethod |
the method for calculating dissimilarity between cells. distMethod can be one of "pearson", "kendall", "spearman" or "euclidean". Default is "euclidean". |
baseName |
output directory |
writeRes |
a boolean to indicate whether to save result files |
a matrix of weighted neighborhood network, column and row names are landmarks, the values represent the weights of the edges connecting two landmarks
1 2 3 4 5 6 7 8 9 10 | ## Not run:
exprs = "TPM_GSE60783_noOutlier_geneQC0.05anyGroup_CD4vsCD8DEG.txt";
baseName = "TPM_GSE60783_noOutlier_geneQC0.05anyGroup_CD4vsCD8DEG";
landmark = "TPM_GSE60783_noOutlier_geneQC0.05anyGroup_CD4vsCD8DEG_landmark_cluster.txt";
# or landmark can be the return value of landmark_designation function
neighbor_network <- build_network(exprs = exprs,
landmark_cluster = landmark,
baseName = baseName)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.