Changes between Version 32 and Version 33 of SOPs/rna-seq-diff-expressions


Ignore:
Timestamp:
09/20/16 11:50:45 (8 years ago)
Author:
thiruvil
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/rna-seq-diff-expressions

    v32 v33  
    139139  Sample R code for reducing the date effect (old vs. new) is
    140140
    141  {{{
     141    {{{
    142142        target   <- read.delim("target.txt", header=T)
    143143        genotype <- factor(target$genotype, levels=c("WT", "KO"))
     
    153153        Fit <- glmFit(Y2, Design)
    154154        Lrt <- glmLRT(Fit, coef="genotypeKO") # where 'coef' points to the column name in 'Design'
    155  }}}
     155    }}}
    156156
    157157  The data structure Lrt$table contains the values for log2FC (log 2 fold change) and p-value.
     
    159159  Detailed information can be found in the [[http://www.bioconductor.org/packages/release/bioc/vignettes/edgeR/inst/doc/edgeRUsersGuide.pdf|edgeR User Guide]] (after a search for "batch effects").
    160160
     161    * To print out batch-effect corrected CPM values, a possible option is outlined in this following SEQanswers post, [[http://seqanswers.com/forums/showthread.php?t=26923 | EdgeR cpm values after batch effects]], reply from Gordon Smyth,
     162    {{{
     163    cpm.out=cpm(my.DGEList)
     164    logCPM <- removeBatchEffect(cpm.out, batch=batch)  #where batch is based on your design
     165    }}}
    161166
    162167 * **Other**