add_h5_list_hash_results: Add cell hashing results to an h5_list.

Description Usage Arguments Value

View source: R/filter_rna_h5.R

Description

Add cell hashing results to an h5_list.

Usage

1
2
3
4
5
6
add_h5_list_hash_results(
  h5_list,
  hash_category_table,
  hash_count_matrix,
  match_target = "barcodes"
)

Arguments

h5_list

a list object generated by running rhdf5::h5dump() on a 10x HDF5 file.

hash_category_table

a data.frame or data.table with results from HTOparser::categorize_binary_hash_matrix() consisting of 3 columns: cell_barcode, hto_category, and hto_barcode.

hash_count_matrix

(optional) a matrix or dgCMatrix with results from CITE-seq-Count, HTOparser::add_missing_hto_rows(), or HTOparser::barcode_table_to_matrix().

match_target

a character object specifying which values to use for filtering in the h5_list. If "barcodes", uses matrix/barcodes; Otherwise, looks in matrix/observations for matching values

Value

a list object with hash data added to /hash/ and /matrix/observations/


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.