data.aggregation: Merge multiple data frames and add the condition names to...

Description Usage Arguments Value Examples

Description

This function takes data frame and merges them while also adding condition names to cell ids..

Usage

1
data.aggregation(samples = NULL, condition.names = NULL)

Arguments

samples

A character vector of data.frame object names.

condition.names

A character vector of data.frame condition names.

Value

An object of class iCellR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
demo <- read.table(
        file = system.file('extdata', 'demo_data.txt', package = 'iCellR'),
        as.is = TRUE)

# Lets divide your sample in to 3 samples as if you have 3 samples and want to merge them.
sample1 <- demo[1:30]
sample2 <- demo[31:60]
sample3 <- demo[61:90]

# merge all 3 data and add condition names
demo <- data.aggregation(samples =
        c("sample1","sample2","sample3"),
        condition.names = c("WT","ctrl","KO"))
head(demo)[1:4]

# make iCellR object
myDemo.obj <- make.obj(demo)

iCellR documentation built on Oct. 9, 2021, 5:07 p.m.