Remove the average of the genes of the reference observations from all observations' expression. In the case there are multiple reference groupings, the averages are computed separately for each reference grouping, and the min|max of the averages are subtracted from the observation expression levels. Any values within the range of the min,max of the group are set to zero.
subtract_ref_expr_from_obs(infercnv_obj, inv_log = FALSE)
infercnv_object
mean values will be determined based on (2^x -1)
infercnv_obj containing the reference subtracted values.
Subtracting the mean of the reference expr distributions from the observed cells.