alphapepttools.pp.irs#
- alphapepttools.pp.irs(adata, group_column, reference_column=None, reference_value=None, *, layer=None, copy=False)#
Internal Reference Scaling (IRS) normalization.
Normalize features across multiple runs (e.g. TMT plexes) using a shared internal reference, as commonly performed in isobaric labelling experiments [PWZ+17]. For each run defined by
group_column, a per-feature reference profile is computed from the samples wherereference_column == reference_value. Every sample in that run is then rescaled so its reference profile matches the geometric mean of reference profiles taken across all runs. NaNs are propagated.If
reference_columnisNone, the per-run arithmetic mean across all samples is used in place of an explicit reference.- Parameters:
adata (
AnnData) – AnnData objectgroup_column (
str) – Column inadata.obsthat defines the individual runs.reference_column (
str|None(default:None)) – Column inadata.obsindicating which samples are reference channels. IfNone, a virtual reference is constructed from the arithmetic mean of all samples within each run.reference_value (
object|None(default:None)) – Value inreference_columnthat marks the reference sample(s) within each run. Ignored whenreference_columnisNone.layer (
str|None(default:None)) – Layer inadatato normalize. IfNone, usesadata.X.copy (
bool(default:False)) – Whether to return a modified copy (True) of the anndata object. If False (default) modifies the object inplaceReference
---------
Plubell (-)
16 (D. L. et al. Extended Multiplexing of Tandem Mass Tags (TMT) Labeling Reveals Age and High Fat Diet Specific Proteome Changes in Mouse Epididymal Adipose Tissue. Mol Cell Proteomics)
(2017). (873-890)
https (- Phillip Wilmarth. Thorough Testing of Internal Reference Scaling (IRS) [Website].)
- Return type:
None|AnnData