data.aggregation function

Merge multiple data frames and add the condition names to their cell ids

Merge multiple data frames and add the condition names to their cell ids

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

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.

Returns

An object of class iCellR

Examples

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)
  • Maintainer: Alireza Khodadadi-Jamayran
  • License: GPL-2
  • Last published: 2024-01-29