how to incorporate count bias in Goseq
1
0
Entering edit mode
assaf www ▴ 140
@assaf-www-6709
Last seen 5.4 years ago

Dear goseq developers and all,

Following the question here
GOseq: count bias correction variations?
The code in Goseq manual says:

countbias=rowSums(counts)[rowSums(counts)!=0]
pwf.counts=nullp(genes,bias.data=countbias)

It appears the input to nullp should be the sum of the raw read counts per-gene, without any normalization. Is this is correct ?

thanks,
Assaf

 

 

goseq edgeR • 1.2k views
ADD COMMENT
0
Entering edit mode
@anthonyhawkins-9616
Last seen 8.7 years ago

Hi Assaf,

This is up to the user as to how they wish to proceed. Typically the bias data which one provides to the nullp function is the gene length (as this is the bias we are most keen to correct for). But sometimes you want to correct for other biases, counts bias (the number of counts a gene receieves is effectively the product of both gene length and gene expression). 

One could input the normalised counts (normalised for library size) as the bias data, thereby eliminating the effect of that bias beforehand, and obtain weights for counts bias. Then one would need to use the sample bias and the count bias weights.  Alternatively one could use the raw counts to obtain the bias data, which would then effectively include sample bias as well. The weights would be different (depending on how large the sample bias was).

Both approaches are reasonable, it is up to you to decide how and which biases you which to control for with the pwf. I think raw counts are usually better, more intuitive. My suggestion would be to try both methods and have a check which method gives the greater bias from the pwf plot and use that one.

Hope that helps,

Anthony

ADD COMMENT
0
Entering edit mode

Thanks a lot,
It's not so clear from the manual though, but if so then best option would be to choose any gene parameter with the highest correlation with the DE proportion, as long as such parameter is technical (does not represent true biological factor).

Assaf

ADD REPLY

Login before adding your answer.

Traffic: 666 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6