subsetContig: Subset the product of combineTCR() combineBCR() or...

Description Usage Arguments Value Examples

View source: R/processing.R

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

1
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

1
2
3
4
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"))

scRepertoire documentation built on Nov. 8, 2020, 7 p.m.