Python codes to log transform your columns

log-transform, python

Load the required packages

Load your .csv file, assign first column as index

Log2-transform column labelled as ratio_X, and make new column labelled log2FC_X with the transformed values

-log transform column labelled as pval_X, and make new column labelled neg_logP_X with the transformed values

YOU CAN ALSO FIND ME ON