RepSeqExp: build RepSeqExperiment object from clonotype tables

Description Usage Arguments Value Examples

Description

function creates RepSeqExperiment object from clonotype tables.

Usage

1
RepSeqExp(clonotypetab, sampleinfo = NULL)

Arguments

clonotypetab

a data.table of clonotype tables. The column names should be: lib, V, J, CDR3aa, CDR3dna, VpJ, VJ, score, count.

sampleinfo

a data frame containing sample meta data

Value

an object of class RepSeqExperiment

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# The package RepSeqData contains example datasets 
l <- list.files(system.file(file.path('extdata/mixcr'), 
                     package = 'RepSeqData'), 
                     full.names = TRUE)
l# list of gz-compressed files 
sampleData <- read.table(system.file(file.path('extdata/sampledata.txt'), 
                     package='RepSeqData'), 
                     sep = "\t", 
                     row.names = 2) 
clontab.tmp <- lapply(l, readClonotypes, aligner="MiXCR")
clontab <- data.table::rbindlist(dataset.tmp)
dataset <- RepSeqExp(clontab, sampleinfo = sampleData)
dataset

## End(Not run)

ph-pham/RepSeq documentation built on Dec. 22, 2021, 7:47 a.m.