log2fold_to_fold | R Documentation |
Convert log2 fold change to signed fold change
log2fold_to_fold(x, ...)
x |
|
This function takes log2 fold change values as input, and returns normal space fold change values that retain the positive and negative sign, and the magnitude.
For example:
log2 fold change = 2
becomes fold change = 4
.
log2 fold change = -2
becomes fold change = -4
.
This function therefore differs from similar functions that convert
log2 fold change into a ratio. Instead, log2fold_to_fold()
specifically retains the magnitude of negative changes.
numeric
vector representing signed fold change values.
Other jamses utilities:
choose_annotation_colnames()
,
contrast2comp_dev()
,
fold_to_log2fold()
,
intercalate()
,
list2im_opt()
,
make_block_arrow_polygon()
,
mark_stat_hits()
,
matrix_normalize()
,
point_handedness()
,
point_slope_intercept()
,
shortest_unique_abbreviation()
,
shrinkDataFrame()
,
shrink_df()
,
shrink_matrix()
,
sort_samples()
,
strsplitOrdered()
,
sub_split_vector()
,
update_function_params()
,
update_list_elements()
x <- c(-3, -2, -1, 0, 1, 2, 3);
fc <- log2fold_to_fold(x);
fc;
fold_to_log2fold(fc);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.