bioalpha.singlecell.write_bioturing_format
- bioalpha.singlecell.write_bioturing_format(adata: AnnData | H5ADMap, *, dst_path: str, layer: str | None = None, pca_key: str | None = None, species: Literal['human', 'mouse', 'primate', 'others'] = 'human')
Write Bioturing format.
- Parameters:
adata (
AnnData
) – The annotated data matrix of shapen_obs
xn_vars
. Rows correspond to cells and columns to genes.dst_path (
str
) – Path to save.layer (Optional[
str
], default =None
) – layer save the expression matrix. IfNone
, use.X
.pca_key (Optional[
str
], default =None
) – Which key in.obsm
used as PCA for futher analysis. IfNone
, choose randomly one key in.obsm
with more than3 dims
. If can not find, runbioalpha.sc.pp.pca
with50 components
.species (Literal[
'human'
,'mouse'
,'primate'
,'others'
], default ='human'
) – Species of data.
- Returns:
Folder save at
'{save_path}/{id}'
.Including –
custom_embeddings
coords.npy
embedding.db
metadata.db
matrix.hdf5