scfocus.utils.read_uploaded_file
- scfocus.utils.read_uploaded_file(uploaded_file)[source]
Read a single uploaded file and return an AnnData object.
- Parameters:
uploaded_file (UploadedFile) – Uploaded file object from Streamlit.
- Returns:
adata – Annotated data matrix if successful, None otherwise.
- Return type:
anndata.AnnData or None
Notes
Currently only supports .h5ad format. Other formats will produce an error message.