I am trying to find log2foldchange between 2 numpy arrays and then find standard deviation of log2foldchange. Here is the formula which I am applying
import numpy as np l2fc = np.log2(np.nan_to_num(np.divide(a, b)))
a and b are example arrays. After applying the formula l2fc array is filled with -inf and inf values. Can anyone please guide me?