Changes between Version 32 and Version 33 of SOPs/rna-seq-diff-expressions
- Timestamp:
- 09/20/16 11:50:45 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/rna-seq-diff-expressions
v32 v33 139 139 Sample R code for reducing the date effect (old vs. new) is 140 140 141 {{{141 {{{ 142 142 target <- read.delim("target.txt", header=T) 143 143 genotype <- factor(target$genotype, levels=c("WT", "KO")) … … 153 153 Fit <- glmFit(Y2, Design) 154 154 Lrt <- glmLRT(Fit, coef="genotypeKO") # where 'coef' points to the column name in 'Design' 155 }}}155 }}} 156 156 157 157 The data structure Lrt$table contains the values for log2FC (log 2 fold change) and p-value. … … 159 159 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"). 160 160 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 }}} 161 166 162 167 * **Other**