Skip to main content

read_cell_annotations

Function read_cell_annotations 

Source
pub fn read_cell_annotations(path: &str) -> Result<CellAnnotations>
Expand description

Read cell annotations from a delimited file (TSV, CSV, or space-separated).

Supports gzip-compressed files (.gz) and multiple delimiters (tab, comma, space). First line is treated as a header and skipped.

Requires at least 2 columns: cell_id individual_id. A 3rd column (cell_type) is accepted but ignored here; use build_onehot_membership to convert it into a membership matrix.