sciduck.annotation_table module

sciduck.annotation_table.add_dominant_library_info(adata: AnnData, library_metadata_column: str, mapping_summary: dict) dict

Add dominant library information to the mapping summary.

Parameters:
  • adata – Anndata object with annotations in obs.

  • library_metadata_column – Defaults to load_name and describes the sequencing batch.

  • mapping_summary – A pre-existing mapping summary dictionary to add information on dominant library.

Returns:

A mapping_summary containing dominant library information.

sciduck.annotation_table.build_annotation_table(adata: AnnData, categorical_annotations: list = ['donor_name', 'load_name', 'roi'], numeric_annotations: list = ['doublet_score', 'pct_counts_mt'], min_percent: float = 0.05, annotation_alerts: dict = {'donor_name': 0.9, 'load_name': 0.95, 'roi': 0.95}, mapping_summary: dict = {}) dict

Build a standardized table of annotations describing each cluster to be used for taxonomy development or communication.

Parameters:
  • adata – Anndata object with annotations in obs.

  • categorical_annotations – List of categorical metadata to include.

  • numeric_annotations – List of numeric metadata to include.

  • min_percent – Minimal percentrage to print annotation.

  • mapping_summary – A dictionary to store the mapping summary. User can pass in an existing dictionary to append to if desired.

Returns:

A mapping_summary containing character and numeric summaries along with donor/lib/roi composition alerts.