Learn R Programming

iCellR (version 1.6.1)

add.vdj: Add V(D)J recombination data

Description

This function takes a data frame of VDJ information per cell and adds it to the iCellR object.

Usage

add.vdj(x = NULL, vdj.data = "data.frame")

Arguments

x

An object of class iCellR.

vdj.data

A data frame containing VDJ information for cells.

Value

An object of class iCellR

Examples

Run this code
# NOT RUN {
my.vdj <- read.csv(file = system.file('extdata', 'all_contig_annotations.csv',
          package = 'iCellR'),
          as.is = TRUE)
head(my.vdj)
dim(my.vdj)

My.VDJ <- prep.vdj(vdj.data = my.vdj, cond.name = "NULL")
head(My.VDJ)
dim(My.VDJ)

my.obj <- add.vdj(demo.obj, vdj.data = My.VDJ)

# }

Run the code above in your browser using DataLab