Utils

Utility functions for data preprocessing and the Streamlit web interface.

scfocus.utils.preprocess

Preprocess single-cell RNA-seq data using scanpy.

scfocus.utils.run_umap

Compute UMAP embedding for single-cell data.

scfocus.utils.run_tsne

Compute t-SNE embedding for single-cell data.

scfocus.utils.run_focus

Run scFocus analysis on embedding data.

scfocus.utils.read_files

Read uploaded single-cell data files and return an AnnData object.

scfocus.utils.read_uploaded_file

Read a single uploaded file and return an AnnData object.

scfocus.utils.read_10x_files

Read 10x Genomics files (compressed or uncompressed) and return an AnnData object.