dilimap.pp.qc_cross_rep_correlation

dilimap.pp.qc_cross_rep_correlation(adata, group_key='CMPD_DOSE', plate_key='PLATE_NAME', min_corr=0.99)

Computes cross-replicate correlation quality control (QC) for each compound.

Parameters:
  • adata – AnnData object containing single-cell data

  • group_key (str) – Column in adata.obs to define groups (default is ‘CMPD_DOSE’)

  • plate_key (str) – Column in adata.obs that defines the plate (default is ‘PLATE_NAME’)

  • min_corr (float) – Minimum correlation threshold for passing the QC (default is 0.99)

Returns:

Adds two columns to adata.obs

  • cross_rep_correlation: Stores cross-replicate correlations for each compound.

  • rep_corr_qc_pass: Boolean flag indicating whether the compound passes QC.