plot2dTppFit: Plot H0 or H1 fit of 2D thermal profile intensities of a...

Description Usage Arguments Value Examples

View source: R/plot_funcs.R

Description

Plot H0 or H1 fit of 2D thermal profile intensities of a protein of choice

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot2dTppFit(
  df,
  name,
  model_type = "H0",
  optim_fun = .min_RSS_h0,
  optim_fun_2 = NULL,
  maxit = 500,
  xlab = "-log10(conc.)",
  ylab = "log2(summed intensities)"
)

Arguments

df

tidy data frame of a 2D-TPP dataset

name

gene name (clustername) of protein that should be visualized

model_type

character string indicating whether the "H0" or the "H1" model should be fitted

optim_fun

optimization function that should be used for fitting either the H0 or H1 model

optim_fun_2

optional additional optimization function that will be run with paramters retrieved from optim_fun and should be used for fitting the H1 model with the trimmed sum model, default is NULL

maxit

maximal number of iterations the optimization should be given, default is set to 500

xlab

character string of x-axis label of plot

ylab

character string of y-axis label of plot

Value

A ggplot displaying the thermal profile of a protein of choice in a datset of choice

Examples

1
2
data("simulated_cell_extract_df")
plot2dTppProfile(simulated_cell_extract_df, "protein1")

TPP2D documentation built on Nov. 8, 2020, 4:54 p.m.