Description Usage Arguments Value Examples
function assay reads by V, J or V-J genes.
1 | countFeatures(x, level = c("VpJ", "V", "J", "VJ", "CDR3aa"))
|
x |
an object of class [ |
level |
"V", "J" or "VJ" genes. |
a data.table of assay with unique features in rows and samples in columns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## 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)
dataset <- readClonotypeSet(fileList = l,
cores=1L,
aligner = "MiXCR",
chain = "B",
sampleinfo = sampleData,
keep.ambiguous=FALSE,
keep.unproductive=FALSE,
aa.th=8)
dataset
# produce a count matrix of VJ
cts <- countFeatures(x = dataset, level = "VJ")
cts
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.