Description Usage Arguments Value Examples
Functions to log transform raw data before normalization and batch correction
Log transformation of the data
"Unlog" transformation of the data to pre-log form (for quantification, forcing log-transform)
1 2 3 4 5 6 7 | log_transform_df(df_long, log_base = 2, offset = 1, measure_col = "Intensity")
unlog_df(df_long, log_base = 2, offset = 1, measure_col = "Intensity")
log_transform_dm(data_matrix, log_base = 2, offset = 1)
unlog_dm(data_matrix, log_base = 2, offset = 1)
|
df_long |
data frame where each row is a single feature in a single
sample. It minimally has a |
log_base |
base of the logarithm for transformation |
offset |
small positive number to prevent 0 conversion to |
measure_col |
if |
data_matrix |
features (in rows) vs samples (in columns) matrix, with
feature IDs in rownames and file/sample names as colnames.
See "example_proteome_matrix" for more details (to call the description,
use |
'log_transform_df()' returns df_long
-size data frame, with
measure_col
log transformed; with old value in another column
called "beforeLog_intensity" if "intensity" was the value of
measure_col
;
'log_transform_dm()' returns data_matrix
format matrix
1 2 3 4 | log_transformed_df <- log_transform_df(example_proteome)
log_transformed_matrix <- log_transform_dm(example_proteome_matrix,
log_base = 10, offset = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.