API reference
Every public name exported from pylimma has an entry below;
every entry below resolves to a public attribute on the top-level
pylimma module. If the two lists ever disagree that is a bug -
file an issue.
Linear modelling
|
Fit linear models to expression data. |
|
Fit linear model for each gene using generalized least squares. |
|
Robustly fit linear model for each gene using M-estimation. |
|
Apply contrast matrix to a fitted model. |
|
Construct a contrast matrix from contrast expressions. |
|
Create a design matrix from a formula and data. |
|
Empirical Bayes moderation of t-statistics. |
|
Moderated t-statistics relative to a log fold-change threshold. |
|
Extract a table of top-ranked genes from a linear model fit. |
|
Top table for multiple coefficients ranked by F-statistic. |
|
Top-ranked genes after a |
|
Classify genes as differentially expressed. |
|
Use F-tests to classify vectors of t-statistics into outcomes. |
|
Empirical Bayes posterior variances. |
|
Fit a scaled F-distribution to sample variances. |
|
Robust estimation of scaled F-distribution parameters. |
|
Fit scaled F-distribution with unequal df1 values. |
Check whether a matrix has full column rank. |
|
|
Check for non-estimable coefficients in a design matrix. |
Voom and RNA-seq
|
Transform RNA-seq counts for linear modelling with mean-variance weighting. |
|
voom transformation with sample-specific quality weights. |
|
voom-like weights for non-count expression data. |
|
Combined vooma + lmFit with iterative refinement. |
Normalisation and batch
|
Normalize columns of an expression matrix between arrays. |
|
Quantile-normalize columns of a matrix. |
Scale columns so they have the same median. |
|
|
Cyclic LOESS normalisation of columns of a matrix. |
|
Background-correct a single-channel intensity matrix or EList. |
|
Estimate parameters of the normal + exponential convolution model. |
|
Expected value of signal given foreground under the normal + exponential convolution model. |
|
Average over technical-replicate columns. |
|
Remove batch effects from a matrix of expression values. |
|
Weighted surrogate variable analysis. |
Duplicates, weights, correlation
|
Estimate correlation between duplicate spots or blocked samples. |
|
Average over duplicate spots. |
|
Average over irregular replicate probes. |
|
Estimate relative quality weights for each array/sample. |
|
Compute approximate array quality weights from a linear model fit. |
Gene set testing
|
Map named gene sets of identifier strings to zero-based integer indices. |
|
Rotation gene-set test (single set). |
|
Rotation gene-set test over many sets. |
|
Fast closed-form limit of |
|
Competitive gene-set test with inter-gene correlation. |
|
Pre-ranked competitive gene-set test. |
|
Variance-inflation factor and inter-gene correlation. |
|
Rotation mean-rank gene-set enrichment analysis. |
|
Competitive gene-set test. |
Wilcoxon rank-sum test with an inter-gene correlation adjustment. |
GO / KEGG enrichment
|
Gene-ontology over-representation analysis. |
|
Extract the top GO terms from a |
|
KEGG pathway over-representation analysis. |
|
Extract the top KEGG pathways from a |
|
Estimate per-gene DE probability from a covariate. |
Statistical utilities
|
Student's t probability plot (Q-Q plot). |
|
Z-score equivalents of t-statistics. |
|
Moving average filter with tricube weights for a time series. |
|
Estimate pi0 using a convex decreasing density estimate. |
|
Estimate the proportion of null p-values. |
|
Detection p-values from negative controls. |
|
Weighted LOWESS smoother - R-compatible entry point. |
|
Area under the empirical ROC curve. |
Model selection and mixture models
|
Gene-wise model comparison via AIC, BIC, or Mallows' Cp. |
|
Fit a mixture model by non-linear least squares. |
|
Estimate the biological correlation between two contrasts. |
|
Predictive (empirical-Bayes shrunken) fold changes. |
Splicing
|
Test for differential exon usage from an exon-level fit. |
|
Top-ranked splicing results from a |
|
Plot exons or isoforms of a chosen gene. |
Plotting
|
Scatterplot with colour/size highlighting for special groups of points. |
|
MA plot for a matrix, EList, or MArrayLM. |
|
Mean-difference plot. |
|
Volcano plot of log-fold-change vs significance. |
|
Sigma vs Amean plot. |
|
Kernel-density plots of sample intensities. |
|
Multidimensional-scaling plot. |
|
Cross-tabulate significance indicators. |
|
2- or 3-circle Venn diagram. |
|
Clustered heatmap with log2-expression colour scheme. |
|
Barcode plot of one or two gene sets. |
Data classes and dispatchers
|
Expression-list container (Python equivalent of R limma's EList). |
|
Linear-model-fit container (Python equivalent of R limma's MArrayLM). |
|
Polymorphic input dispatcher - port of R limma's getEAWP(). |
|
Polymorphic output dispatcher - package a result in a form matching the original input's class. |