combineBCR: Combining the list of B Cell Receptor contigs

Description Usage Arguments Value See Also Examples

View source: R/combineContigs.R

Description

This function consolidates a list of BCR sequencing results to the level of the individual cell barcodes. Using the samples and ID parameters, the function will add the strings as prefixes to prevent issues with repeated barcodes. The resulting new barcodes will need to match the seurat or SCE object in order to use,

Usage

1
2
3
4
5
6
7
combineBCR(
  df,
  samples = NULL,
  ID = NULL,
  removeNA = FALSE,
  removeMulti = FALSE
)

Arguments

df

List of filtered contig annotations from 10x Genomics.

samples

The labels of samples.

ID

The additional sample labeling option.

removeNA

This will remove any chain without values.

removeMulti

This will remove barcodes with greater than 2 chains.

Value

List of clonotypes for individual cell barcodes

See Also

combineExpression. Unlike combineTCR(), combineBCR produces a column CTstrict of an index of nucleotide sequence and the corresponding v-gene. This index automatically caluclates the Hammings distance between sequences of the same length and will index sequences with > 0.85 normalized Hammings distance with the same ID. If nucleotide sequences meet the threshold, ":HD" will be added to the CTstrict column string.

Examples

1
2
3
4
#Data derived from the 10x Genomics intratumoral NSCLC B cells
BCR <- read.csv("https://ncborcherding.github.io/vignettes/b_contigs.csv", 
stringsAsFactors = FALSE)
combined <- combineBCR(BCR, samples = "Patient1", ID = "Time1")

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