create_scINSIGHT: Create an scINSIGHT object.

View source: R/scinsight.R

create_scINSIGHTR Documentation

Create an scINSIGHT object.

Description

This function initializes an scINSIGHT object with normalized data passed in.

Usage

create_scINSIGHT(norm.data, condition)

Arguments

norm.data

List of normalized expression matrices (genes by cells). Gene names should be the same in all matrices.

condition

Vector specifying sample conditions.

Value

scINSIGHT object with norm.data slot set.

Examples

# 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)

scINSIGHT documentation built on May 30, 2022, 1:08 a.m.