spamosaic.utils.reorder

spamosaic.utils.reorder(ad1, ad2)[source]

Align and reorder two AnnData objects to their shared barcodes.

Parameters:
  • ad1 (AnnData) – First object.

  • ad2 (AnnData) – Second object.

Returns:

Views of ad1 and ad2 containing only shared barcodes, with matching order.

Return type:

tuple of (AnnData, AnnData)