getContigDoublets: Get Contig Doublets

View source: R/getContigDoublets.R

getContigDoubletsR Documentation

Get Contig Doublets

Description

[Experimental]

This function identifies potential doublets by finding common barcodes between TCR and BCR outputs. It extracts unique barcodes from each list of dataframes, finds the intersection of the barcodes, and joins the resulting data.

Usage

getContigDoublets(tcrOutput, bcrOutput)

Arguments

tcrOutput

Output of combineTCR(). A list of data.frames containing TCR contig information, each dataframe must have a barcode column.

bcrOutput

Output of combineBCR(). A list of data.frames containing BCR contig information, each dataframe must have a barcode column.

Value

A dataframe of barcodes that exist in both the TCR and BCR data, with columns from both sets of data. There will be an additional column contigType of type factor with levels 'TCR' and 'BCR' indicating the origin of the contig - this will be the new first column.

If there are no doublets, the returned data.frame will have the same colnames but no rows.


ncborcherding/scRepertoire documentation built on Nov. 5, 2024, 2:05 p.m.