Skip to main content

Module feature_types

Module feature_types 

Source
Expand description

The typed feature table that rides beside a mixed-type embedding: {prefix}.feature_types.parquet, string columns feature and type, one row per embedding row in the same order. senna fne and gene-text write it; a consumer that wants only one type of row (senna bge pinning gene rows, say) reads it. The type names are the shared vocabulary.

Constants§

GENE_TYPE
Nodes whose names are canonicalised as gene symbols.
REGION_TYPE
Fixed genomic windows.
TERM_TYPE
Ontology terms and gene sets.
WORD_TYPE
Vocabulary words of a text relation.

Functions§

feature_rows
One flag per row of a table (names, in order): true for a gene or a genomic window, by the table’s types table types. None when types does not list names in order — written for another table under the same prefix. For crate::aux::frozen_features::load_frozen_feature_host_matching.
feature_types_path
is_data_feature_type
Whether rows of type t name a data feature — a gene, or a genomic window a peak can match — rather than a term, word or cell type.
read_feature_types
The run’s rows; None when the run wrote no table, which a caller reads as “every row is of the one type it expects”.
write_feature_types
Write the table for names[i] of type types[i].

Type Aliases§

FeatureType
One row of the table: the feature’s name and its type.