You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using reComBat to remove batch effect from my RNAseq data. My matrix contains zero values for many genes that are not expressed in samples.
This cause an issue of division by zero at the fit_linear_model step 'RuntimeWarning: divide by zero encountered in divide
Z = (data.values.copy() - np.matmul(Covariates[:, num_batches:num_batches+X_covariates_dim], self.beta_x_)'.
When I replace zero values in my matrix by 0.0001 for example, it works without issue.
But its normal in RNAseq matrices to have zero values. Is there an alternative from replacing zero values to not have this error?
Thanks a lot
The text was updated successfully, but these errors were encountered:
Hello,
I am using reComBat to remove batch effect from my RNAseq data. My matrix contains zero values for many genes that are not expressed in samples.
This cause an issue of division by zero at the fit_linear_model step 'RuntimeWarning: divide by zero encountered in divide
Z = (data.values.copy() - np.matmul(Covariates[:, num_batches:num_batches+X_covariates_dim], self.beta_x_)'.
When I replace zero values in my matrix by 0.0001 for example, it works without issue.
But its normal in RNAseq matrices to have zero values. Is there an alternative from replacing zero values to not have this error?
Thanks a lot
The text was updated successfully, but these errors were encountered: