The function first identifies the location of negative values. It then performs the log transformation on the absolute values of the vector. Lastly it returns originally negative values to negative values This is done as log transformation does not work on negative values, therefore a work around had to be done.
This function is intended to be used within custom_heatmap_wrapper
log_transform_l2fc_vect(l2fc_vector)
The log transformed vector
TS_object<-create_example_object_for_R()
TS_object <- normalize_timeSeries_with_deseq2(time_object=TS_object)
#> converting counts to integer mode
#Perform conditional differential gene expression analysis
TS_object<-conditional_DE_wrapper(TS_object,vignette_run=TRUE)
heat_dta<-create_conditional_heatmap_matrix(TS_object)
heat_dta<-prepare_heat_data(heat_dta,log_transform=TRUE)
log_l2fc<-log_transform_l2fc_vect(heat_dta[['l2fc_vector']])