I am trying to calculate the Z-score for several columns with Log fold change (LFC) data from RNA-seq expression values. But the mean for all columns, except one of them, is -inf and the standard deviation is NaN. The reason might be "#NAME?" in different columns which was not available in the column that the mean and std values could be calculated correctly. I have 22269 gene and LFC values for them in each column.
Somehow, I found the answer but not completely. Some of expression values in treated cells are equal to zero. So, When I want to calculate the LFC, the values would be 0 or -1 (based on the two formula you choose for calculation of LFC ( first- (b-a)/a or second- (b/a) when b is treated and a is control)). Accordingly, the log2(0) and/or log2(-1) is not meaningful. So, it cause a "#NAME?" in excel file. Now the question is: Shall I replace all #NAME? with zero to calculate the Z-score?
Thank you in advance....