subsetContig {scRepertoire} | R Documentation |
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.
subsetContig(df, name, variables = NULL)
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). |
list of contigs that have been filtered for the name parameter
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"))