Hi! I need to calculate LogFC for gene expression matrix (for two condition). First I calculated fold change:
FC = mean(experiment) / mean(control)
Taking into consideration that I firstly standardized gene expression matrix, so I have mean values less than 0. So how can I calculate log2? To be sure, LogFC is calculated in this way:
log2FC = log2(experiment.mean()) - math.log2(control.mean())
I can not take log2 form number less than 0. Kindly help.