unique_clonotypes: unique_clonotypes

Description Usage Arguments Details Value See Also Examples

Description

Lists unique clonotypes in libraries

Usage

1

Arguments

...

One or more character vectors contain clonotype library names.

data

The name of the clonotype_table where the data is stored.

Details

Finds all the clonotypes expressed in one or more libraries, and returns a vector where they are listed once. This vector can be used to subset a clonotype_table.

Value

Character vector of clonotype names. Their order follows the original row name order of the clonotype_table.

See Also

clonotype_table, common_clonotypes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Load example data
clonotypes.long <- read_clonotypes(system.file('extdata', 'clonotypes.txt.gz', package = "clonotypeR"))
clonotypes <- clonotype_table(levels(clonotypes.long$lib), data=clonotypes.long)
summary(clonotypes)

# List clonotypes found in library A.
unique_clonotypes("A", data=clonotypes)

# List clonotypes found in library A or B.
unique_clonotypes("A","B", data=clonotypes)

clonotypeR documentation built on Nov. 8, 2020, 6:51 p.m.