Description Usage Arguments Value Examples
This function computed clonotype usage
1 | segmentUsage(x, level = c("VpJ", "V", "J", "VJ"))
|
x |
an object of class [ |
level |
segment usage (ie percentage) of VpJ, V, J, or VJ within a repertoire. |
a data.table of segment usage of genes in each repertoire.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## 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
seg.use <- segmentUsage(x = dataset, level = "VJ")
seg.use
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.