STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
179 stars 59 forks source link

Access to data.key_record #269

Closed maximelepetit closed 2 months ago

maximelepetit commented 2 months ago

Hello, I have an another question :

StereoExpData object with n_cells X n_genes = 113298 X 13527
bin_type: cell_bins
offset_x = None
offset_y = None
cells: ['cell_name', 'dnbCount', 'area', 'total_counts', 'n_genes_by_counts', 'pct_counts_mt', 'leiden']
genes: ['gene_name', 'n_cells', 'n_counts', 'mean_umi']
cells_matrix = ['pca', 'umap']
cells_pairwise = ['neighbors']
**key_record** : {'hvg': ['highly_variable_genes'], 'pca': ['pca'], 'neighbors': ['neighbors'], 'umap': ['umap'], 'cluster': ['leiden'], 'marker_genes': ['marker_genes', 'marker_genes_filtered'], 'gene_exp_cluster': ['gene_exp_leiden']}
result: ['highly_variable_genes', 'pca', 'neighbors', 'umap', 'leiden', 'marker_genes', 'marker_genes_filtered', 'gene_exp_leiden', 'pca_variance_ratio']

I don't know how to access to the key_record key ?

data.key_record doesn't work .

Any suggestion ?

Thanks

maximelepetit commented 2 months ago

Sorry The answer : data.tl.key_record