fls-bioinformatics-core / auto_process_ngs

Scripts and utilities for automatic processing & management of Illumina NGS sequencing data.
Other
9 stars 6 forks source link

Handle reporting 10xGenomics multiplexing metrics with multiple libraries #857

Closed pjbriggs closed 1 year ago

pjbriggs commented 1 year ago

Implements updates to the MultiplexSummary class (in tenx/metrics) to handle cases where the metrics CSV file produced by cellranger multi contains multiple libraries (e.g. antibody capture as well as gene expression). In these cases the same metrics (e.g. Cells, Median UMI counts per cell etc) can appear multiple times associated with different library types; in turn this causes the QC reporting to fail when trying to build the summary table for the multiplexing analsyses.

To address this, the MultiplexSummary.fetch(...) method now implicitly fetches values associated with gene expression data (but also allows different library types to be explicitly specified); the properties of the class (e.g. cells, median_reads_per_cell etc) now implicitly return the values associated with gene expression.

Also in the QC report HTML the multiplexing table is now prefaced with a comment indicating that the summary values are taken from the gene expression data.