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_types_path
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.