Join dataframe or SingleCellExperiment object with ContigCellDB object

ccdb_join(template, ccdb, join_fun = dplyr::left_join, by = ccdb$cell_pk)

Arguments

template

data.frame or SingleCellExperiment object to be joined with ccdb.

ccdb

A ContigCellDB object.

join_fun

Function used for the join operation.

by

A character vector of variables to join by.

Examples

data(ccdb_ex)
to_join = dplyr::bind_rows(ccdb_ex$cell_tbl[1:10,],
dplyr::tibble(barcode = c('extra1', 'extra2'), sample = LETTERS[1:2],
pop = LETTERS[1:2]))
ccdb_join(to_join, ccdb_ex)
#> ContigCellDB of 17 contigs; 12 cells; and 0 clusters.
#> Contigs keyed by pop, sample, barcode, contig_id; cells keyed by pop, sample, barcode.