stangene.io

Input/output adapters for loading feature metadata and writing results.

Input/output adapters for loading feature metadata and writing results.

stangene.io.load_features(path, species, dataset_name=None, column_map=None)[source]

Load feature metadata from an h5ad or TSV/CSV file.

Returns a standardized FeatureTable DataFrame. Does NOT load the expression matrix.

Return type:

DataFrame

stangene.io.write_results(result, output_dir, input_path=None, overwrite_h5ad=False)[source]

Write harmonization results to disk.

Writes harmonization_table.tsv and, if the input was h5ad, an enriched copy with harmonization columns in adata.var.

Return type:

None