BAITS.st.tl.batch_process#
- BAITS.st.tl.batch_process(adata, sample_name, score_name=None, processing_func=None, func_kwargs=None, verbose=True)#
Process AnnData objects in batches by sample.
- Parameters:
adata (
AnnData) – The AnnData object to process.sample_name (
str) – Column name inobsthat identifies samples.score_name (
Optional[str] (default:None)) – Optional column name that represent the interested featuresprocessing_func (
Optional[Callable] (default:None)) – Function to apply to each sample batch.func_kwargs (
Optional[dict] (default:None)) – Additional arguments for the processing function.verbose (
bool(default:True)) – Whether to print progress information.
- Returns:
The concatenated adata from all processed samples.
- Return type:
AnnData