Getting started with BindCurve
Installation
bindcurve
is installed from pip using
pip install bindcurve
If you want to upgrade to the latest version, use
--upgrade bindcurve pip install
Basic usage
bindcurve
contains functions that are executed directly on Pandas DataFrames, which are used to store the data. The following example demonstrates the most basic usage. See the tutorials for more instructions and examples.
Fitting
# Import bindcurve
import bindcurve as bc
# Load data from csv file
= bc.load_csv("path/to/your/file.csv")
input_data
# This DataFrame will now contain preprocessed input data
print(input_data)
# Fit IC50 from your data
= bc.fit_50(input_data, model="IC50")
IC50_results print(IC50_results)
# Fit Kd from your data
= bc.fit_Kd_competition(input_data, model="comp_3st_specific", RT=0.05, LsT=0.005, Kds=0.0245)
Kd_results print(Kd_results)
Plotting curves
# Import matplotlib
import matplotlib.pyplot as plt
# Initiate the plot
=(6, 5))
plt.figure(figsize
# Plot your curves from the IC50_results dataframe
bc.plot(input_data, IC50_results)
# Just use matplotlib to set up and show the plot
"your x label")
plt.xlabel("your y label")
plt.ylabel("log")
plt.xscale(
plt.legend() plt.show()