filter_cdb {CellaRepertorium} | R Documentation

## Create new or update existing columns of `ContigCellDB` tables

### Description

Create new or update existing columns of `ContigCellDB` tables

### Usage

    filter_cdb(ccdb, ..., tbl = "contig_tbl")

    mutate_cdb(ccdb, ..., tbl = "contig_tbl")

### Arguments

`ccdb` | `ContigCellDB()`
`...` | name and value pair of column that will be updated
`tbl` | `character.` One of `contig_tbl`, `cell_tbl` or `cluster_tbl`, naming the table to be updated.

### Value

ContigCellDB object with updated table

### Functions

- `filter_cdb`: Filter rows of a table in a `ContigCellDB` object

### See Also

`dplyr::mutate()`

`dplyr::filter()`

### Examples

    data(ccdb_ex)
    subset_contig = filter_cdb(ccdb_ex,full_length, productive == 'True',
    high_confidence, chain != 'Multi', nchar(cdr3) > 5)
    subset_cell = filter_cdb(ccdb_ex, sample == 4, tbl = 'cell_tbl')
    data(ccdb_ex)
    new_contig = mutate_cdb(ccdb_ex, new_col = 1)
    new_cell = mutate_cdb(ccdb_ex, new_col = 1, tbl = 'contig_tbl')

[Package CellaRepertorium version 1.2.0 Index]