Description Usage Arguments Value Examples
constructs a sample-similarity network for each propagated expression matrix and then integrates these networks into a single cell-cell similarity network based on a nonlinear combination method.
1 |
data |
A list stored network-smoothed gene expression matrix with two length. |
K |
Number of neighbors in K-nearest neighbors part of the algorithm. |
T |
Number of iterations for the diffusion process. |
alpah |
Variance for local model. |
A consensus similarity matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ##Loading example data
load(system.file("data","yan.Rdata",package = "scNPF"))
exp.data <- yan$data[1:2000,]
##Smoothed gene expression based on priori mode
##Using String network.
load(system.file("data","string.Rdata",package = "scNPF"))
string.data <- scNPF.pro(x=exp.data, network=string)
##Smmothed gene expression based on context mode
context.data<- scNPF.pro(x=exp.data, network="context",qt.gene=0.9,qt.cell=0.9)
##Construction a cell-by-cell similarity matrix.
similarity <- scNPF.fus(data=list(string=string.data,context=context.data))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.