create_scINSIGHT {scINSIGHT} | R Documentation |
This function initializes an scINSIGHT object with normalized data passed in.
create_scINSIGHT(norm.data, condition)
norm.data |
List of normalized expression matrices (genes by cells). Gene names should be the same in all matrices. |
condition |
Vector specifying sample conditions. |
scINSIGHT
object with norm.data slot set.
# Demonstration using matrices with randomly generated numbers
S1 <- matrix(runif(50000,0,2), 500,100)
S2 <- matrix(runif(60000,0,2), 500,120)
S3 <- matrix(runif(80000,0,2), 500,160)
S4 <- matrix(runif(75000,0,2), 500,150)
data = list(S1, S2, S3, S4)
sample = c("sample1", "sample2", "sample3", "sample4")
condition = c("control", "activation", "control", "activation")
names(data) = sample
names(condition) = sample
scINSIGHTx <- create_scINSIGHT(data, condition)