Hi there,
I'm using the code from CytofBatchAdjust and a number of other batch alignment tools in our Spectre package. We use this for the analysis of a variety of cytometry data, including flow. One feature of CytofBatchAdjust that I have noticed is the values below zero are clipped at zero (see attached image, Y axis = pre-aligned, X axis = post-aligned to 95th percentile), presumably because this code is intended for use with CyTOF data (where all the values are zero or above). In our workflow I have some workaround options, such as rescaling the data in each channel between 0 and 1, but it might be advantageous to allow for the code to handle negative values, so that it could be used direct with flow data as well.

Hi there,
I'm using the code from CytofBatchAdjust and a number of other batch alignment tools in our Spectre package. We use this for the analysis of a variety of cytometry data, including flow. One feature of CytofBatchAdjust that I have noticed is the values below zero are clipped at zero (see attached image, Y axis = pre-aligned, X axis = post-aligned to 95th percentile), presumably because this code is intended for use with CyTOF data (where all the values are zero or above). In our workflow I have some workaround options, such as rescaling the data in each channel between 0 and 1, but it might be advantageous to allow for the code to handle negative values, so that it could be used direct with flow data as well.