An R-package for fitting binding kinetics data using the bivalent analyte model.
This repository contains the necessary files to execute the first version of bivalent analyte model developed by Nguyen et al.
Please cite the following when implementing this depository: Nguyen, K., Li, K., McCarthy, J., & Dennison, S. M. Bivalent Analyte Model Package (Version 1.0) [Computer software]. https://github.com/DukeCHSI/Bivalent-Analyte-Modeling
Alternatively, cite: Kyle Nguyen, Kan Li, Kevin Flores, Georgia D. Tomaras, S. Moses Dennison, Janice M. McCarthy. Parameter estimation and identifiability analysis for a bivalent analyte model of monoclonal antibody-antigen binding. bioRxiv 2022.12.05.519088; doi: https://doi.org/10.1101/2022.12.05.519088
This package provides the ability to analyze bivalent analyte binding data collected on a high throughput SPR platform, such as Carterra LSA. The package sequentially analyzes each individual sensorgram and generates report-ready style fitted sensorgrams and parameter estimates.
The depository comprises of two main folders:
This folder should contain two important files:
- <...> - info sheet.csv: this csv file is an info sheet file that has the information about the data sets.
- The package can handle these options:
- Regeneration:
Regen. = N
(default): NO regenerative titration.Regen. = Y
: regenerative titration.
- Global or local Rmax:
Global Rmax = N
(default): local Rmax, fit Rmax separately.Global Rmax = Y
: global Rmax, only fit one Rmax for each sensorgram.
- Second rebinding:
Sec. Rebinding = N
(default): assume that the second arms cannot rebind during dissociation phase.Sec. Rebinding = Y
: assume that the second arms can rebind during dissociation phase.
- Regeneration:
- Other notes:
Bulkshift
: is currently not implemented in this package.Model
: this option was included to enable future package that could handle different models including the 1:1 model, the bivalent analyte model and more. However, it was developed on parallel with a 1:1 binding model package. The implementation to handle other models have been removed here.Refractive index
: the current version can handle refractive index. However, it is not an available option in the info sheet. If the user want to use refractive index, they could add another column calledRefractive index
to the info sheet file (.csv). Then, go to ode_function.R and change line 128 to:- use_RI <- sample_info[well_idx,]$
Refractive index
- use_RI <- sample_info[well_idx,]$
- <...> - downselected rawdata.xlsx: this xlsx file is an output file has the Time and Response Unit data values.
This folder should contain .R
files and subfolders
In this folder:
- helper_functions.R contains most of the non-ODE related functions for data processing, data plotting.
- ode_functions.R contains ODE-related functions for solving the bivalent analyte model and plotting the results.
- main.R is the main script to run bivalent analyte fitting.
- fitting_results/ is the folder that contains fitting result files (
.Rdata
). - figures/ contains the figure files
To start the bivalent analyte model fitting:
- Make sure your info sheet and output files have the same format as the provided example files.
- Run the script main.R.
- The script will ask to set the working directory. Choose the code/ as your working directory.
- The script will ask for the info sheet file.
- The script will ask for the output file.
After fitting running,
- The fitting results are saved in an
.Rdata
file within fitting_results/. - The fitting figures and sensorgrams are saved in figures/bivalent/.
There are certain requirements of formatting for this package. If you run into problems,
- In the info sheet file (.csv), make sure the numbers in
Block/Chip/Tray
are separated by semicolon (;
). - In the output file (.xlsx), make sure there are 3 header rows. One possible option is to copy and inserted the header rows from the provided output file to your own output file.
- In the info sheet file (.csv), make sure you have two columns
Sec. Rebinding
andModel
.
Version 1.0: initial release
If you need help or have suggestions, feel free to communicate through GitHub Discussions or contact one or more of the following:
- Kyle Nguyen: [email protected]
- Kan Li: [email protected]
- Janice M. McCarthy: [email protected]
Code was developed by Kyle Nguyen and Janice M. McCarthy. Other contributors to code development include Kan Li and S. Moses Dennison ([email protected]).
This project is licensed under the CC-BY-4.0 license. Please see LICENSE.md file for details.