By including Batch in the ANOVA model, the variability due to the batch effect is accounted for when calculating p-values for the non-random factors. In effect, the batch effect has already been removed. However, visualizing biological effects using tools like PCA and clustering can be very difficult if batch effects are present. We can modify the original intensity data to remove the batch effect using the Remove Batch Effect tool. 

The Remove Batch Effect tool functions much like ANOVA in reverse, calculating the variation attributed to the effect being removed then adjusting the original intensity values to remove the effect. Once the effect has been removed, tools like PCA or clustering can be used to visualize what the data would look like if the batch effect was not present. 

The Remove Batch Effects dialog will open. The tool functions by performing an ANOVA then modifying the original intensities values to remove the effects of the specified factor(s).  

By default, the results will be displayed in a new spreadsheet. Options to overwrite the current spreadsheet and specify the output file appear in the bottom of the dialog (Figure 2).

 

 

The new spreadsheet, 1-removeresult (batch-remove) will open in the Analysis tab (Figure 3).

We can visualize the effects of removing the batch effects by plotting a PCA scatter plot.

 

 

The centroids of the two batches overlap, showing that the batch effect has been removed (Figure 5).