Description Usage Arguments Examples
Given the input data and a vector of barcodes, the function returns the input with cells which has at least one of the given barcode. Columns with clonotype counts and proportions are changed accordingly to the filtered barcodes.
1 | filter_barcodes(.data, .barcodes)
|
.data |
The data to be processed. Can be data.frame, data.table, or a list of these objects. Every object must have columns in the immunarch compatible format. immunarch_data_format Competent users may provide advanced data representations: DBI database connections, Apache Spark DataFrame from copy_to or a list of these objects. They are supported with the same limitations as basic objects. Note: each connection must represent a separate repertoire. |
.barcodes |
Character vector. Vector of barcodes to use for filtering. |
1 2 3 4 5 6 7 8 9 | ## Not run:
# Create a vector with barcodes
barcodes = c("AAAGCAACATCACAAC-1", "GGCGACTTCATATCGG-1")
# Filter data and create a new list with datasets
your_data_filt = list()
your_data_filt$data = filter_barcodes(your_data$data, c("AAAGCAACATCACAAC-1", "GGCGACTTCATATCGG-1"))
your_data_filt$meta = your_data$meta
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.