grassp.tl.align_adatas

Contents

grassp.tl.align_adatas#

align_adatas(data_list, intersect_obs=True, intersect_var=True)[source]#

Return copies of several AnnData objects with matching index/columns.

Parameters:
data_list List[AnnData]

Sequence of AnnData instances to be trimmed.

intersect_obs bool (default: True)

If True (default) keep only the intersection of obs_names.

intersect_var bool (default: True)

If True (default) keep only the intersection of var_names.

Return type:

List[AnnData]

Returns:

list[AnnData] Aligned copies preserving the order of data_list.