R/ccdb_join.R
ccdb_join.Rd
Join dataframe or SingleCellExperiment object with ContigCellDB object
ccdb_join(template, ccdb, join_fun = dplyr::left_join, by = ccdb$cell_pk)
data.frame or SingleCellExperiment object to be joined with ccdb.
A ContigCellDB object.
Function used for the join operation.
A character vector of variables to join by.
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.