-
Notifications
You must be signed in to change notification settings - Fork 2
/
0.5-user_inputs.R
33 lines (21 loc) · 1.55 KB
/
0.5-user_inputs.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 0.5-user_inputs.R
# Moving all the userinputs to run_single_plate.R and run_kinetic_reads.R here so those scripts remain static across expts
# User inputs ----
# User inputs: 1. Enter name of the excel file, 2. Name of the data sheet(S)
# 3. number of rows and columns in plate reader data 4. Title for plots
# Note: (file name starts in the previous directory of this Rproject)
# Note: The script only works for SPARK files where OD, metadata next to it, and optionally any fluorescence below it are read
flnm <- 'S070_S071_d0_13-April-23'
# Specify the name of the sheet or 'default' (1st sheet) or n (to read the first n sheets)
sheet_name <- 2 #'default' # 'default' reads the first sheet (for single plate runs only) ; n (no quotes) reads the first n sheets
# for single plate runs only (I think, need to check)
baseline_sample_to_subtract <- 'MG1655|DH10B|MFDpir|NEB10b|PBS' # Add baseline cell name(s) here
# Fluorescence from samples matching this name will be subtracted from all values (baseline)
# should I divide the signal by molecular equivalent fluorophores?
do_MEFL_normalization <- F # TRUE by default, unless you want to turn off
# should I run the dose response pipeline (only works if `Inducer` column is present)
run_dose_response_pipeline <- F # FALSE by default ; the pipeline is work in progress
# Calculation ----
date_regex <- '[:digit:]*-[:digit:]*-[:digit:]*' # Date regex
# title_name : appears on the html file name and header of selected plots, change as required
title_name <- stringr::str_remove(flnm, stringr::str_c("_", date_regex))