structboost.read_encoder_weights¶
- structboost.read_encoder_weights(path, *, format=None)[source]¶
Read an encoder weight matrix written by
structboost.write_encoder_weights().- Parameters:
- Returns:
DataFrame of shape
(n_genes, latent_dim)indexed by the join identifier —gene_idwhen the file carries Ensembl accessions, otherwisegene_symbol. Any symbol column is preserved inframe.attrs["gene_symbol"]rather than as a data column, so every remaining column is a latent dimension.
Provenance is available in
frame.attrs["metadata"]and the join key used inframe.attrs["join_key"].
- Return type:
pd.DataFrame