pylimma.plot_sa
- pylimma.plot_sa(fit, xlab='Average log-expression', ylab='sqrt(sigma)', zero_weights=False, pch='o', cex=0.3, col=('black', 'red'), ax=None, **kwargs)[source]
Sigma vs Amean plot. Port of R limma’s
plotSA.The y-axis is
sqrt(sigma). Whens2_prioris an ndarray, the variance-trend overlay issqrt(sqrt(s2_prior[order(x)]))in sorted x order. Whens2_prioris scalar, a single horizontal line is drawn atsqrt(sqrt(s2_prior)).Under robust eBayes (per-gene
df_prior), outlier genes are identified viap_adjust(2 * pmin(pdn, pup), method='BH') <= 0.5and plotted incol[1].