code to perform PCA and visualize for batch effects, to check if there is a need to transpose the matrix before the PCA when testing codes