pylimma.diff_splice
- pylimma.diff_splice(fit, geneid, exonid=None, robust=False, legacy=False, verbose=True, *, key='pylimma')[source]
Test for differential exon usage from an exon-level fit.
Port of R limma’s
diffSplice.MArrayLM(Gordon Smyth and Charity Law, 2013-2025). The inputfitmust be an exon-resolution fit - either anMArrayLM/ dict, or anAnnDatawhoseadata.uns[key]holds the fit (as produced bypylimma.lm_fit(adata_exon, ...)).Gene and exon identifiers are supplied via
geneidandexonid(column names offit['genes'], or row-aligned arrays). For AnnData-stored fits,geneid/exonidmay also be column names ofadata.varsincelm_fitpropagatesadata.varintofit['genes']viaget_eawp.The splice output has a different row count (genes with a single exon are dropped) from the input and carries a mix of per-exon and per-gene slots; it therefore isn’t written back to the AnnData. The returned
MArrayLMis the input totop_splice()/plot_splice().- Parameters:
- Return type: