subsetContig {scRepertoire}R Documentation

Subset the product of combineTCR() combineBCR() or expression2List()

Description

This function allows for the subsetting of the product of combineTCR() combineBCR() or expression2List() by the name of the individual list element. In general the names of are samples + _ + ID, allowing for users to subset the product of combineTCR(), combineBCR(), or expression2List() across a string or individual name.

Usage

subsetContig(df, name, variables = NULL)

Arguments

df

The product of combineTCR(), combineBCR(), or expression2List().

name

The column header you'd like to use to subset.

variables

The values to subset by, must be in the names(df).

Value

list of contigs that have been filtered for the name parameter

Examples

x <- contig_list
combined <- combineTCR(x, rep(c("PX", "PY", "PZ"), each=2), 
rep(c("P", "T"), 3), cells ="T-AB")
subset <- subsetContig(combined, name = "sample", variables = c("PX"))


[Package scRepertoire version 1.2.0 Index]