Logfold change
1
0
Entering edit mode
22 months ago

I have three categories of data and each category has two samples. How can I calculate the log fold change for this data?

Thanks in advance for your help

Kumar Ajneesh

Log-fold-change • 894 views
ADD COMMENT
0
Entering edit mode

What "data"? It matters, and at best there is a tool that does elaborate stats under the hood while for the end user it is running some one-liners.

ADD REPLY
1
Entering edit mode
22 months ago

mean(log2(group1 samples)) - mean(log2(group2 samples))

Repeat as needed for whatever comparisons. As noted by rpolicastro, add pseudocounts to each value if any of the means are zero.

ADD COMMENT
1
Entering edit mode

If any of the means are 0 you should add a pseudocount to all values too.

ADD REPLY
1
Entering edit mode

That is not the log fold calculation used by any popular software tools that I know of. For microarrays, PCR or mass spec, replicate expression values would be logged before averaging. For sequencing data, the log fold change calculation would be more complicated and would need to take account of library sizes and count sizes.

ADD REPLY
0
Entering edit mode

Good points. I've edited my answer to address the first.

ADD REPLY

Login before adding your answer.

Traffic: 1617 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