Skip to content

R-package for fitting high throughput bivalent analyte binding kinetics data

License

Notifications You must be signed in to change notification settings

DukeCHSI/Bivalent-Analyte-Modeling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bivalent analyte package

An R-package for fitting binding kinetics data using the bivalent analyte model.

Overview

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

Description

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.

Folder Structure

The depository comprises of two main folders:

data/

This folder should contain two important files:

  1. <...> - 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.
  • 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 called Refractive 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
  1. <...> - downselected rawdata.xlsx: this xlsx file is an output file has the Time and Response Unit data values.

code/

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

Guide

Start guide

To start the bivalent analyte model fitting:

  1. Make sure your info sheet and output files have the same format as the provided example files.
  2. Run the script main.R.
  3. The script will ask to set the working directory. Choose the code/ as your working directory.
  4. The script will ask for the info sheet file.
  5. The script will ask for the output file.

Results

After fitting running,

  1. The fitting results are saved in an .Rdata file within fitting_results/.
  2. The fitting figures and sensorgrams are saved in figures/bivalent/.

Troubleshooting

There are certain requirements of formatting for this package. If you run into problems,

  1. In the info sheet file (.csv), make sure the numbers in Block/Chip/Tray are separated by semicolon (;).
  2. 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.
  3. In the info sheet file (.csv), make sure you have two columns Sec. Rebinding and Model.

Version history

Version 1.0: initial release

Help

If you need help or have suggestions, feel free to communicate through GitHub Discussions or contact one or more of the following:

  1. Kyle Nguyen: [email protected]
  2. Kan Li: [email protected]
  3. Janice M. McCarthy: [email protected]

Author

Code was developed by Kyle Nguyen and Janice M. McCarthy. Other contributors to code development include Kan Li and S. Moses Dennison ([email protected]).

License

This project is licensed under the CC-BY-4.0 license. Please see LICENSE.md file for details.

DOI

About

R-package for fitting high throughput bivalent analyte binding kinetics data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages