<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>limma powers differential expression analyses for RNA-sequencing and microarray studies</title>
        <author>Matthew E. Ritchie</author>
        <author>Belinda Phipson</author>
        <author>Di Wu</author>
        <author>Yifang Hu</author>
        <author>Charity W. Law</author>
        <author>Wei Shi</author>
        <author>Gordon K. Smyth</author>
      </titleStmt>
      <publicationStmt>
        <p>Tag layer of the DHSS Meta-Tagging Project. The article text is reproduced from the
           staged copy named in sourceDesc and is not altered; the tags are held separately in
           standOff so that overlapping and nested spans are preserved.</p>
      </publicationStmt>
      <sourceDesc>
        <bibl>
          <title>limma powers differential expression analyses for RNA-sequencing and microarray studies</title>
          <date>2015</date>
          <publisher>Nucleic Acids Research</publisher>
          <idno type="DOI">10.1093/nar/gkv007</idno>
          
          <idno type="record">ritchie2015-limma-differential-expression</idno>
          <note type="staged-file">ritchie2015-limma-differential-expression.txt, the project's staged copy</note>
          <note type="text-sha1">03ab3f4bbaf42feb9b68dd629393bde26e5fb011</note>
          <note type="rights">cc-by</note>
        </bibl>
      </sourceDesc>
    </fileDesc>
    <profileDesc>
      <textClass><keywords><term>bioinformatics</term></keywords></textClass>
      <particDesc>
        <person xml:id="paper"><p>the paper's own words</p></person>
        <person xml:id="tagger"><p>the tag layer; a sentence written by the tagger about the
          paper, always anchored to a quotation but not itself a quotation</p></person>
      </particDesc>
    </profileDesc>
    <revisionDesc>
      <change when="2026-10-06"
              who="build_paper_edition.py">207 spans located by searching the stored text for the quote's exact words, allowing any whitespace between them</change>
    </revisionDesc>
  </teiHeader>
  <standOff>
    <spanGrp type="tags">
      <span xml:id="t0" from="#a11" to="#a12" type="object_of_study" ana="#object_of_study" resp="#paper">limma&#x27;s statistical philosophy, expression-analysis workflow, RNA-seq extensions, gene-set methods, object model, and interfaces</span>
      <span xml:id="t1" from="#a5" to="#a6" type="research_question" ana="#research_question" resp="#paper">how to analyse small, complex gene-expression experiments flexibly and reliably across microarray and RNA-seq technologies</span>
      <span xml:id="t2" from="#a1" to="#a2" type="contribution" ana="#contribution" resp="#paper">a review and synthesis of limma&#x27;s historical and new capabilities from import and preprocessing through linear modelling, empirical Bayes inference, and gene-set analysis</span>
      <span xml:id="t3" from="#a11" to="#a12" type="claim_type" ana="#claim_type" resp="#paper">existence</span>
      <span xml:id="t4" from="#a9" to="#a10" type="phenomenon" ana="#phenomenon" resp="#paper">differential gene expression, differential splicing, and higher-order expression signatures in small complex experiments</span>
      <span xml:id="t5" from="#a15" to="#a16" type="method" ana="#method" resp="#paper">system-or-tool-building<term>system-or-tool-building</term></span>
      <span xml:id="t6" from="#a17" to="#a18" type="mechanisms" ana="#mechanisms[0]" resp="#tagger" cert="0.95">One integrated model shares information and represents sample correlation across the full design.<term>whole-experiment modelling</term></span>
      <span xml:id="t7" from="#a21" to="#a22" type="mechanisms" ana="#mechanisms[1]" resp="#tagger" cert="0.95">Parameters estimated from all genes link otherwise separate gene-wise models.<term>global parameters</term></span>
      <span xml:id="t8" from="#a23" to="#a24" type="mechanisms" ana="#mechanisms[2]" resp="#tagger" cert="0.95">Each residual variance is shrunk toward pooled global variability to increase effective degrees of freedom.<term>empirical Bayes moderation</term></span>
      <span xml:id="t9" from="#a25" to="#a26" type="mechanisms" ana="#mechanisms[3]" resp="#tagger" cert="0.95">Hyper-variable genes receive separate weighting instead of uniform shrinkage.<term>robust empirical Bayes</term></span>
      <span xml:id="t10" from="#a27" to="#a28" type="mechanisms" ana="#mechanisms[4]" resp="#tagger" cert="0.95">Less reliable genes, samples, or observations are down-weighted without being discarded.<term>quantitative weights</term></span>
      <span xml:id="t11" from="#a29" to="#a30" type="mechanisms" ana="#mechanisms[5]" resp="#tagger" cert="0.95">The empirical count mean-variance trend becomes precision weights for logCPM linear modelling.<term>voom</term></span>
      <span xml:id="t12" from="#a47" to="#a48" type="mechanisms" ana="#mechanisms[6]" resp="#tagger" cert="0.95">Platform-specific procedures align samples and remove technical effects unrelated to biology.<term>normalization</term></span>
      <span xml:id="t13" from="#a49" to="#a50" type="mechanisms" ana="#mechanisms[7]" resp="#tagger" cert="0.95">Leading-fold-change distances reveal sample clusters and unexpected batch patterns.<term>multidimensional scaling</term></span>
      <span xml:id="t14" from="#a53" to="#a54" type="mechanisms" ana="#mechanisms[8]" resp="#tagger" cert="0.95">DuplicateCorrelation estimates one intrablock correlation shared across genes and inserts it into all DE tests.<term>consensus correlation</term></span>
      <span xml:id="t15" from="#a55" to="#a56" type="mechanisms" ana="#mechanisms[9]" resp="#tagger" cert="0.95">Gene-specific factors protect outlying large variances while shrinking stable genes more strongly.<term>robust variance shrinkage</term></span>
      <span xml:id="t16" from="#a71" to="#a72" type="mechanisms" ana="#mechanisms[10]" resp="#tagger" cert="0.95">Inter-gene correlation produces a variance-inflation adjustment for competitive gene-set statistics.<term>camera</term></span>
      <span xml:id="t17" from="#a73" to="#a74" type="mechanisms" ana="#mechanisms[11]" resp="#tagger" cert="0.95">Residuals rotate while non-tested model coefficients remain fixed.<term>rotation</term></span>
      <span xml:id="t18" from="#a5" to="#a6" type="limitations" ana="#limitations[0]" resp="#tagger" cert="0.95">Gene-expression studies commonly combine complex designs with few biological replicates.</span>
      <span xml:id="t19" from="#a39" to="#a40" type="limitations" ana="#limitations[1]" resp="#tagger" cert="0.95">Parametric expression models can never be perfectly correct.</span>
      <span xml:id="t20" from="#a39" to="#a40" type="limitations" ana="#limitations[2]" resp="#tagger" cert="0.95">Permutation has low power with few replicates and cannot represent complex null hypotheses, correlation, blocking, or unequal precision.</span>
      <span xml:id="t21" from="#a43" to="#a44" type="limitations" ana="#limitations[3]" resp="#tagger" cert="0.95">RPKM input prevents limma from estimating the appropriate mean-variance relationship; raw counts are required before voom.</span>
      <span xml:id="t22" from="#a45" to="#a46" type="limitations" ana="#limitations[4]" resp="#tagger" cert="0.95">Simple foreground-minus-background subtraction is too heavy-handed.</span>
      <span xml:id="t23" from="#a69" to="#a70" type="limitations" ana="#limitations[5]" resp="#tagger" cert="0.95">Rank-based gene-set tests assume conditional gene independence and therefore produce optimistic P-values.</span>
      <span xml:id="t24" from="#a71" to="#a72" type="limitations" ana="#limitations[6]" resp="#tagger" cert="0.95">Camera&#x27;s dependence correction reduces optimistic P-values but also lowers statistical power.</span>
      <span xml:id="t25" from="#a77" to="#a78" type="limitations" ana="#limitations[7]" resp="#tagger" cert="0.95">Gene-set workflows must reconcile symbols and annotations across studies because symbols change over time.</span>
      <span xml:id="t26" from="#a87" to="#a88" type="limitations" ana="#limitations[8]" resp="#tagger" cert="0.95">Coercing limma data classes to matrices entails information loss.</span>
      <span xml:id="t27" from="#a95" to="#a96" type="limitations" ana="#limitations[9]" resp="#tagger" cert="0.95">The appropriate method combination remains dependent on biological question, platform, and design.</span>
      <span xml:id="t28" from="#a47" to="#a48" type="controls" ana="#controls[0]" resp="#tagger" cert="0.95">control probes with quantitative weights<note>eliminates: normalization domination by unreliable probes · outcome: held</note></span>
      <span xml:id="t29" from="#a55" to="#a56" type="controls" ana="#controls[1]" resp="#tagger" cert="0.95">robust empirical Bayes shrinkage<note>eliminates: false significance caused by over-shrinking hyper-variable genes · outcome: held</note></span>
      <span xml:id="t30" from="#a73" to="#a74" type="controls" ana="#controls[2]" resp="#tagger" cert="0.95">non-tested linear-model coefficients during rotation<note>eliminates: variation in nuisance coefficients during a gene-set test · outcome: held</note></span>
      <span xml:id="t31" from="#a1" to="#a2" type="concepts" ana="#concepts[0]" resp="#paper" cert="0.95">limma<term>limma</term></span>
      <span xml:id="t32" from="#a1" to="#a2" type="concepts" ana="#concepts[1]" resp="#paper" cert="0.95">R/Bioconductor software package<term>R/Bioconductor software package</term></span>
      <span xml:id="t33" from="#a1" to="#a2" type="concepts" ana="#concepts[2]" resp="#paper" cert="0.95">gene expression experiments<term>gene expression experiments</term></span>
      <span xml:id="t34" from="#a1" to="#a2" type="concepts" ana="#concepts[3]" resp="#paper" cert="0.95">information borrowing<term>information borrowing</term></span>
      <span xml:id="t35" from="#a1" to="#a2" type="concepts" ana="#concepts[4]" resp="#paper" cert="0.95">differential expression<term>differential expression</term></span>
      <span xml:id="t36" from="#a9" to="#a10" type="concepts" ana="#concepts[5]" resp="#paper" cert="0.95">differential splicing<term>differential splicing</term></span>
      <span xml:id="t37" from="#a9" to="#a10" type="concepts" ana="#concepts[6]" resp="#paper" cert="0.95">RNA sequencing<term>RNA sequencing</term></span>
      <span xml:id="t38" from="#a9" to="#a10" type="concepts" ana="#concepts[7]" resp="#paper" cert="0.95">RNA-seq<term>RNA-seq</term></span>
      <span xml:id="t39" from="#a7" to="#a8" type="concepts" ana="#concepts[8]" resp="#paper" cert="0.95">Bioconductor<term>Bioconductor</term></span>
      <span xml:id="t40" from="#a7" to="#a8" type="concepts" ana="#concepts[9]" resp="#paper" cert="0.95">R-based open-source software development project<term>R-based open-source software development project</term></span>
      <span xml:id="t41" from="#a15" to="#a16" type="concepts" ana="#concepts[10]" resp="#paper" cert="0.95">linear model<term>linear model</term></span>
      <span xml:id="t42" from="#a17" to="#a18" type="concepts" ana="#concepts[11]" resp="#paper" cert="0.95">linear models<term>linear models</term></span>
      <span xml:id="t43" from="#a17" to="#a18" type="concepts" ana="#concepts[12]" resp="#paper" cert="0.95">piece-meal comparisons between pairs of treatments<term>piece-meal comparisons between pairs of treatments</term></span>
      <span xml:id="t44" from="#a21" to="#a22" type="concepts" ana="#concepts[13]" resp="#paper" cert="0.95">global parameters<term>global parameters</term></span>
      <span xml:id="t45" from="#a21" to="#a22" type="concepts" ana="#concepts[14]" resp="#paper" cert="0.95">global hyper-parameters<term>global hyper-parameters</term></span>
      <span xml:id="t46" from="#a23" to="#a24" type="concepts" ana="#concepts[15]" resp="#paper" cert="0.95">parametric empirical Bayes<term>parametric empirical Bayes</term></span>
      <span xml:id="t47" from="#a23" to="#a24" type="concepts" ana="#concepts[16]" resp="#paper" cert="0.95">class of statistical methods<term>class of statistical methods</term></span>
      <span xml:id="t48" from="#a25" to="#a26" type="concepts" ana="#concepts[17]" resp="#paper" cert="0.95">empirical Bayes procedures<term>empirical Bayes procedures</term></span>
      <span xml:id="t49" from="#a23" to="#a24" type="concepts" ana="#concepts[18]" resp="#paper" cert="0.95">residual variances<term>residual variances</term></span>
      <span xml:id="t50" from="#a23" to="#a24" type="concepts" ana="#concepts[19]" resp="#paper" cert="0.95">posterior variance estimators<term>posterior variance estimators</term></span>
      <span xml:id="t51" from="#a25" to="#a26" type="concepts" ana="#concepts[20]" resp="#paper" cert="0.95">mean-variance trend<term>mean-variance trend</term></span>
      <span xml:id="t52" from="#a25" to="#a26" type="concepts" ana="#concepts[21]" resp="#paper" cert="0.95">statistical power and accuracy<term>statistical power and accuracy</term></span>
      <span xml:id="t53" from="#a27" to="#a28" type="concepts" ana="#concepts[22]" resp="#paper" cert="0.95">quantitative weights<term>quantitative weights</term></span>
      <span xml:id="t54" from="#a27" to="#a28" type="concepts" ana="#concepts[23]" resp="#paper" cert="0.95">power to detect differentially expressed genes<term>power to detect differentially expressed genes</term></span>
      <span xml:id="t55" from="#a29" to="#a30" type="concepts" ana="#concepts[24]" resp="#paper" cert="0.95">voom function<term>voom function</term></span>
      <span xml:id="t56" from="#a29" to="#a30" type="concepts" ana="#concepts[25]" resp="#paper" cert="0.95">precision weights<term>precision weights</term></span>
      <span xml:id="t57" from="#a29" to="#a30" type="concepts" ana="#concepts[26]" resp="#paper" cert="0.95">negative binomial-based software packages<term>negative binomial-based software packages</term></span>
      <span xml:id="t58" from="#a31" to="#a32" type="concepts" ana="#concepts[27]" resp="#paper" cert="0.95">heteroscedasticity<term>heteroscedasticity</term></span>
      <span xml:id="t59" from="#a33" to="#a34" type="concepts" ana="#concepts[28]" resp="#paper" cert="0.95">expression signature<term>expression signature</term></span>
      <span xml:id="t60" from="#a45" to="#a46" type="concepts" ana="#concepts[29]" resp="#paper" cert="0.95">background correction<term>background correction</term></span>
      <span xml:id="t61" from="#a45" to="#a46" type="concepts" ana="#concepts[30]" resp="#paper" cert="0.95">Removing this non-specific signal<term>Removing this non-specific signal</term></span>
      <span xml:id="t62" from="#a47" to="#a48" type="concepts" ana="#concepts[31]" resp="#paper" cert="0.95">normalization<term>normalization</term></span>
      <span xml:id="t63" from="#a47" to="#a48" type="concepts" ana="#concepts[32]" resp="#paper" cert="0.95">systematic effects<term>systematic effects</term></span>
      <span xml:id="t64" from="#a37" to="#a38" type="concepts" ana="#concepts[33]" resp="#paper" cert="0.95">Bland–Altman plot<term>Bland–Altman plot</term></span>
      <span xml:id="t65" from="#a37" to="#a38" type="concepts" ana="#concepts[34]" resp="#paper" cert="0.95">MA-plots<term>MA-plots</term></span>
      <span xml:id="t66" from="#a39" to="#a40" type="concepts" ana="#concepts[35]" resp="#paper" cert="0.95">permutation or re-sampling-based inference<term>permutation or re-sampling-based inference</term></span>
      <span xml:id="t67" from="#a39" to="#a40" type="concepts" ana="#concepts[36]" resp="#paper" cert="0.95">parametric distributions<term>parametric distributions</term></span>
      <span xml:id="t68" from="#a41" to="#a42" type="concepts" ana="#concepts[37]" resp="#paper" cert="0.95">read counts<term>read counts</term></span>
      <span xml:id="t69" from="#a41" to="#a42" type="concepts" ana="#concepts[38]" resp="#paper" cert="0.95">log 2 counts per million<term>log 2 counts per million</term></span>
      <span xml:id="t70" from="#a49" to="#a50" type="concepts" ana="#concepts[39]" resp="#paper" cert="0.95">multi-dimensional scaling<term>multi-dimensional scaling</term></span>
      <span xml:id="t71" from="#a49" to="#a50" type="concepts" ana="#concepts[40]" resp="#paper" cert="0.95">leading fold change<term>leading fold change</term></span>
      <span xml:id="t72" from="#a49" to="#a50" type="concepts" ana="#concepts[41]" resp="#paper" cert="0.95">root-mean-square average of the log-fold-changes<term>root-mean-square average of the log-fold-changes</term></span>
      <span xml:id="t73" from="#a49" to="#a50" type="concepts" ana="#concepts[42]" resp="#paper" cert="0.95">batch effects<term>batch effects</term></span>
      <span xml:id="t74" from="#a53" to="#a54" type="concepts" ana="#concepts[43]" resp="#paper" cert="0.95">consensus correlation<term>consensus correlation</term></span>
      <span xml:id="t75" from="#a55" to="#a56" type="concepts" ana="#concepts[44]" resp="#paper" cert="0.95">robustified shrinkage strategy<term>robustified shrinkage strategy</term></span>
      <span xml:id="t76" from="#a55" to="#a56" type="concepts" ana="#concepts[45]" resp="#paper" cert="0.95">false positives<term>false positives</term></span>
      <span xml:id="t77" from="#a57" to="#a58" type="concepts" ana="#concepts[46]" resp="#paper" cert="0.95">log 2 -fold-change<term>log 2 -fold-change</term></span>
      <span xml:id="t78" from="#a57" to="#a58" type="concepts" ana="#concepts[47]" resp="#paper" cert="0.95">greater than a threshold<term>greater than a threshold</term></span>
      <span xml:id="t79" from="#a57" to="#a58" type="concepts" ana="#concepts[48]" resp="#paper" cert="0.95">different to zero<term>different to zero</term></span>
      <span xml:id="t80" from="#a59" to="#a60" type="concepts" ana="#concepts[49]" resp="#paper" cert="0.95">false discovery rate<term>false discovery rate</term></span>
      <span xml:id="t81" from="#a63" to="#a64" type="concepts" ana="#concepts[50]" resp="#paper" cert="0.95">propTrueNull function<term>propTrueNull function</term></span>
      <span xml:id="t82" from="#a63" to="#a64" type="concepts" ana="#concepts[51]" resp="#paper" cert="0.95">proportion of true null hypotheses<term>proportion of true null hypotheses</term></span>
      <span xml:id="t83" from="#a65" to="#a66" type="concepts" ana="#concepts[52]" resp="#paper" cert="0.95">genas function<term>genas function</term></span>
      <span xml:id="t84" from="#a65" to="#a66" type="concepts" ana="#concepts[53]" resp="#paper" cert="0.95">biological correlation<term>biological correlation</term></span>
      <span xml:id="t85" from="#a67" to="#a68" type="concepts" ana="#concepts[54]" resp="#paper" cert="0.95">gene set analyses<term>gene set analyses</term></span>
      <span xml:id="t86" from="#a67" to="#a68" type="concepts" ana="#concepts[55]" resp="#paper" cert="0.95">molecular pathway<term>molecular pathway</term></span>
      <span xml:id="t87" from="#a69" to="#a70" type="concepts" ana="#concepts[56]" resp="#paper" cert="0.95">rank-based tests<term>rank-based tests</term></span>
      <span xml:id="t88" from="#a69" to="#a70" type="concepts" ana="#concepts[57]" resp="#paper" cert="0.95">optimistic P -values<term>optimistic P -values</term></span>
      <span xml:id="t89" from="#a71" to="#a72" type="concepts" ana="#concepts[58]" resp="#paper" cert="0.95">camera function<term>camera function</term></span>
      <span xml:id="t90" from="#a71" to="#a72" type="concepts" ana="#concepts[59]" resp="#paper" cert="0.95">variance inflation factor<term>variance inflation factor</term></span>
      <span xml:id="t91" from="#a73" to="#a74" type="concepts" ana="#concepts[60]" resp="#paper" cert="0.95">rotation tests<term>rotation tests</term></span>
      <span xml:id="t92" from="#a73" to="#a74" type="concepts" ana="#concepts[61]" resp="#paper" cert="0.95">smoothed version of permutation<term>smoothed version of permutation</term></span>
      <span xml:id="t93" from="#a75" to="#a76" type="concepts" ana="#concepts[62]" resp="#paper" cert="0.95">Gene set enrichment analysis<term>Gene set enrichment analysis</term></span>
      <span xml:id="t94" from="#a75" to="#a76" type="concepts" ana="#concepts[63]" resp="#paper" cert="0.95">GSEA<term>GSEA</term></span>
      <span xml:id="t95" from="#a75" to="#a76" type="concepts" ana="#concepts[64]" resp="#paper" cert="0.95">hybrid approach<term>hybrid approach</term></span>
      <span xml:id="t96" from="#a79" to="#a80" type="concepts" ana="#concepts[65]" resp="#paper" cert="0.95">object-oriented paradigm<term>object-oriented paradigm</term></span>
      <span xml:id="t97" from="#a81" to="#a82" type="concepts" ana="#concepts[66]" resp="#paper" cert="0.95">RGList<term>RGList</term></span>
      <span xml:id="t98" from="#a81" to="#a82" type="concepts" ana="#concepts[67]" resp="#paper" cert="0.95">EListRaw<term>EListRaw</term></span>
      <span xml:id="t99" from="#a83" to="#a84" type="concepts" ana="#concepts[68]" resp="#paper" cert="0.95">MAList<term>MAList</term></span>
      <span xml:id="t100" from="#a83" to="#a84" type="concepts" ana="#concepts[69]" resp="#paper" cert="0.95">EList<term>EList</term></span>
      <span xml:id="t101" from="#a85" to="#a86" type="concepts" ana="#concepts[70]" resp="#paper" cert="0.95">MArrayLM<term>MArrayLM</term></span>
      <span xml:id="t102" from="#a85" to="#a86" type="concepts" ana="#concepts[71]" resp="#paper" cert="0.95">TestResults<term>TestResults</term></span>
      <span xml:id="t103" from="#a87" to="#a88" type="concepts" ana="#concepts[72]" resp="#paper" cert="0.95">matrix<term>matrix</term></span>
      <span xml:id="t104" from="#a89" to="#a90" type="concepts" ana="#concepts[73]" resp="#paper" cert="0.95">C code<term>C code</term></span>
      <span xml:id="t105" from="#a91" to="#a92" type="concepts" ana="#concepts[74]" resp="#paper" cert="0.95">Bioconductor project<term>Bioconductor project</term></span>
      <span xml:id="t106" from="#a95" to="#a96" type="concepts" ana="#concepts[75]" resp="#paper" cert="0.95">voom methodology<term>voom methodology</term></span>
      <span xml:id="t107" from="#a97" to="#a98" type="concepts" ana="#concepts[76]" resp="#paper" cert="0.95">reproducible research<term>reproducible research</term></span>
      <span xml:id="t108" from="#a1" to="#a2" type="unhoused_relations" ana="#unhoused_relations[0]" resp="#tagger" cert="0.95">limma → information borrowing<note>limma uses information borrowing to overcome small sample sizes.</note></span>
      <span xml:id="t109" from="#a23" to="#a24" type="unhoused_relations" ana="#unhoused_relations[1]" resp="#tagger" cert="0.95">parametric empirical Bayes → class of statistical methods<note>A class of statistical methods is called parametric empirical Bayes.</note></span>
      <span xml:id="t110" from="#a21" to="#a22" type="unhoused_relations" ana="#unhoused_relations[2]" resp="#tagger" cert="0.95">global parameters → gene-wise models<note>Global parameters link separate gene-wise models.</note></span>
      <span xml:id="t111" from="#a23" to="#a24" type="unhoused_relations" ana="#unhoused_relations[3]" resp="#tagger" cert="0.95">parametric empirical Bayes → residual variances<note>Empirical Bayes borrows strength across genes to moderate residual variances.</note></span>
      <span xml:id="t112" from="#a29" to="#a30" type="unhoused_relations" ana="#unhoused_relations[4]" resp="#tagger" cert="0.95">voom function → precision weights<note>Voom converts the mean-variance trend into precision weights.</note></span>
      <span xml:id="t113" from="#a47" to="#a48" type="unhoused_relations" ana="#unhoused_relations[5]" resp="#tagger" cert="0.95">normalization → systematic effects<note>Normalization removes systematic technical effects unrelated to biology.</note></span>
      <span xml:id="t114" from="#a35" to="#a36" type="unhoused_relations" ana="#unhoused_relations[6]" resp="#tagger" cert="0.95">pre-processing → missing values or inflated variances<note>Pre-processing is designed to avoid missing values and inflated variances.</note></span>
      <span xml:id="t115" from="#a49" to="#a50" type="unhoused_relations" ana="#unhoused_relations[7]" resp="#tagger" cert="0.95">multi-dimensional scaling → batch effects<note>MDS helps identify unexpected batch effects before modelling.</note></span>
      <span xml:id="t116" from="#a55" to="#a56" type="unhoused_relations" ana="#unhoused_relations[8]" resp="#tagger" cert="0.95">robustified shrinkage strategy → false positives<note>Robust shrinkage reduces false positives from spuriously small variances.</note></span>
      <span xml:id="t117" from="#a65" to="#a66" type="unhoused_relations" ana="#unhoused_relations[9]" resp="#tagger" cert="0.95">genas function → biological correlation<note>Genas estimates the true biological correlation between contrasts.</note></span>
      <span xml:id="t118" from="#a69" to="#a70" type="unhoused_relations" ana="#unhoused_relations[10]" resp="#tagger" cert="0.95">rank-based tests → optimistic P -values<note>Conditional-independence assumptions in rank tests yield optimistic P-values.</note></span>
      <span xml:id="t119" from="#a71" to="#a72" type="unhoused_relations" ana="#unhoused_relations[11]" resp="#tagger" cert="0.95">camera function → optimistic P -values<note>Camera avoids optimistic P-values by adjusting for inter-gene dependence.</note></span>
      <span xml:id="t120" from="#a73" to="#a74" type="unhoused_relations" ana="#unhoused_relations[12]" resp="#tagger" cert="0.95">rotation tests → smoothed version of permutation<note>Rotation can be viewed as a smoothed version of permutation suitable for linear models.</note></span>
      <span xml:id="t121" from="#a87" to="#a88" type="unhoused_relations" ana="#unhoused_relations[13]" resp="#tagger" cert="0.95">matrix → information<note>Coercion of limma classes to matrix entails loss of information.</note></span>
      <span xml:id="t122" from="#a89" to="#a90" type="unhoused_relations" ana="#unhoused_relations[14]" resp="#tagger" cert="0.95">C code → computationally intensive steps<note>C code speeds up computationally intensive steps in limma.</note></span>
      <span xml:id="t123" from="#a95" to="#a96" type="unhoused_relations" ana="#unhoused_relations[15]" resp="#tagger" cert="0.95">voom methodology → RNA-seq data<note>Voom unlocks most limma analysis methods for RNA-seq data.</note></span>
      <span xml:id="t124" from="#a1" to="#a2" type="senses" ana="#senses[0]" resp="#tagger" cert="0.95">limma as an integrated R/Bioconductor expression-analysis framework</span>
      <span xml:id="t125" from="#a17" to="#a18" type="senses" ana="#senses[1]" resp="#tagger" cert="0.95">linear modelling as one whole-experiment model rather than pairwise fragments</span>
      <span xml:id="t126" from="#a23" to="#a24" type="senses" ana="#senses[2]" resp="#tagger" cert="0.95">empirical Bayes as compromise variance estimation across gene-wise and global information</span>
      <span xml:id="t127" from="#a27" to="#a28" type="senses" ana="#senses[3]" resp="#tagger" cert="0.95">weights as graduated reliability rather than binary filtering</span>
      <span xml:id="t128" from="#a29" to="#a30" type="senses" ana="#senses[4]" resp="#tagger" cert="0.95">voom as empirical mean-variance precision modelling for log-counts</span>
      <span xml:id="t129" from="#a47" to="#a48" type="senses" ana="#senses[5]" resp="#tagger" cert="0.95">normalization as technical-effect removal rather than biological-signal removal</span>
      <span xml:id="t130" from="#a49" to="#a50" type="senses" ana="#senses[6]" resp="#tagger" cert="0.95">leading fold change as RMS separation among the genes best distinguishing samples</span>
      <span xml:id="t131" from="#a65" to="#a66" type="senses" ana="#senses[7]" resp="#tagger" cert="0.95">biological correlation as the error-free association between contrast effects</span>
      <span xml:id="t132" from="#a71" to="#a72" type="senses" ana="#senses[8]" resp="#tagger" cert="0.95">camera as competitive testing corrected for inter-gene dependence</span>
      <span xml:id="t133" from="#a73" to="#a74" type="senses" ana="#senses[9]" resp="#tagger" cert="0.95">rotation as residual-space simulation that preserves non-tested coefficients</span>
      <span xml:id="t134" from="#a79" to="#a80" type="senses" ana="#senses[10]" resp="#tagger" cert="0.95">limma objects as list-based, matrix-analogous containers for each workflow stage</span>
      <span xml:id="t135" from="#a11" to="#a12" type="senses" ana="#senses[11]" resp="#tagger" cert="0.95">limma as a review subject and existing infrastructure, not a newly introduced method in this article</span>
      <span xml:id="t136" from="#a7" to="#a8" type="claim_relations" ana="#claim_relations[0]" resp="#tagger" cert="0.95">builds-on → Bioconductor<note>note: limma is a core component of Bioconductor.</note></span>
      <span xml:id="t137" from="#a9" to="#a10" type="claim_relations" ana="#claim_relations[1]" resp="#tagger" cert="0.95">extends → microarray analysis<note>note: Capabilities formerly limited to microarrays now apply to RNA-seq.</note></span>
      <span xml:id="t138" from="#a15" to="#a16" type="claim_relations" ana="#claim_relations[2]" resp="#tagger" cert="0.95">builds-on → gene-wise linear models<note>note: The package fits one linear model per feature and links them by shared information.</note></span>
      <span xml:id="t139" from="#a41" to="#a42" type="claim_relations" ana="#claim_relations[3]" resp="#tagger" cert="0.95">complements → edgeR<note>note: limma accepts DGEList objects and edgeR normalization factors.</note></span>
      <span xml:id="t140" from="#a1" to="#a2" type="concept_edges" ana="#concept_edges[0]" resp="#tagger" cert="0.95">limma —is-a→ R/Bioconductor software package<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Explicit categorical definition. · the relation stated: limma is an R/Bioconductor software package.</note><term>limma</term><term>R/Bioconductor software package</term></span>
      <span xml:id="t141" from="#a7" to="#a8" type="concept_edges" ana="#concept_edges[1]" resp="#tagger" cert="0.95">Bioconductor —is-a→ R-based open-source software development project<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Explicit categorical definition. · the relation stated: Bioconductor is an R-based open-source software development project.</note><term>Bioconductor</term><term>R-based open-source software development project</term></span>
      <span xml:id="t142" from="#a17" to="#a18" type="concept_edges" ana="#concept_edges[2]" resp="#tagger" cert="0.95">linear models —contrasted-with→ piece-meal comparisons between pairs of treatments<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit rather-than comparison. · the relation stated: Whole-experiment linear models are used rather than piece-meal pairwise comparisons.</note><term>linear models</term><term>piece-meal comparisons between pairs of treatments</term></span>
      <span xml:id="t143" from="#a25" to="#a26" type="concept_edges" ana="#concept_edges[3]" resp="#tagger" cert="0.95">empirical Bayes procedures —causes→ statistical power and accuracy<note>direction on the measure: increases · the relation itself is separately evidenced · strength of the relation: 0.95 · note: Flat positive improvement claim. · the relation stated: Flexible empirical Bayes enhancements improve statistical power and accuracy.</note><term>empirical Bayes procedures</term><term>statistical power and accuracy</term></span>
      <span xml:id="t144" from="#a27" to="#a28" type="concept_edges" ana="#concept_edges[4]" resp="#tagger" cert="0.95">quantitative weights —causes→ power to detect differentially expressed genes<note>direction on the measure: increases · the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit positive increase. · the relation stated: The use of quantitative weights increases power to detect differentially expressed genes.</note><term>quantitative weights</term><term>power to detect differentially expressed genes</term></span>
      <span xml:id="t145" from="#a45" to="#a46" type="concept_edges" ana="#concept_edges[5]" resp="#tagger" cert="0.95">Removing this non-specific signal —same-as→ background correction<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Explicit naming equivalence. · the relation stated: Removing the non-specific probe signal is called background correction.</note><term>Removing this non-specific signal</term><term>background correction</term></span>
      <span xml:id="t146" from="#a49" to="#a50" type="concept_edges" ana="#concept_edges[6]" resp="#tagger" cert="0.95">leading fold change —operationalised-as→ root-mean-square average of the log-fold-changes<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Exact operational definition. · the relation stated: Leading fold change is defined as the root-mean-square average of selected log-fold-changes.</note><term>leading fold change</term><term>root-mean-square average of the log-fold-changes</term></span>
      <span xml:id="t147" from="#a39" to="#a40" type="concept_edges" ana="#concept_edges[7]" resp="#tagger" cert="0.95">limma —distinct-from→ permutation or re-sampling-based inference<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit negative distinction. · the relation stated: limma does not do permutation or re-sampling-based inference.</note><term>limma</term><term>permutation or re-sampling-based inference</term></span>
      <span xml:id="t148" from="#a57" to="#a58" type="concept_edges" ana="#concept_edges[8]" resp="#tagger" cert="0.95">greater than a threshold —contrasted-with→ different to zero<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit rather-than contrast. · the relation stated: Treat tests whether fold change exceeds a threshold rather than merely differs from zero.</note><term>greater than a threshold</term><term>different to zero</term></span>
      <span xml:id="t149" from="#a75" to="#a76" type="concept_edges" ana="#concept_edges[9]" resp="#tagger" cert="0.95">Gene set enrichment analysis —is-a→ hybrid approach<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Explicit categorical classification. · the relation stated: GSEA is a hybrid competitive and permutation approach.</note><term>Gene set enrichment analysis</term><term>hybrid approach</term></span>
      <span xml:id="t150" from="#a1" to="#a2" type="content_tags" ana="#content_tags.findings[0]" resp="#tagger" cert="0.95">limma provides an integrated gene-expression analysis solution across complex designs and small samples.</span>
      <span xml:id="t151" from="#a9" to="#a10" type="content_tags" ana="#content_tags.findings[1]" resp="#tagger" cert="0.95">One downstream pipeline can analyse both RNA-seq and microarray data after preprocessing.</span>
      <span xml:id="t152" from="#a17" to="#a18" type="content_tags" ana="#content_tags.findings[2]" resp="#tagger" cert="0.95">Whole-experiment linear models share information and accommodate sample correlations.</span>
      <span xml:id="t153" from="#a23" to="#a24" type="content_tags" ana="#content_tags.findings[3]" resp="#tagger" cert="0.95">Empirical Bayes moderation stabilizes gene-wise variance inference when replicates are few.</span>
      <span xml:id="t154" from="#a25" to="#a26" type="content_tags" ana="#content_tags.findings[4]" resp="#tagger" cert="0.95">Flexible robust empirical Bayes modelling improves statistical power and accuracy.</span>
      <span xml:id="t155" from="#a27" to="#a28" type="content_tags" ana="#content_tags.findings[5]" resp="#tagger" cert="0.95">Quantitative weights increase power while avoiding ad hoc observation filtering.</span>
      <span xml:id="t156" from="#a29" to="#a30" type="content_tags" ana="#content_tags.findings[6]" resp="#tagger" cert="0.95">Voom converts the mean-variance trend into precision weights for log-transformed RNA-seq counts.</span>
      <span xml:id="t157" from="#a29" to="#a30" type="content_tags" ana="#content_tags.findings[7]" resp="#tagger" cert="0.95">The voom pipeline performs comparably to leading negative-binomial packages with greater large-data speed and reliability.</span>
      <span xml:id="t158" from="#a35" to="#a36" type="content_tags" ana="#content_tags.findings[8]" resp="#tagger" cert="0.95">Moderate preprocessing offsets balance noise and bias while avoiding missing values and inflated variances.</span>
      <span xml:id="t159" from="#a39" to="#a40" type="content_tags" ana="#content_tags.findings[9]" resp="#tagger" cert="0.95">Permutation inference is poorly suited to small complex correlated experiments with unequal precision.</span>
      <span xml:id="t160" from="#a49" to="#a50" type="content_tags" ana="#content_tags.findings[10]" resp="#tagger" cert="0.95">MDS leading-fold-change distances expose sample structure and batch effects before model construction.</span>
      <span xml:id="t161" from="#a51" to="#a52" type="content_tags" ana="#content_tags.findings[11]" resp="#tagger" cert="0.95">Quality weights handle reliability variation gradually and improve DE power.</span>
      <span xml:id="t162" from="#a55" to="#a56" type="content_tags" ana="#content_tags.findings[12]" resp="#tagger" cert="0.95">Robust shrinkage reduces false positives from tiny variances without over-shrinking unusually large variances.</span>
      <span xml:id="t163" from="#a57" to="#a58" type="content_tags" ana="#content_tags.findings[13]" resp="#tagger" cert="0.95">Treat can prioritize fold changes that are biologically as well as statistically significant.</span>
      <span xml:id="t164" from="#a61" to="#a62" type="content_tags" ana="#content_tags.findings[14]" resp="#tagger" cert="0.95">DiffSplice makes large-scale differential-exon-usage surveys faster than alternatives.</span>
      <span xml:id="t165" from="#a65" to="#a66" type="content_tags" ana="#content_tags.findings[15]" resp="#tagger" cert="0.95">Genas estimates error-free biological correlation and can reveal shared pathways missed by significance-cutoff overlap.</span>
      <span xml:id="t166" from="#a71" to="#a72" type="content_tags" ana="#content_tags.findings[16]" resp="#tagger" cert="0.95">Camera corrects optimistic gene-set P-values for inter-gene dependence at a cost in power.</span>
      <span xml:id="t167" from="#a73" to="#a74" type="content_tags" ana="#content_tags.findings[17]" resp="#tagger" cert="0.95">Roast preserves directional prior annotation and works in small complex experiments.</span>
      <span xml:id="t168" from="#a89" to="#a90" type="content_tags" ana="#content_tags.findings[18]" resp="#tagger" cert="0.95">Most limma estimation procedures finish in seconds and virtually all in under a minute on a desktop.</span>
      <span xml:id="t169" from="#a91" to="#a92" type="content_tags" ana="#content_tags.findings[19]" resp="#tagger" cert="0.95">More than 120 Bioconductor packages used limma as of March 2014.</span>
      <span xml:id="t170" from="#a1" to="#a2" type="content_tags" ana="#content_tags.definitions[0]" resp="#tagger" cert="0.95">an R/Bioconductor package integrating gene-expression analysis<term>limma</term></span>
      <span xml:id="t171" from="#a23" to="#a24" type="content_tags" ana="#content_tags.definitions[2]" resp="#tagger" cert="0.95">statistical methods borrowing information dynamically between parallel gene models<term>parametric empirical Bayes</term></span>
      <span xml:id="t172" from="#a23" to="#a24" type="content_tags" ana="#content_tags.definitions[3]" resp="#tagger" cert="0.95">a compromise between a gene-wise estimate and pooled global variability<term>posterior variance estimator</term></span>
      <span xml:id="t173" from="#a27" to="#a28" type="content_tags" ana="#content_tags.definitions[4]" resp="#tagger" cert="0.95">reliability weights applied to genes, samples, or individual expression values<term>quantitative weights</term></span>
      <span xml:id="t174" from="#a29" to="#a30" type="content_tags" ana="#content_tags.definitions[5]" resp="#tagger" cert="0.95">conversion of log-scale RNA-seq counts and an empirical mean-variance trend into precision-weighted linear-model inputs<term>voom</term></span>
      <span xml:id="t175" from="#a45" to="#a46" type="content_tags" ana="#content_tags.definitions[6]" resp="#tagger" cert="0.95">removal of estimated ambient non-specific intensity from probe foreground intensity<term>background correction</term></span>
      <span xml:id="t176" from="#a47" to="#a48" type="content_tags" ana="#content_tags.definitions[7]" resp="#tagger" cert="0.95">removal of assay-specific technical effects so samples share a measurement scale<term>normalization</term></span>
      <span xml:id="t177" from="#a49" to="#a50" type="content_tags" ana="#content_tags.definitions[8]" resp="#tagger" cert="0.95">root-mean-square average log-fold-change among genes best distinguishing a sample pair<term>leading fold change</term></span>
      <span xml:id="t178" from="#a65" to="#a66" type="content_tags" ana="#content_tags.definitions[9]" resp="#tagger" cert="0.95">correlation between perfectly measured log-fold-changes without statistical error<term>biological correlation</term></span>
      <span xml:id="t179" from="#a67" to="#a68" type="content_tags" ana="#content_tags.definitions[10]" resp="#tagger" cert="0.95">assessment of the overall significance of co-regulated genes representing a pathway or process<term>gene set analyses</term></span>
      <span xml:id="t180" from="#a73" to="#a74" type="content_tags" ana="#content_tags.definitions[11]" resp="#tagger" cert="0.95">residual-space simulation for multivariate normal linear models with non-tested coefficients held constant<term>rotation test</term></span>
      <span xml:id="t181" from="#a75" to="#a76" type="content_tags" ana="#content_tags.definitions[12]" resp="#tagger" cert="0.95">a hybrid gene-set approach using competitive set comparison and sample-label permutation<term>GSEA</term></span>
      <span xml:id="t182" from="#a81" to="#a82" type="content_tags" ana="#content_tags.definitions[13]" resp="#tagger" cert="0.95">class storing raw two-colour intensity data<term>RGList</term></span>
      <span xml:id="t183" from="#a83" to="#a84" type="content_tags" ana="#content_tags.definitions[14]" resp="#tagger" cert="0.95">class storing normalized single-channel or voom-transformed count data<term>EList</term></span>
      <span xml:id="t184" from="#a85" to="#a86" type="content_tags" ana="#content_tags.definitions[15]" resp="#tagger" cert="0.95">class storing fitted gene-wise linear-model results<term>MArrayLM</term></span>
      <span xml:id="t185" from="#a5" to="#a6" type="content_tags" ana="#content_tags.quantities[0]" resp="#tagger" cert="0.95">small number — typical number of biological replicates</span>
      <span xml:id="t186" from="#a9" to="#a10" type="content_tags" ana="#content_tags.quantities[1]" resp="#tagger" cert="0.95">two important directions — RNA-seq/splicing support and higher-order signature analysis</span>
      <span xml:id="t187" from="#a3" to="#a4" type="content_tags" ana="#content_tags.quantities[2]" resp="#tagger" cert="0.95">two group comparisons — simplest experimental-design case</span>
      <span xml:id="t188" from="#a13" to="#a14" type="content_tags" ana="#content_tags.quantities[3]" resp="#tagger" cert="0.95">0.05 — FDR threshold used in the displayed DE example</span>
      <span xml:id="t189" from="#a91" to="#a92" type="content_tags" ana="#content_tags.quantities[4]" resp="#tagger" cert="0.95">over 120 — other Bioconductor packages using limma as of March 2014</span>
      <span xml:id="t190" from="#a93" to="#a94" type="content_tags" ana="#content_tags.quantities[5]" resp="#tagger" cert="0.95">over 120 pages — length of the limma user guide</span>
      <span xml:id="t191" from="#a93" to="#a94" type="content_tags" ana="#content_tags.quantities[6]" resp="#tagger" cert="0.95">10 — fully worked case studies with data and code</span>
      <span xml:id="t192" from="#a89" to="#a90" type="content_tags" ana="#content_tags.quantities[7]" resp="#tagger" cert="0.95">a few seconds — typical estimation time on a standard desktop</span>
      <span xml:id="t193" from="#a89" to="#a90" type="content_tags" ana="#content_tags.quantities[8]" resp="#tagger" cert="0.95">less than a minute — upper time for virtually all estimation procedures</span>
      <span xml:id="t194" from="#a89" to="#a90" type="content_tags" ana="#content_tags.quantities[9]" resp="#tagger" cert="0.95">linear — memory scaling in genes and samples</span>
      <span xml:id="t195" from="#a15" to="#a16" type="content_tags" ana="#content_tags.variables[0]" resp="#tagger" cert="0.95">gene expression values<term>gene expression values</term></span>
      <span xml:id="t196" from="#a15" to="#a16" type="content_tags" ana="#content_tags.variables[1]" resp="#tagger" cert="0.95">genes<term>genes</term></span>
      <span xml:id="t197" from="#a15" to="#a16" type="content_tags" ana="#content_tags.variables[2]" resp="#tagger" cert="0.95">RNA samples<term>RNA samples</term></span>
      <span xml:id="t198" from="#a23" to="#a24" type="content_tags" ana="#content_tags.variables[3]" resp="#tagger" cert="0.95">residual variances<term>residual variances</term></span>
      <span xml:id="t199" from="#a25" to="#a26" type="content_tags" ana="#content_tags.variables[4]" resp="#tagger" cert="0.95">mean-variance trend<term>mean-variance trend</term></span>
      <span xml:id="t200" from="#a29" to="#a30" type="content_tags" ana="#content_tags.variables[5]" resp="#tagger" cert="0.95">precision weights<term>precision weights</term></span>
      <span xml:id="t201" from="#a41" to="#a42" type="content_tags" ana="#content_tags.variables[6]" resp="#tagger" cert="0.95">read counts<term>read counts</term></span>
      <span xml:id="t202" from="#a41" to="#a42" type="content_tags" ana="#content_tags.variables[7]" resp="#tagger" cert="0.95">logCPM<term>logCPM</term></span>
      <span xml:id="t203" from="#a19" to="#a20" type="content_tags" ana="#content_tags.variables[8]" resp="#tagger" cert="0.95">batch effects<term>batch effects</term></span>
      <span xml:id="t204" from="#a49" to="#a50" type="content_tags" ana="#content_tags.variables[9]" resp="#tagger" cert="0.95">leading fold change<term>leading fold change</term></span>
      <span xml:id="t205" from="#a59" to="#a60" type="content_tags" ana="#content_tags.variables[10]" resp="#tagger" cert="0.95">false discovery rate<term>false discovery rate</term></span>
      <span xml:id="t206" from="#a71" to="#a72" type="content_tags" ana="#content_tags.variables[11]" resp="#tagger" cert="0.95">inter-gene correlation<term>inter-gene correlation</term></span>
    </spanGrp>
  </standOff>
  <text>
    <body>
        <p><anchor xml:id="a0"/> limma powers differential expression analyses for RNA-sequencing and microarray studies</p>
        <p>Abstract</p>
        <p><anchor xml:id="a1"/>limma is an R/Bioconductor software package that provides an integrated solution for analysing data from gene expression experiments. It contains rich features for handling complex experimental designs and for information borrowing to overcome the problem of small sample sizes. Over the past decade, limma has been a popular choice for gene discovery through differential expression analyses of microarray and high-throughput PCR data. The package contains particularly strong facilities for reading, normalizing and exploring such data. Recently, the capabilities of limma have been significantly expanded in two important directions. First, the package can now perform both differential expression and differential splicing analyses of RNA sequencing (RNA-seq) data. All the downstream analysis tools previously restricted to microarray data are now available for RNA-seq as well. These capabilities allow users to analyse both RNA-seq and microarray data with very similar pipelines. Second, the package is now able to go past the traditional gene-wise expression analyses in a variety of ways, analysing expression profiles in terms of co-regulated sets of genes or in terms of higher-order expression signatures. This provides enhanced possibilities for biological interpretation of gene expression differences. This article reviews the philosophy and design of the limma package, summarizing both new and historical features, with an emphasis on recent enhancements and features that have not been previously described.<anchor xml:id="a2"/></p>
        <p>INTRODUCTION</p>
        <p><anchor xml:id="a3"/>Gene expression technologies are used frequently in molecular biology research to gain a snapshot of transcriptional activity in different tissues or populations of cells. These profiles are then compared to identify gene expression changes associated with a treatment condition or phenotype of interest. Gene expression studies may be randomized designed experiments in which a biological system is perturbed, for example by a gene knock-out or by applying a specified stressor. Such experiments are amongst the most powerful tools in functional genomics, providing insights into normal cellular processes as well as disease pathogenesis. Or they may be observational studies in which different phenotypes are compared, diseased and normal tissue for example or cells from different populations. Such studies are common in cancer research and in the study of cell development. In either case, the study design can range from simple two group comparisons to complex set-ups with several experimental factors varying over multiple levels. Researchers might be interested for example in whether a particular gene facilitates or blocks the action of a particular drug, in which case knock-down and wild-type samples both with and without drug treatment would be profiled. Observational studies may involve multiple batch effects and covariates that must be accounted for in the analysis.<anchor xml:id="a4"/></p>
        <p><anchor xml:id="a5"/>Despite the complexity, gene expression studies often involve only a small number of biological replicates. The small but complex nature of gene expression studies poses challenging statistical problems and motivates the use of a number of specialized statistical techniques in order to get the most out of each data set. We have developed the limma software over the past decade to provide a framework for analysing gene expression experiments from beginning to end in a flexible and statistically rigorous way.<anchor xml:id="a6"/></p>
        <p><anchor xml:id="a7"/>The limma package is a core component of Bioconductor, an R-based open-source software development project in statistical genomics ( 1 , 2 ). It has proven a popular choice for the analysis of data from experiments involving microarrays ( 3 , 4 ), high-throughput polymerase chain reaction (PCR) ( 5 ), protein arrays ( 6 ) and other platforms. The package is designed in such a way that, after initial pre-processing and normalization, the same analysis pipeline is used for data from all technologies.<anchor xml:id="a8"/></p>
        <p><anchor xml:id="a9"/>Recently, the capabilities of limma have expanded significantly in two important directions. First, the package can now perform both differential expression (DE) and differential splicing analyses of RNA sequencing (RNA-seq) data ( 7 , 8 ). All the downstream analysis tools previously restricted to microarray data are now available for RNA-seq as well. These capabilities allow users to analyse both RNA-seq and microarray data with very similar pipelines. Second, the package is now able to go past the traditional gene-wise expression analyses in a variety of ways, analysing expression profiles in terms of co-regulated sets of genes or in terms of higher-order expression signatures ( 7 ). This provides enhanced possibilities for biological interpretation of gene expression differences.<anchor xml:id="a10"/></p>
        <p><anchor xml:id="a11"/>This article reviews the philosophy and design of the limma package, summarizing both new and historical features, with an emphasis on recent enhancements and features that have not been previously described. The article outlines limma &#x27;s functionality at each of the main steps in a gene expression analysis, from data import, pre-processing, quality assessment and normalization, through to linear modelling, DE and gene signature analyses.<anchor xml:id="a12"/></p>
        <p>MATERIALS AND METHODS</p>
        <p>Figure 3 shows example diagnostic plots. Panel (A) shows RNA-seq data from Pickrell et al . ( 9 ) that has been analysed as described by Law et al . ( 10 ). Panels (B) and (C) display the two-colour microarray quality control data set presented by Ritchie et al . ( 11 ). Panel (B) displays background corrected but non-normalized intensities from one typical array. Panel (C) was generated from a subset of 30 of the control arrays after print-tip loess normalization ( 12 ).</p>
        <p>Example diagnostic plots produced by limma . ( A ) Plot of variability versus count size for RNA-seq data, generated by voom with plot=TRUE. This plot shows that technical variability decreases with count size. Total variability asymptotes to biological variability as count sizes increases. ( B ) Mean-difference plot produced by the plotMA function for a two-colour microarray. The plot highlights negative (NC), constant (DR) and differentially expressed (D03, D10, U03, U10) spike-in controls. Regular probes are non-highlighted. ( C ) Multidimensional scaling (MDS) plot of a set of 30 microarrays, generated by plotMDS. All arrays are biologically identical and the plot reveals strong batch effects. Distances represent leading log2-fold changes between samples.</p>
        <p><anchor xml:id="a13"/>Figure 4 shows example DE summary plots. Panels (A) and (B) were generated using the two-colour microarray data from GEO series GSE2593 . Intensities were background corrected and normalized as previously described ( 13 ). Panel (A) shows a volcano plot for the comparison of samples with RUNX1 over-expressed versus wild-type samples, while panel (B) shows a Venn diagram of differentially expressed probes for each of the three over-expressed genes versus wild-type. Probes with false discovery rate less than 0.05 were considered to be differentially expressed. Panel (C) uses RNA-seq data from GEO series GSE52870 . The data were analysed as described in Figure 5 of Liu et al . ( 7 ).<anchor xml:id="a14"/></p>
        <p>Example plots displaying results from DE and gene set analyses. ( A ) Volcano plot showing fold changes and posterior odds of DE for a particular comparison (RUNX1 over-expression versus wild-type in this case), generated by volcanoplot. Probes with P &lt; 0.00001 are highlighted in red. ( B ) Venn diagram showing overlap in the number of DE genes for three comparisons from the same study as (A), generated by the vennDiagram function. ( C ) Gene set enrichment plot produced by barcodeplot. The central bar orders differentially expressed genes by significance from up to down upon Pax5 restoration in an RNA-seq experiment ( 7 ). The vertical bars mark genes that are induced (red) or repressed (blue) upon the transition from large cycling pre-B cells to small resting pre-B cells during normal B cell development according to the published literature ( 47 ). The plot shows a strong positive concordance between Pax5 restoration and the large to small cell transition. The roast function can be used to assign statistical significance to this correlation.</p>
        <p>RESULTS</p>
        <p>Statistical principles</p>
        <p><anchor xml:id="a15"/>limma integrates a number of statistical principles in a way that is effective for large-scale expression studies. It operates on a matrix of expression values, where each row represents a gene, or some other genomic feature relevant to the current study, and each column corresponds to an RNA sample. On the one hand, it fits a linear model to each row of data and takes advantage of the flexibility of such models in various ways, for example to handle complex experimental designs and to test very flexible hypotheses. On the other hand, it leverages the highly parallel nature of genomic data to borrow strength between the gene-wise models, allowing for different levels of variability between genes and between samples, and making statistical conclusions more reliable when the number of samples is small. All the features of the statistical models can be accessed not just for gene-wise expression analyses but also for higher level analyses of gene expression signatures. Figure 1 depicts the linear model and highlights the statistical principles employed in a typical limma analysis.<anchor xml:id="a16"/></p>
        <p>Schematic of the major components that are central to any limma analysis. For each gene g , we have a vector of gene expression values ( y g ) and a design matrix X that relates these values to some coefficients of interest (β g ). The limma package includes statistical methods that (i) facilitate information borrowing using empirical Bayes methods to obtain posterior variance estimators ( ), (ii) incorporate observation weights ( w gj where j refers to sample) to allow for variations in data quality, (iii) allow variance modelling to accommodate technical or biological heterogeneity that may be present and (iv) pre-processing methods such as variance stabilization to reduce noise. These methods all help improve inference at both the gene and gene set level in small experiments.</p>
        <p>Linear models analyse complete experiments together</p>
        <p><anchor xml:id="a17"/>The hallmark of the limma approach is the use of linear models to analyse entire experiments as an integrated whole rather than making piece-meal comparisons between pairs of treatments. This has the effect of sharing information between samples. Analysing the data as a whole also allows us to model correlations that may exist between samples due to repeated measures or other causes. This kind of analysis would not be feasible were the data partitioned into subsets and analysed as a series of pairwise comparisons.<anchor xml:id="a18"/></p>
        <p><anchor xml:id="a19"/>Linear models permit very general analyses. Researchers can adjust for the effects of multiple experimental factors or can adjust for batch effects. The linear model might include time course effects or regression splines. The linear model could even include the expression values themselves of one or more genes as covariates, allowing researchers to test for inter-gene dependencies. Linear models allow researchers to test very flexible hypotheses, not just simple comparisons between groups but also interaction effects or more complex customized comparisons.<anchor xml:id="a20"/></p>
        <p>Shared global parameters link gene-wise models</p>
        <p><anchor xml:id="a21"/>A separate model is fitted for each gene, but the gene-wise models can be linked by global parameters or global hyper-parameters. The use of global parameters is a simple means of sharing information between genes that can be used even for the smallest experiments, because the global parameters can be estimated from the entire data set involving all the genes at once. This strategy allows the gene-wise models to incorporate such things as correlations between duplicate probes for the same gene, or correlations between related RNA samples, or variations in quality between the RNA samples.<anchor xml:id="a22"/></p>
        <p>Empirical Bayes borrows information between genes</p>
        <p><anchor xml:id="a23"/>The highly parallel nature of gene expression experiments lends itself to a particular class of statistical methods, called parametric empirical Bayes, that borrow information between genes in a dynamic way ( 14 , 15 ). The fact that the same linear model is fitted to each gene allows us to borrow strength between genes in order to moderate the residual variances ( 16 ). The estimated variance for each gene then becomes a compromise between the gene-wise estimator, obtained from the data for that gene alone, and the global variability across all genes, estimated by pooling the ensemble of all genes. This has the effect of increasing the effective degrees of freedom with which the gene-wise variances are estimated. It was an innovation of the limma package to show that exact small-sample inference could be conducted using the empirical Bayes posterior variance estimators ( 16 ). This approach has proven particularly advantageous in experiments with small sample sizes, ensuring that inference is reliable and stable even when the number of replicates is small.<anchor xml:id="a24"/></p>
        <p><anchor xml:id="a25"/>In recent years, the empirical Bayes procedures of limma have been enhanced in two important ways. First, the global variance estimate can now incorporate a mean-variance trend ( 10 , 17 , 18 ). This is important because many gene expression technologies produce data that are less reliable at lower intensities or abundances. Second, the relative weighting of the gene-wise and global variance estimators no longer needs to be the same for all genes. This allows a sophisticated robust empirical Bayes procedure in which hyper-variable genes are identified and treated separately ( 18 , 19 ). Both of these enhancements improve statistical power and accuracy by improving the modelling of the global characteristics of the data in a more flexible way.<anchor xml:id="a26"/></p>
        <p>Quantitative weights allow for unequal quality</p>
        <p><anchor xml:id="a27"/>Another unique feature of limma is the ability to incorporate quantitative weights into all levels of the statistical analysis, from normalization to linear modelling and gene set testing. Weights can be applied to genes or to RNA samples or to individual expression values. Weights can be used to give more emphasis to control probes during normalization, or can be used to down-weight measurements or samples that are less reliable in a gene expression analysis. The weights can be preset based on external quality information, or may be estimated from the expression data itself. The use of weights increases power to detect differentially expressed genes, and having a model based approach avoids the need for ad hoc decisions about which observations or samples to filter out ( 11 ).<anchor xml:id="a28"/></p>
        <p>RNA-seq and sequence data</p>
        <p><anchor xml:id="a29"/>All the downstream analysis features of limma are available for RNA-seq and other sequence count data, as well as for data from microarrays and other platforms. Traditionally, RNA-seq data require specialized software based on the negative binomial or similar distributions ( 20 ). limma however is able to analyse RNA-seq read counts with high precision by converting counts to the log-scale and estimating the mean-variance relationship empirically (Figure 3A ). The mean-variance trend is converted by the voom function into precision weights, which are incorporated into the analysis of log-transformed RNA-seq counts using the same linear modelling commands as for microarrays. The resulting pipeline gives comparable performance to the best of the negative binomial-based software packages but with greater speed and reliability for large data sets ( 10 , 21 ). Additionally, and conveniently, only minimal pipeline changes are required when switching between analyses for RNA-seq and microarray experiments within limma . This also means that the same statistical tests with the same format of results and graphical displays are available for both data types.<anchor xml:id="a30"/></p>
        <p>Variance models allow for unequal variability</p>
        <p><anchor xml:id="a31"/>Expression values often show some degree of heteroscedasticity, either because there is a relationship between abundance and measurement precision, or because some treatment conditions are more heterogeneous than others. For example, tumours might be more variable than normal tissue. Concern for such effects has prompted some researchers to filter out low intensity observations or to use Welch&#x27;s t -test for DE between two groups instead of classical pooled t -tests. The use of weights and the ability to model global parameters allow limma to incorporate unequal variances in a number of ways. One way is through estimating a mean-variance trend, which can either be incorporated into the empirical Bayes procedure as mentioned above or used to generate observation weights ( 10 ). A recent development is the ability to estimate precision weights associated with treatment groups or more generally with any given set of covariates. More generally again, the mean-variance trend can be estimated in a treatment-specific way, combining the two types of heteroscedasticity mentioned above. These approaches allow limma to model unequal variances even for experiments with a small number of RNA samples. Importantly, they accommodate unequal variances without compromising the linear modelling and empirical Bayes framework of the package.<anchor xml:id="a32"/></p>
        <p>Using sets of genes to represent higher-level expression signatures</p>
        <p><anchor xml:id="a33"/>In recent years, the linear modelling capabilities of limma have been extended to higher-level expression signature analyses involving co-regulated sets of genes. The idea is to use a set of genes, together with their log-fold-changes, to represent the transcriptional signature of a biological process or cell type. One way that this is done is by rotation technology, which permits statistical significance to be tested for sets of genes for any linear model contrast ( 55 ). A particular feature of rotation tests is the ability to incorporate prior information about the direction and strength with which each gene is expected to contribute to the statistical signature. In this way, limma provides a uniquely flexible means to relate new expression data sets to previous results collated from earlier experiments, taking into account for example the fold-change and direction of change for each gene in the earlier experiment.<anchor xml:id="a34"/></p>
        <p>A closely related statistical approach implemented in limma is to fit global covariance models, either to estimate correlations between genes or to estimate the relatedness between the DE profiles resulting from difference comparisons. These new analyses are described briefly later in this article.</p>
        <p>Pre-processing methods preserve information</p>
        <p><anchor xml:id="a35"/>Microarray expression data are measured as intensities, which need to be background corrected and normalized before any statistical analysis can be conducted. limma includes a range of background correction and normalization procedures suitable for different types of DNA microarrays or protein arrays. Notable are the maximum likelihood implementation of the normal-exponential convolution model for background correction ( 22 ) and the implementation of loess curves and normalization using quantitative weights. The guiding principle in the pre-processing steps is to preserve information, avoiding missing values or inflated variances ( 23 ). Normalized intensities are offset from zero before transforming to the log-scale to avoid missing values or large variances. Offsets in a range of moderate values have been shown to achieve an effective compromise between noise and bias ( 24 ).<anchor xml:id="a36"/></p>
        <p>Mean-difference plots</p>
        <p><anchor xml:id="a37"/>Measuring expression in multiple RNA samples produces columns of correlated expression values, which are highly correlated because they are measured on the same set of genes or genomic features. It has long been established in the biomedical literature that the level of agreement between correlated variables can be usefully examined by plotting differences versus means. Such a plot is called a Bland–Altman plot ( 25 ) or a Tukey mean-difference plot ( 26 ). Indeed the concept of DE can be viewed as a measure of disagreement between expression measures for the same genes in different samples. Mean-difference plots were introduced to the two-colour microarray literature by Dudoit et al . ( 27 ) and to the single-channel literature by Bolstad et al . ( 28 ), who called them MA-plots. limma generalized the concept of an MA-plot in two ways. First, the idea was extended to apply to sets of single-channel expression values. In this case, the plot is used to compare each sample to the average of all other samples. A virtual array is constructed by averaging the log-expression value for all the samples other than the sample of interest, and then a mean-difference plot is made between the single array and the virtual array. Second, the idea was extended to apply to the fitted model objects. In this case, the plot compares the log-fold-changes for a chosen contrast versus the average log-expression values of each gene across all samples. In effect, this plots a coefficient of the linear model versus an overall mean intercept parameter. These ideas were part of the original limma package submitted to Bioconductor in 2003.<anchor xml:id="a38"/></p>
        <p>Parametric modelling versus permutation methods</p>
        <p><anchor xml:id="a39"/>It is worth mentioning what limma does not do, which is permutation or re-sampling-based inference. Permutation is frequently useful in large-scale studies when the aim is to compare two groups. However permutation has a number of disadvantages that make it unattractive for assessing DE in experiments with complex designs. If permutation is applied only to samples involved in two treatment conditions to be compared, then the typically small number of replicates is a severe limitation that will result in low power to detect differences. If permutation is applied to all the samples in a multi-factor experiment, then the composite null hypothesis being testing is an uninteresting one and the power to reject it may be highly dependent on the existence of DE between treatment conditions that are not of primary interest. In other words, permutation cannot be tuned to test specific null hypotheses of interest in a designed experiment. Even more importantly, permutation assumes that all samples are independent and identically distributed under the null hypothesis, and these assumptions are frequently, usually perhaps, unrealistic. In addition, permutation is potentially misleading when the samples are correlated or of unequal precision. In other words, permutation is unable to accommodate blocking structures or quality weights. In small, complex experiments, the potential compromises involved in modelling expression values using parametric distributions, which can never be perfectly correct, are outweighed by the gains in precision and accuracy by modelling the variance structure more realistically.<anchor xml:id="a40"/></p>
        <p>Pre-processing RNA-seq and other sequencing data</p>
        <p>Figure 2 provides an overview of the functions available at each stage of a gene expression analysis. The first step is to import expression data into the R session.</p>
        <p>The limma workflow. The diagram shows the main steps in a gene expression analysis, along with individual functions that might be used and the corresponding classes used to store data or results. Online documentation pages are available both for each individual function and for each major step.</p>
        <p><anchor xml:id="a41"/>limma accepts RNA-seq data in the form of a matrix of read counts, with rows for genomic features and columns for RNA samples. Alternatively it can accept a DGEList object from the edgeR package. The genomic regions are often genes or exons, but could in principle be any genomic feature of interest. In this article, the regions will usually be called genes for simplicity of terminology. The read counts are processed by the voom function in limma to convert them into log 2 counts per million (logCPM) with associated precision weights. The logCPM values can be normalized between samples by the voom function or can be pre-normalized by adding normalization factors within edgeR .<anchor xml:id="a42"/></p>
        <p><anchor xml:id="a43"/>Raw read counts are assembled outside limma using tools such as featureCounts ( 29 ), HTSeq-counts ( 30 ) or RSEM ( 31 ). The authors of this article find the Subread ( 32 ) and featureCounts pipeline particularly convenient because it is fast, accurate ( 8 ) and can be run from the R prompt using the Rsubread package. The data input to limma should be counts, rather than popular expression summaries such as reads-per-kilobase-per-million (RPKM), so that limma can estimate the appropriate mean-variance relationship. The voom output can be converted to RPKM values for convenience of interpretation, by subtracting log-gene-lengths, but this should be done after running voom rather than before.<anchor xml:id="a44"/></p>
        <p>After running voom, downstream analysis for RNA-seq data is the same as for any other technology. For example, RNA-seq data can be explored using boxplots or mean-difference plots, similarly to single-channel microarray data. More detail about this is given in the following sections.</p>
        <p>Preprocessing microarray data</p>
        <p>Reading or importing data</p>
        <p>For DNA or protein microarrays, importing expression data often involves reading output files created by an image analysis program. Alternatively, a data frame of expression values may be read from a file or data might be directly imported as an R object.</p>
        <p>The main limma function to read image output files is read.maimages. This function directly supports formats written by many different image analysis programs including GenePix, Agilent Feature Extraction, ArrayVision, BlueFuse, ImaGene, QuantArray and SPOT (Table 1 ). It also supports the Stanford Microarray Database format. Output in other formats can be read if the appropriate column names are supplied. Two-colour and single-channel data are both supported. Illumina BeadChips need special treatment: output from Illumina&#x27;s GenomeStudio can be read by read.ilmn if exported as a text file or by read.idat if in binary format.</p>
        <p>Standard microarray data formats handled by limma</p>
        <p>Probe annotation is read automatically if contained in the image output files, or can be read separately and added to the data object. readGAL supports the GenePix Gene Array List format. read.maimages includes the ability to generate spot quality weights according to any user-specified rule based on any information found in the image output files.</p>
        <p>limma includes many possibilities for using or highlighting different types of control probes. The functions readSpotTypes and controlStatus are provided to conveniently classify probes based on text found in the input files. The status of each probe is automatically carried through to appropriate downstream functions.</p>
        <p>The function readTargets is provided to read information about the RNA samples or targets . This information typically includes information about the treatment conditions and experimental design.</p>
        <p>limma can accept data objects containing expression data from other Bioconductor packages. It can accept marrayNorm objects from the marray package, PLMset objects from the affyPLM package, vsn objects from the vsn package or objects of any class inheriting from ExpressionSet. Alternatively, expression data can be supplied as a numeric matrix. Expression values can be image intensities or normalized log-expression values.</p>
        <p>Background correction</p>
        <p><anchor xml:id="a45"/>When array images are read, it is usual to read both foreground and background intensities for each probe. The background intensities can be used to derive an estimate of the ambient intensity affecting each probe. Removing this non-specific signal from the foreground intensity of each probe is called background correction and it is typically the first step in processing microarray images. Simply subtracting background from foreground intensities is too heavy-handed ( 23 ). The limma backgroundCorrect function offers a range of more sophisticated alternatives, most unique to the package. These include a method based on a convolution of normal distributions ( 33 ) and a normal-exponential ( normexp ) convolution ( 23 ) with different options for parameter estimation ( 22 ). The plotFB function plots foreground against background intensities for each array and is useful for choosing an appropriate correction method.<anchor xml:id="a46"/></p>
        <p>Illumina arrays again benefit from special treatment. The nec function implements normexp background correction for Illumina BeadChips making special use of the control probes that are specific to these arrays ( 24 ).</p>
        <p>The propexpr function compares intensities to those of negative control probes to estimate the total proportion of probes on each array that correspond to expressed genes ( 34 ). This provides an estimate of the size of the transcriptome in each sample and is useful for deciding how many probes to filter from downstream analyses.</p>
        <p>Normalization</p>
        <p><anchor xml:id="a47"/>Before meaningful comparisons can be made between treatment conditions in a designed experiment, it is critical that the expression values are normalized so that all the samples are as far as possible on the same measurement scale. The purpose of normalization is to remove systematic effects due to technical differences between the assays unassociated with the biological differences of interest. Different technology platforms introduce different biases and so require different normalization methods. The normalizeWithinArrays function normalizes data from two-colour microarrays by aligning the two channels for each array. A popular method is to remove intensity-dependent dye-biases and spatial artefacts from M -values (log-intensity ratios) using locally weighted regression (loess) ( 35 ). The normalizeBetweenArrays function aligns expression values between samples for one-colour microarrays and other single channel platforms using methods such as quantile normalization or cyclic loess ( 28 ). Both functions provide a range of different normalization methods suitable for different platforms. normalizeBetweenArrays also implements separate channel normalization methods for two-colour arrays ( 36 , 37 ). limma is the only software to allow the use of quantitative weights in loess normalization ( 38 ), giving it the ability to downweigh less reliable probes or to give higher priority to control probes or house-keeping genes. The latter ability has been exploited for normalizing assays when the proportion of differentially expressed genes may be high, for example boutique arrays ( 39 ), miRNA arrays ( 40 ), PCR arrays, protein arrays or protein mass spectrometry. Other enhancements include the ability to replace the loess curve with a spline curve that has high robustness breakdown properties, and the ability to apply empirical Bayes moderation to the spline curves for multiple regions within the same array (robust-spline normalization).<anchor xml:id="a48"/></p>
        <p>The neqc function implements quantile normalization for Illumina BeadChips making special use of the control probes specific to these arrays ( 24 ).</p>
        <p>All the between-arrays normalization methods are accessible for RNA-seq data from within the voom function. Alternatively, voom has the ability to respect normalization factors computed outside of limma by methods such as trimmed mean of M -values ( 41 ) or conditional quantile normalization ( 42 ).</p>
        <p>Graphical exploration of data quality</p>
        <p>Diagnostic plots allow the user to visually inspect data from a designed experiment in order to identify potential quality problems, such as degraded samples, or problems that arise due to array handling or sample processing. Such displays may also reveal systematic biases that should be removed prior to downstream analysis. Figure 3 presents examples from three different plotting functions.</p>
        <p>Plots for individual arrays include the foreground–background plots mentioned above (plotFG), image plots that can reveal inconsistencies across the array surface (</p>
        <p>imageplot) and mean-difference plots that show intensity-dependent trends in the log-ratios of two-colour arrays (plotMA, Figure 3B ). The plotMA function can show similar plots for single channel data. In this case, the mean-difference plot is constructed by comparing the log-expression values for that sample compared with the mean of all other samples. The plotMA function makes it simple to highlight particular subsets of probes or genes, for example control probes. Control probes are automatically highlighted if they have previously been identified using controlStatus (Figure 3B ).</p>
        <p>The distribution of expression values can be compared between samples using box plots or density plots (plotDensities). The latter is particularly useful when considering separate channel analyses of two-colour arrays.</p>
        <p>Finding differentially expressed genes</p>
        <p>Exploration of sample relationships</p>
        <p><anchor xml:id="a49"/>After the pre-processing steps described above, the next major analysis stage is to identify differentially expressed genes. It is advisable to begin the DE analysis with a plot that visualizes the relative differences in transcriptional profile between the samples. The plotMDS function uses multi-dimensional scaling to plot differences in expression profiles between different samples (Figure 3C ). Distances between samples on the plot represent ‘leading fold change’, which is defined as the root-mean-square average of the log-fold-changes for the genes best distinguishing each pair of samples. This provides a type of unsupervised clustering of the samples. It is useful for examining how different are the profiles produced by different experimental factors and for identifying unexpected patterns, such as batch effects, that should be adjusted for during the linear model analysis. This helps guide the construction of the design matrix used for the linear modelling below.<anchor xml:id="a50"/></p>
        <p>The plotRLDF function provides a supervised plot of the samples that shows whether the expression data can distinguish a set of known groups. The function implements a regularized version of linear discriminant functions.</p>
        <p>The removeBatchEffect function can be used to remove systematic variation due to batches or other covariates prior to plotting the data so that the effect of treatments can be better seen.</p>
        <p>Linear modelling</p>
        <p>The core component of the limma package is the ability to fit gene-wise linear models to gene expression data in order to assess DE ( 16 ). The basic idea is to estimate log-ratios (for two-channel data) or log-intensities (for single-channel data) between two or more target RNA samples simultaneously.</p>
        <p>Each analysis begins with a matrix of expression levels, with probes/genes/exons in the rows and different samples (biological/technical replicates) in the columns. The linear modelling is performed in a row-wise fashion, with regression coefficients and standard errors either directly estimating the comparisons of interest or via contrasts. Test-statistics are obtained for gene ranking that can be further summarized at the gene set level to perform gene signature/pathway-level ranking.</p>
        <p>The flexibility of the linear modelling approach allows almost any experimental design to be handled. Experiments with two or more groups, factorial and time-course designs, and internal controls such as dye-swaps can all be modelled and summarized using the lmFit function. Where appropriate, nuisance variables such as batch and dye effects can also be modelled. Models can be fit robustly or by least squares. Once a linear model is fitted, the makeContrasts function can be used to form a contrast matrix. The fitted model object and contrast matrix are used by contrasts.fit to compute log 2 -fold-changes and t -statistics for the contrasts of interest. This allows all possible pairwise comparisons between treatments to be made.</p>
        <p>The plotSA function provides a useful diagnostic plot of the linear model fit, plotting gene-wise residual standard deviations against average log-expression. This allows mean-variance trends to be readily identified, should they exist.</p>
        <p>Quality weights and heteroscedasticity</p>
        <p><anchor xml:id="a51"/>limma is the only package that allows variations in quality to be handled in a graduated way via quantitative weights. Both observation-level ( 2 , 10 , 43 ) and sample-specific weights ( 11 ) can be used in an analysis. For microarray data, the arrayWeights function estimates relative array variances, which are converted to weights that can be used in the linear model analysis to down-weight observations from less reliable arrays. Probe and array weights can be easily combined by multiplying them together and, when used appropriately, have been demonstrated to increase power to detect DE ( 11 , 43 ).<anchor xml:id="a52"/></p>
        <p>For RNA-seq data, the voomWithQualityWeights function combines observation-level and sample-specific weights for use in the subsequent linear modelling.</p>
        <p>Blocking and random effects</p>
        <p><anchor xml:id="a53"/>limma includes a unique strategy for incorporating the fact that observations or samples may be correlated. The strategy is similar to fitting a random effects model, with the difference that all genes are constrained to share the same intrablock correlation. The duplicateCorrelation function is used to estimate the consensus correlation. The correlation structure is then incorporated into the linear model fit and hence into all tests for DE. Originally the idea was used to estimate the correlation between replicate copies of the same probe on a microarray ( 44 ). The correlation strategy preserves more information than simply averaging the replicate probe copies. More generally, the same idea is also used to model the correlation between related RNA samples, for example repeated measures on the same individual or RNA samples collected at the same time.<anchor xml:id="a54"/></p>
        <p>Separate channel analysis of two-colour microarrays</p>
        <p>Two-colour microarrays are traditionally analysed in terms of log-ratios between the two channels hybridized to each probe. limma also provides the possibility of analysing two-colour microarrays as if they were single channel microarrays with two separate samples hybridized to each physical array. This provides a very powerful type of analysis in which intensities can be directly compared between microarrays. The pairing of the red and green channels from each array is kept track of by estimating the correlation between the two channels hybridized to each probe ( 37 ). This type of separate channel analysis uses the intraspotCorrelation and lmscFit functions.</p>
        <p>All the linear model fits, whether using lmFit or lmscFit, produce a fitted model object with the same structure. The same fitted model applies regardless of whether correlations have been estimated, whether robust regression or least squares has been used, or whether quality weights have been included. This consistency allows the same framework for DE to be used for all experimental designs and platform technologies.</p>
        <p>Testing for DE</p>
        <p><anchor xml:id="a55"/>An empirical Bayes framework to borrow information between genes when estimating the variances is implemented in the eBayes function. Gene-wise variances are squeezed towards the common or trended variance, which reduces the number of false positives for genes with very small variances and improves power to detect DE for genes with larger variances. limma includes a robustified shrinkage strategy that allows for gene-wise shrinkage factors to be estimated ( 18 ). This ensures unusually large variances are not squeezed too heavily, reducing the chance that they will appear statistically significant, while more consistently expressed genes are squeezed more severely towards the common variance. This robust strategy offers the benefits of shrinkage to the majority of the genes, whilst negating the effects of outliers.<anchor xml:id="a56"/></p>
        <p>For each coefficient in the linear model or contrast, empirical Bayes moderated t -statistics and their associated P -values are generally used to assess the significance of the observed expression changes. T -statistics can also be translated into Bayesian log-odds of DE. Moderated F -statistics that combine the t -statistics for all contrasts into an overall test of significance for each gene can also be used.</p>
        <p><anchor xml:id="a57"/>When one has a particular cut-off for log-fold-change in mind, the treat function can be used to test whether the log 2 -fold-change is greater than a threshold rather than merely different to zero ( 45 ). This can be effective for prioritizing results that are biologically as well as statistically significant.<anchor xml:id="a58"/></p>
        <p><anchor xml:id="a59"/>limma provides a number of options to adjust tests for multiple testing. Users can control either the family-wise type I error rate or the false discovery rate ( 46 ). As well as the usual control for multiple testing across multiple genes, limma is the only software package to provide methods for error rate control across multiple contrasts and genes simultaneously. For individual tests, multiple testing can be applied using the topTable function. The decideTests function gives access to the full range of options.<anchor xml:id="a60"/></p>
        <p>To visualize the results of a DE analysis for single or multiple contrasts, limma provides a number of plotting options. Figure 4 shows three such displays: a volcano plot showing the DE results from a single condition, a Venn diagram showing the number of differentially expressed genes in multiple experimental conditions and a barcode enrichment plot highlighting a particular gene signature in a DE analysis ranked by moderated t -statistics.</p>
        <p>Another useful plot is produced by plotMA, which plots estimated log-fold-changes against mean log-expression for each gene. This allows the magnitude of changes to be visualized in the context of overall expression level; see for example Figure 5C of Liu et al . ( 7 ).</p>
        <p>Testing for differential splicing</p>
        <p><anchor xml:id="a61"/>The linear model framework of limma is extended to test very easily for differential splicing events when exon-level expression data are available. The data can be either from an exon microarray or from RNA-seq data summarized at the exon level. In either case, the approach is based on fitting linear models to the exon-level expression data. The approach can relate differential exon usage to continuous as well as categorical predictors or to any contrast in a linear model. The test is conducted by the diffSplice function and results are displayed using plotSplice and topSplice. The plotExons function is also useful for exploring exon expression for individual genes. This approach is considerably faster than alternative approaches to differential splicing, making large-scale surveys of differential exon usage feasible.<anchor xml:id="a62"/></p>
        <p>Higher-level analyses</p>
        <p>Linear modelling of gene expression data provides the ideal platform from which to attack larger functional genomic questions related to gene-wise independence or interaction and the decomposition of gene signatures into distinct molecular pathways. This section describes higher-level analyses involving multiple genes.</p>
        <p>Estimating the proportion of true null hypotheses</p>
        <p>First we consider DE from a genomic point of view. The DE analyses described so far identify individual differentially expressed genes according to an FDR criterion. However, for most studies, there are likely to be false negatives: truly differentially expressed genes that are not detected as differentially expressed because the study did not have enough statistical power to identify them with confidence.</p>
        <p><anchor xml:id="a63"/>The propTrueNull function estimates the number of truly differentially expressed genes that remain to be identified. Mathematically, it estimates the proportion of true null hypotheses in a collection of hypothesis tests given a vector of P -values. In a gene expression study, it estimates the proportion of non-differentially expressed genes, out of all tested, for any contrast in the linear model. The function implements a number of different methods for estimating the proportion of true nulls, ranging from quick and simple to more computationally demanding. The default is based on averaging local false discovery rates across the P -values ( 19 ). Other methods are the histogram method of ( 48 , 49 ), the convex decreasing density estimate of ( 50 ) and a very simple estimate based on averaging the P -values.<anchor xml:id="a64"/></p>
        <p>Genuine association of gene expression profiles</p>
        <p><anchor xml:id="a65"/>Gene expression experiments typically involve a number of different treatment conditions. A question that often arises is this: to what extent do two different treatments produce similar or different expression profiles? One way to address this question is to count the overlap in differentially expressed genes from the two treatments, as in Figure 4B. This approach however is often too crude. It is very sensitive to the significance cut-off used to identify differentially expressed genes, has little chance of success in situations where power to detect differentially expressed genes is relatively low and is subject to technical biases when both treatments are compared back to the same control samples. The genas function ( 19 ) addresses these problems. It tests whether two different contrasts in a linear model affect the same genes in similar or different ways, adjusting for biases, without needing to apply a significance cut-off for assessing DE. More technically, it estimates the true biological correlation between the log 2 -fold-changes of two different contrasts. By biological correlation, we mean the correlation that would exist between log-fold-changes if they could be measured perfectly without any statistical error. genas is based on a bivariate generalization of the empirical Bayes model that is used to assess DE in limma . This method is particularly powerful for gaining insight into commonly affected gene pathways when the changes are small but consistent. For instance, applying genas to a microarray study looking at the relationship between polycomb repressor complex (PRC) 1 and PRC2 facilitated the discovery of the opposing roles of these two complexes ( 51 ). This relationship would have been missed if the analysis had been restricted to the statistically significant genes from each contrast alone.<anchor xml:id="a66"/></p>
        <p>Gene set testing</p>
        <p><anchor xml:id="a67"/>Gene set analyses assess the overall significance of a set of co-regulated genes. Each gene set is chosen to represent a particular molecular pathway or some other biological process of interest. Gene sets are defined by gene annotation external to the current expression study, for example from Gene Ontology (GO) database ( 52 ) or from previous expression studies. For gene sets defined by previous studies, the genes may optionally be annotated with the direction and magnitude of expression changes in the earlier experiment. In this way, a gene set may contain genes both positively and negatively associated with the molecular pathway that it represents.<anchor xml:id="a68"/></p>
        <p>limma contains a range of options for gene set testing via the goana, geneSetTest, camera, roast and romer functions. The goana function provides a traditional GO overlap analysis but with the added ability to adjust for gene length or abundance biases in RNA-seq DE detection. goana uses generalized hypergeometric tests to test for enrichment of GO terms in the list of differentially expressed genes ( 53 ). It operates directly on the fitted model object and extracts differentially expressed genes automatically.</p>
        <p><anchor xml:id="a69"/>Unlike goana, the other gene set options do not require a significance threshold to be applied to identify differentially expressed genes. The simplest approach is implemented in the geneSetTest and wilcoxGST functions, which perform rank-based tests ( 13 ). These tests assess whether the specified set of genes is more highly ranked in an ordered list of all genes than would be expected by chance. These tests have been found to give an effective ranking of biologically significant pathways ( 54 ), but they implicitly assume that the expression level of each gene is conditionally independent of other genes and hence give optimistic P -values ( 55 ).<anchor xml:id="a70"/></p>
        <p><anchor xml:id="a71"/>More sophisticated competitive tests that take into account dependence between the genes in the linear modelling framework are implemented in the camera function ( 56 ). Camera computes a variance inflation factor from the inter-gene correlation and uses this to adjust the variance of the summary statistics. This avoids optimistic P -values in the test results, but also reduces statistical power. Camera has been used successfully in a number of biomedical projects ( 57 ).<anchor xml:id="a72"/></p>
        <p><anchor xml:id="a73"/>The roast and mroast functions implement a self-contained test of whether any worthwhile subset of the specified set of genes is differentially expressed ( 55 ). These functions use rotation tests, a specialized simulation technique for multivariate normal models ( 58 ). Rotation can be viewed as a smoothed version of permutation that is suitable for linear models. Rotation occurs only in the residual space of the linear model in such a way that any coefficients in the linear model other than the contrast being tested are held constant ( 55 , 58 ). Roast can provide good statistical power in small complex gene expression experiments. Of all gene set tests, roast has the unique ability to take into account directional annotation information about genes in the set. It is able to accommodate genes both positively and negatively associated with a specified pathway, as well as the magnitude of change of each gene. It is therefore especially useful for finding similarities in gene expression patterns between different expression studies ( 57 , 59 – 61 ) (Figure 4C ). Other potential applications for roast include those where the set might not be made up of genes, for example exon-level expression analyses to test whether any exon of a given gene is differentially expressed.<anchor xml:id="a74"/></p>
        <p><anchor xml:id="a75"/>Gene set enrichment analysis (GSEA) is an approach that correlates a large database of co-regulated gene sets with respect to a microarray or RNA-seq data set ( 62 , 63 ). GSEA is a hybrid approach: it is competitive in that different sets are pitted against one another, but significance is evaluated by permutation of sample labels. The romer function in limma implements a GSEA approach that is based on rotation instead of permutation. Like camera and mroast, it can be used with a battery of gene sets and with any linear model. The limma authors maintain mouse and human versions of the Molecular Signatures Database collections ( 64 ) in R binary format that can be conveniently used with camera, mroast or romer ( http://bioinf.wehi.edu.au/software/MSigDB ).<anchor xml:id="a76"/></p>
        <p><anchor xml:id="a77"/>The use of gene sets require that gene symbols and annotation be matched between different databases and studies. Gene symbols change over time, so limma includes the alias2Symbol and alias2SymbolTable functions to map gene symbol aliases to current official gene symbols. The id2indices function matches gene identifiers in a collection of gene sets to those in the expression matrix, in a format suitable for input into camera, mroast or romer.<anchor xml:id="a78"/></p>
        <p>A gene set test can be visualized using the barcodeplot function (Figure 4C ). Genes are ranked according to their DE results in the current study, then genes from the a priori set are highlighted by vertical bars, with a smoother line showing the relative enrichment of the gene set amongst high and low ranked genes. Barcodeplot is similar to the set location plot introduced by Subramanian et al . ( 63 ), with a number of enhancements, especially the ability to incorporate genes with positive and negative prior directions. Barcodeplot can optionally display varying weights for different genes, for example log-fold-changes from a previous experiment.</p>
        <p>User-interface</p>
        <p>Object-oriented programming</p>
        <p><anchor xml:id="a79"/>A simple but appropriate object-oriented paradigm provides users with a consistent analysis interface that is very easy from a user point of view. Many limma functions are generic or operate appropriately on objects of different classes. limma defines a number of classes that have been tailored to handle both microarray and RNA-seq data. The philosophy has been to define simple list-based data objects that can be easily explored and manipulated by users, in the same style as familiar, long-standing core functions in R such as lm and glm.<anchor xml:id="a80"/></p>
        <p><anchor xml:id="a81"/>For raw intensity data, the classes ‘RGList’ and ‘EListRaw’ are used to store two-colour and single-channel data, respectively. These objects are often created using the function read.maimages and contain the raw values from the image analysis output files along with probe annotation information.<anchor xml:id="a82"/></p>
        <p><anchor xml:id="a83"/>Normalized data are stored in ‘MAList’ or ‘EList’ objects. Normalized two-colour data are converted from red and green intensities, R and G , into M and A -values, which hold the log-ratio and average log-intensity values for each spot. Single channel data are background corrected and log 2 transformed and stored in an ‘EList’ object. For RNA-seq data, the voom transformed matrix of gene/exon counts is also stored in an ‘EList’ object.<anchor xml:id="a84"/></p>
        <p><anchor xml:id="a85"/>The next major classes store output from a DE analysis. ‘MArrayLM’ objects store the result of fitting gene-wise linear models to the normalized intensities or log-ratios. Objects of this class are created by the lmFit and eBayes functions. After running decideTests, an object of class ‘TestResults’ stores the results of testing a set of contrasts equal to zero for each probe/gene.<anchor xml:id="a86"/></p>
        <p>All of these data classes obey many analogies with matrices. In the case of ‘RGList’, ‘MAList’, ‘EListRaw’ and ‘EList’, rows correspond to probes/genes and columns to different samples. In the case of ‘MarrayLM’ and ‘TestResults’ rows correspond to unique probes/genes and the columns to linear model coefficients or contrasts. The standard R functions summary, dim, length, ncol, nrow, dimnames, rownames, colnames have methods for each of these classes. Objects of any of these classes may also be subsetted. Multiple data objects may be combined by rows to add extra probes, or by columns to add extra arrays.</p>
        <p><anchor xml:id="a87"/>Furthermore all of these classes may be coerced to be of class matrix using as.matrix, although this entails loss of information. Fitted model objects of class ‘MArrayLM’ can be coerced to class data.frame using as.data.frame in R. The first five classes belong to the virtual class ‘LargeDataObject’ for which a show method is defined to display the leading rows of a large vector, matrix or data.frame.<anchor xml:id="a88"/></p>
        <p>Computational efficiency</p>
        <p><anchor xml:id="a89"/>The limma package is implemented primarily in R ( 65 ) and includes some C code to speed up computationally intensive steps. At every stage, effort has been expended to achieve high numerical reliability and efficiency. The memory requirements are linear in the number of genes and the number of samples. Most estimation procedures finish in a few seconds on a standard desktop computer and virtually all in less than a minute.<anchor xml:id="a90"/></p>
        <p>Availability</p>
        <p><anchor xml:id="a91"/>The limma software is freely available online as part of the Bioconductor project ( http://www.bioconductor.org ). More than 120 other Bioconductor packages make use of limma (as of March 2014). The limma package is used as a building block or as the underlying computational engine by a number of software projects designed to provide user-interfaces for gene expression data analysis including limmaGUI ( 66 ), affylmGUI ( 67 ), WebArray ( 68 ), RACE ( 69 ), CarmaWEB ( 70 ), Goulphar ( 71 ), MAGMA ( 72 ), Asterias ( 73 ), GenePattern ( 74 ), GEO2R ( http://www.ncbi.nlm.nih.gov/geo/geo2r ), the EBI expression atlas ( 75 ), Guide ( 76 ) and Degust ( http://www.vicbioinformatics.com/degust ).<anchor xml:id="a92"/></p>
        <p>Documentation</p>
        <p>The limma package provides three levels of documentation. First, each function has its own documentation page that concisely but completely specifies the input data, options and output format of the function. Similarly, each data class has a documentation page explaining all the required and optional components of objects of that class. Care is taken to adhere to the same standards and style that users will be familiar with from help pages in the base R packages.</p>
        <p>Second, a series of more general subject help pages serve to link together functions and classes that are used for related purposes. The subject pages cover the topics of (i) introduction, (ii) classes, (iii) reading data, (iv) background correction, (v) normalization, (vi) linear models, (vii) individual channel analysis of two-colour data, (viii) hypothesis testing for linear models, (ix) diagnostics and quality assessment, (x) gene set tests and (xi) RNA-seq.</p>
        <p><anchor xml:id="a93"/>Third, the package comes with an extensive user&#x27;s guide of over 120 pages, available from the drop-down menu in Windows or alternatively launched by the limmaUsersGuide command. The user&#x27;s guide gives detailed advice on how to analyse a variety of common study designs. It also includes 10 fully worked case studies for which full data and code are provided.<anchor xml:id="a94"/></p>
        <p>Users who need more help or advice are invited to post questions to the Bioconductor support site ( https://support.bioconductor.org ). Questions are usually answered promptly, either by the authors or by other members of the Bioconductor community. The support site archives answers to many common questions, including many queries about experimental design and setting up appropriate design matrices.</p>
        <p>DISCUSSION</p>
        <p>This article has summarized the current features of the widely used, open source limma package for gene expression analysis. This software provides an integrated data analysis solution, using advanced computational algorithms to deliver reliable performance on large data sets and object-oriented ideas to represent expression data and simplify the user interface. New functionality is continually being added as model refinements and new use cases arise.</p>
        <p><anchor xml:id="a95"/>Although originally developed with microarray data in mind, the development of the voom methodology unlocks the majority of analysis methods for use on RNA-seq data, such as random effects modelling and gene set testing. As with any data analysis problem, the appropriate combination of methods to use will depend upon the biological question, platform used (microarray/RNA-seq) and experimental design.<anchor xml:id="a96"/></p>
        <p><anchor xml:id="a97"/>Being R-based, reports of limma analyses can be compiled using Sweave ( 77 ) or knitr ( 78 ) and provided along with the raw data in a compendium to promote reproducible research in genomics ( 79 ).<anchor xml:id="a98"/></p>
        <p>Applications of limma &#x27;s linear modelling strategy beyond the intended analysis of gene expression data have been made in a variety of applications, including the analysis of data from Nuclear Magnetic Resonance spectroscopy, PCR (including Nanostring), quantitative proteomics ( 80 ), DNA methylation arrays and comparative ChIP-seq ( 81 ).</p>
        <p>As the cost of collecting genome-wide profiles continues to fall, we expect the popularity of this approach to continue to grow, with new applications in the analysis of single cell gene expression data, CRISPR/Cas9 knock-out screens and methylation analysis ( 82 ).</p>
        <p>Acknowledgments</p>
        <p>We are grateful to our colleagues who have been actively involved in the limma project over the years, including James Wettenhall, Jeremy Silver, Davis McCarthy, Natalie Thorne, Aaron Lun, Alicia Oshlack, Ken Simpson, Yang Liao, Yunshun Chen and Carolyn de Graaf. The basic design of the RGList and MAList classes for two-colour microarrays was based on similar objects defined by the sma package written by Yee-Hwa (Jean) Yang. The limma package has benefited from many other people, too many to list here, who have made suggestions, reported bugs or contributed code.</p>
        <p>FUNDING</p>
        <p>National Health and Medical Research Council (NHMRC) Project Grant [1050661 to M.E.R., G.K.S.; 1023454 to G.K.S., M.E.R., W.S.]; NHMRC Program Grant [1054618 to G.K.S.]; Victorian State Government Operational Infrastructure Support and Australian Government NHMRC IRIISS. Funding for open access charge: NHMRC Program Grant 1054618.</p>
        <p>Conflict of interest statement . None declared.</p>
        <p>REFERENCES<anchor xml:id="a99"/></p>
    </body>
  </text>
</TEI>
