![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ASCII offset | Bakhtiyar Taghizada | Illumina/Solexa | 4 | 03-11-2014 08:53 AM |
Trimmomatic - default settings? | Zapages | Bioinformatics | 1 | 01-04-2014 07:39 AM |
"Offset" in the correlation between two ChIP-seq biological replicates | inesdesantiago | Bioinformatics | 8 | 02-27-2013 09:20 AM |
edgeR separate offset values/normalizations for each tag | sruddy | RNA Sequencing | 1 | 07-08-2011 04:59 PM |
bwa aln fred score offset | offsetoff | Bioinformatics | 1 | 06-14-2011 03:14 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Canada Join Date: Aug 2014
Posts: 9
|
![]()
Greetings R aficionados!
I was wondering whether anyone could tell me what the default offset is that is used in the glmFit function of EdgeR? Is it either the library size, or lib.size*norm.factor(from calcNormFactors)? Thanks for the help! |
![]() |
![]() |
![]() |
#2 |
Devon Ryan
Location: Freiburg, Germany Join Date: Jul 2011
Posts: 3,480
|
![]()
From the source code:
Code:
# Check offset and lib.size if(is.null(offset)) { if(is.null(lib.size)) lib.size <- colSums(y) offset <- log(lib.size) } |
![]() |
![]() |
![]() |
#3 |
Member
Location: Melbourne, Australia Join Date: Apr 2011
Posts: 91
|
![]()
If y is a matrix, then offset defaults to log(lib.size).
If y is a DGEList, then offset defaults to y$offset if that is set, otherwise to log(lib.size*norm.factors). See getOffset. In other words, it defaults to whatever can be found in y. |
![]() |
![]() |
![]() |
#4 |
Junior Member
Location: Canada Join Date: Aug 2014
Posts: 9
|
![]()
Thank you!
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|