
Check if RNAseq Expression Data is Log2-Transformed
int_check_log2_transformation.RdThis function checks whether the values in an RNAseq expression data frame have been log2-transformed. It performs multiple checks, including the range of values, the presence of zeros, and the presence of negative values, to provide a robust assessment.
Details
The function uses the following criteria to determine if the data is log2-transformed:
If the maximum value exceeds 20, the data is likely not log2-transformed.
If the minimum value is less than -5, the data is likely not log2-transformed.
If the data contains zeros, it may be log2-transformed but without pseudocounts.
If the range and distribution of values are consistent with log2-transformed data, the function concludes that the data is likely log2-transformed.