import scanpy as sc regress_keys = ['percent_mt', 'percent_ribo'] sc.pp.regress_out(adata, keys=regress_keys)