added TASK at the beginning of the scripts
This commit is contained in:
parent
8033c1785f
commit
a4d305d44b
3 changed files with 37 additions and 2 deletions
|
@ -3,6 +3,16 @@ getwd()
|
||||||
setwd("~/git/mosaic_2020/")
|
setwd("~/git/mosaic_2020/")
|
||||||
getwd()
|
getwd()
|
||||||
###############################################################
|
###############################################################
|
||||||
|
# TASK: boxplots with stats for NPA, SAM and SERUM
|
||||||
|
# for each mediator, at each timepoint by group
|
||||||
|
|
||||||
|
# TODO: check boxplot_stat_function.R
|
||||||
|
# output plots even if stats fail due to data containing only LLODs
|
||||||
|
# however for a given mediator, if there is error for ANY timepoint
|
||||||
|
# stats will not be added for the entire plot! To be handled in
|
||||||
|
# next iteration!
|
||||||
|
###############################################################
|
||||||
|
|
||||||
#=============
|
#=============
|
||||||
# Input
|
# Input
|
||||||
#=============
|
#=============
|
||||||
|
|
|
@ -3,7 +3,22 @@ getwd()
|
||||||
setwd("~/git/mosaic_2020/")
|
setwd("~/git/mosaic_2020/")
|
||||||
getwd()
|
getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# TASK: boxplots with stats
|
# TASK: Boxplots with stats
|
||||||
|
# for each mediator, at each timepoint by group
|
||||||
|
|
||||||
|
# Handles some error: i.e will continue plotting even if there
|
||||||
|
# is stats error. However, needs fixing see below point 1):
|
||||||
|
|
||||||
|
# FIXME:
|
||||||
|
# 1) For a given mediator, if there is error for ANY timepoint
|
||||||
|
# stats will not be added for the entire plot!
|
||||||
|
|
||||||
|
# 2) make the function more generic to take the following inputs
|
||||||
|
# df, column, group
|
||||||
|
# this way you can directly pass the log_calculated value column
|
||||||
|
|
||||||
|
# To be handled in
|
||||||
|
# next iteration!
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
is.error <- function(x) inherits(x, "try-error")
|
is.error <- function(x) inherits(x, "try-error")
|
||||||
|
|
|
@ -3,11 +3,21 @@ getwd()
|
||||||
setwd("~/git/mosaic_2020/")
|
setwd("~/git/mosaic_2020/")
|
||||||
getwd()
|
getwd()
|
||||||
###############################################################
|
###############################################################
|
||||||
|
# TASK: boxplots with stats for NPA, SAM and SERUM but with log scale
|
||||||
|
# for each mediator, at each timepoint, by group
|
||||||
|
|
||||||
|
# TODO: check boxplot_stat_function.R
|
||||||
|
# output plots even if stats fail due to data containing only LLODs
|
||||||
|
# however for a given mediator, if there is error for ANY timepoint
|
||||||
|
# stats will not be added for the entire plot! To be handled in
|
||||||
|
# next iteration!
|
||||||
|
###############################################################
|
||||||
|
|
||||||
#=============
|
#=============
|
||||||
# Input
|
# Input
|
||||||
#=============
|
#=============
|
||||||
source("boxplot_stat_function.R")
|
source("boxplot_stat_function.R")
|
||||||
source("boxplot_function.R")
|
#source("boxplot_function.R") for sam
|
||||||
source("plot_data.R")
|
source("plot_data.R")
|
||||||
|
|
||||||
#=============
|
#=============
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue