bindcurve 0.1.0a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. bindcurve-0.1.0a1/.gitignore +3 -0
  2. bindcurve-0.1.0a1/PKG-INFO +9 -0
  3. bindcurve-0.1.0a1/README.md +67 -0
  4. bindcurve-0.1.0a1/bindcurve/__init__.py +7 -0
  5. bindcurve-0.1.0a1/bindcurve/calculate.py +639 -0
  6. bindcurve-0.1.0a1/bindcurve/data.py +829 -0
  7. bindcurve-0.1.0a1/bindcurve/models.py +369 -0
  8. bindcurve-0.1.0a1/bindcurve/models_other.py +100 -0
  9. bindcurve-0.1.0a1/bindcurve.egg-info/PKG-INFO +9 -0
  10. bindcurve-0.1.0a1/bindcurve.egg-info/SOURCES.txt +134 -0
  11. bindcurve-0.1.0a1/bindcurve.egg-info/dependency_links.txt +1 -0
  12. bindcurve-0.1.0a1/bindcurve.egg-info/requires.txt +4 -0
  13. bindcurve-0.1.0a1/bindcurve.egg-info/top_level.txt +1 -0
  14. bindcurve-0.1.0a1/docs/.gitignore +1 -0
  15. bindcurve-0.1.0a1/docs/_quarto.yml +94 -0
  16. bindcurve-0.1.0a1/docs/_site/about.html +567 -0
  17. bindcurve-0.1.0a1/docs/_site/api.html +715 -0
  18. bindcurve-0.1.0a1/docs/_site/images/competitive_3st.svg +58 -0
  19. bindcurve-0.1.0a1/docs/_site/images/competitive_3st_frame.svg +65 -0
  20. bindcurve-0.1.0a1/docs/_site/images/competitive_4st.svg +82 -0
  21. bindcurve-0.1.0a1/docs/_site/images/competitive_4st_frame.svg +89 -0
  22. bindcurve-0.1.0a1/docs/_site/images/direct.eps +477 -0
  23. bindcurve-0.1.0a1/docs/_site/images/direct.png +0 -0
  24. bindcurve-0.1.0a1/docs/_site/images/direct.svg +28 -0
  25. bindcurve-0.1.0a1/docs/_site/images/direct_frame.svg +35 -0
  26. bindcurve-0.1.0a1/docs/_site/images/input_format/input_format.png +0 -0
  27. bindcurve-0.1.0a1/docs/_site/images/input_format/input_format.svg +1 -0
  28. bindcurve-0.1.0a1/docs/_site/index.html +677 -0
  29. bindcurve-0.1.0a1/docs/_site/input_format.html +715 -0
  30. bindcurve-0.1.0a1/docs/_site/interactive.html +679 -0
  31. bindcurve-0.1.0a1/docs/_site/interactive_function_plot.html +758 -0
  32. bindcurve-0.1.0a1/docs/_site/models.html +1017 -0
  33. bindcurve-0.1.0a1/docs/_site/models_files/figure-html/cell-2-output-1.png +0 -0
  34. bindcurve-0.1.0a1/docs/_site/models_files/figure-html/cell-4-output-1.png +0 -0
  35. bindcurve-0.1.0a1/docs/_site/reference/convert.html +856 -0
  36. bindcurve-0.1.0a1/docs/_site/reference/fit_50.html +844 -0
  37. bindcurve-0.1.0a1/docs/_site/reference/fit_Kd_competition.html +865 -0
  38. bindcurve-0.1.0a1/docs/_site/reference/fit_Kd_direct.html +851 -0
  39. bindcurve-0.1.0a1/docs/_site/reference/get_object.html +835 -0
  40. bindcurve-0.1.0a1/docs/_site/reference/index.html +781 -0
  41. bindcurve-0.1.0a1/docs/_site/reference/jointplot.html +763 -0
  42. bindcurve-0.1.0a1/docs/_site/reference/load_csv.html +804 -0
  43. bindcurve-0.1.0a1/docs/_site/reference/load_df.html +804 -0
  44. bindcurve-0.1.0a1/docs/_site/reference/plot.html +929 -0
  45. bindcurve-0.1.0a1/docs/_site/reference/plot_asymptotes.html +817 -0
  46. bindcurve-0.1.0a1/docs/_site/reference/plot_grid.html +1013 -0
  47. bindcurve-0.1.0a1/docs/_site/reference/plot_traces.html +838 -0
  48. bindcurve-0.1.0a1/docs/_site/reference/plot_value.html +859 -0
  49. bindcurve-0.1.0a1/docs/_site/reference/preview.html +755 -0
  50. bindcurve-0.1.0a1/docs/_site/reference/report.html +799 -0
  51. bindcurve-0.1.0a1/docs/_site/search.json +738 -0
  52. bindcurve-0.1.0a1/docs/_site/site_libs/bootstrap/bootstrap-icons.css +2078 -0
  53. bindcurve-0.1.0a1/docs/_site/site_libs/bootstrap/bootstrap-icons.woff +0 -0
  54. bindcurve-0.1.0a1/docs/_site/site_libs/bootstrap/bootstrap.min.css +12 -0
  55. bindcurve-0.1.0a1/docs/_site/site_libs/bootstrap/bootstrap.min.js +7 -0
  56. bindcurve-0.1.0a1/docs/_site/site_libs/clipboard/clipboard.min.js +7 -0
  57. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/components.js +929 -0
  58. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/datatables.min.css +28 -0
  59. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/datatables.min.js +81 -0
  60. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/pdfmake.min.js +3 -0
  61. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/quarto-dashboard.js +291 -0
  62. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/stickythead.js +2 -0
  63. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/vfs_fonts.js +6 -0
  64. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-dashboard/web-components.js +1845 -0
  65. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/anchor.min.js +9 -0
  66. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/light-border.css +1 -0
  67. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/popper.min.js +6 -0
  68. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/quarto-html.min.css +8 -0
  69. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/quarto-syntax-highlighting-dark.css +196 -0
  70. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/quarto-syntax-highlighting.css +205 -0
  71. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/quarto.js +908 -0
  72. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/tabby.min.js +418 -0
  73. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/tippy.css +1 -0
  74. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-html/tippy.umd.min.js +2 -0
  75. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-nav/headroom.min.js +7 -0
  76. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-nav/quarto-nav.js +325 -0
  77. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-search/autocomplete.umd.js +3 -0
  78. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-search/fuse.min.js +9 -0
  79. bindcurve-0.1.0a1/docs/_site/site_libs/quarto-search/quarto-search.js +1290 -0
  80. bindcurve-0.1.0a1/docs/_site/styles.css +1 -0
  81. bindcurve-0.1.0a1/docs/_site/symbols.html +823 -0
  82. bindcurve-0.1.0a1/docs/_site/theory.html +1153 -0
  83. bindcurve-0.1.0a1/docs/_site/theory_conversions.html +813 -0
  84. bindcurve-0.1.0a1/docs/_site/theory_exact.html +1029 -0
  85. bindcurve-0.1.0a1/docs/_site/theory_logistic.html +789 -0
  86. bindcurve-0.1.0a1/docs/_site/tutorials/basics.html +931 -0
  87. bindcurve-0.1.0a1/docs/_site/tutorials/basics_files/figure-html/cell-10-output-2.png +0 -0
  88. bindcurve-0.1.0a1/docs/_site/tutorials/basics_files/figure-html/cell-10-output-3.png +0 -0
  89. bindcurve-0.1.0a1/docs/_site/tutorials/basics_files/figure-html/cell-7-output-1.png +0 -0
  90. bindcurve-0.1.0a1/docs/_site/tutorials/basics_files/figure-html/cell-8-output-1.png +0 -0
  91. bindcurve-0.1.0a1/docs/_site/tutorials/tutorial2.html +751 -0
  92. bindcurve-0.1.0a1/docs/api.qmd +5 -0
  93. bindcurve-0.1.0a1/docs/images/competitive_3st.png +0 -0
  94. bindcurve-0.1.0a1/docs/images/competitive_3st.svg +58 -0
  95. bindcurve-0.1.0a1/docs/images/competitive_3st_frame.svg +65 -0
  96. bindcurve-0.1.0a1/docs/images/competitive_4st.png +0 -0
  97. bindcurve-0.1.0a1/docs/images/competitive_4st.svg +82 -0
  98. bindcurve-0.1.0a1/docs/images/competitive_4st_frame.svg +89 -0
  99. bindcurve-0.1.0a1/docs/images/direct.png +0 -0
  100. bindcurve-0.1.0a1/docs/images/direct.svg +28 -0
  101. bindcurve-0.1.0a1/docs/images/direct_frame.svg +35 -0
  102. bindcurve-0.1.0a1/docs/images/input_format/input_format.png +0 -0
  103. bindcurve-0.1.0a1/docs/images/input_format/input_format.pptx +0 -0
  104. bindcurve-0.1.0a1/docs/images/input_format/input_format.svg +1 -0
  105. bindcurve-0.1.0a1/docs/images/input_format/input_format.xlsx +0 -0
  106. bindcurve-0.1.0a1/docs/index.qmd +17 -0
  107. bindcurve-0.1.0a1/docs/input_format.qmd +14 -0
  108. bindcurve-0.1.0a1/docs/models.qmd +102 -0
  109. bindcurve-0.1.0a1/docs/objects.json +1 -0
  110. bindcurve-0.1.0a1/docs/reference/convert.qmd +37 -0
  111. bindcurve-0.1.0a1/docs/reference/fit_50.qmd +35 -0
  112. bindcurve-0.1.0a1/docs/reference/fit_Kd_competition.qmd +41 -0
  113. bindcurve-0.1.0a1/docs/reference/fit_Kd_direct.qmd +37 -0
  114. bindcurve-0.1.0a1/docs/reference/index.qmd +28 -0
  115. bindcurve-0.1.0a1/docs/reference/load_csv.qmd +20 -0
  116. bindcurve-0.1.0a1/docs/reference/load_df.qmd +20 -0
  117. bindcurve-0.1.0a1/docs/reference/plot.qmd +59 -0
  118. bindcurve-0.1.0a1/docs/reference/plot_asymptotes.qmd +27 -0
  119. bindcurve-0.1.0a1/docs/reference/plot_grid.qmd +83 -0
  120. bindcurve-0.1.0a1/docs/reference/plot_traces.qmd +33 -0
  121. bindcurve-0.1.0a1/docs/reference/plot_value.qmd +39 -0
  122. bindcurve-0.1.0a1/docs/reference/report.qmd +20 -0
  123. bindcurve-0.1.0a1/docs/styles.css +1 -0
  124. bindcurve-0.1.0a1/docs/symbols.qmd +22 -0
  125. bindcurve-0.1.0a1/docs/theory_conversions.qmd +97 -0
  126. bindcurve-0.1.0a1/docs/theory_exact.qmd +370 -0
  127. bindcurve-0.1.0a1/docs/theory_logistic.qmd +45 -0
  128. bindcurve-0.1.0a1/docs/tutorials/aktivni_pokus.ipynb:Zone.Identifier +2 -0
  129. bindcurve-0.1.0a1/docs/tutorials/basics.ipynb +327 -0
  130. bindcurve-0.1.0a1/docs/tutorials/tutorial2.ipynb +31 -0
  131. bindcurve-0.1.0a1/environment.yml +10 -0
  132. bindcurve-0.1.0a1/examples/competitive.csv +54 -0
  133. bindcurve-0.1.0a1/examples/direct.csv +12 -0
  134. bindcurve-0.1.0a1/setup.cfg +4 -0
  135. bindcurve-0.1.0a1/setup.py +15 -0
  136. bindcurve-0.1.0a1/test.py +277 -0
@@ -0,0 +1,3 @@
1
+ __pycache__
2
+ algebra
3
+ tempCodeRunnerFile.py
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.1
2
+ Name: bindcurve
3
+ Version: 0.1.0a1
4
+ Summary: A Python package for fitting and plotting of binding curves.
5
+ Author: choutkaj
6
+ Requires-Dist: numpy
7
+ Requires-Dist: pandas
8
+ Requires-Dist: matplotlib
9
+ Requires-Dist: lmfit
@@ -0,0 +1,67 @@
1
+ # Welcome to BindCurve
2
+ This repository contains `bindcurve` - a lightweight Python package that allows fitting and plotting of binding curves. It contains classic logistic model for fitting IC50 and logIC50, from which pIC50 could obtained. It also contains exact polynomial models for directly fitting Kd from both direct and competitive binding experiments. Fixing minimal and maximal asymptotes during fitting is supported, as well as fixing the slope in logistic models. Additionally, IC50 values can be converted to Kd using conversion models.
3
+
4
+ `bindcurve` is intended as a simple tool ideally suited for work in Jupyter notebooks or similar tools. Even if you have never used Python before, you can learn `bindcurve` easily and fit your binding curve in less than 5 lines of code. The results can be conveniently plotted with another few lines of code by matplotlib-based functions, or simply reported in formatted output.
5
+
6
+ > [!WARNING]
7
+ > `bindcurve` is currently in Alpha version. Changes to API might happen momentarily without notice. If you encounter bugs, please report them as Issues.
8
+
9
+
10
+ ## Installation
11
+
12
+
13
+ ## Basic usage
14
+ The following example demonstrates the most basic usage of `bindcurve`. For more instructions and examples see the tutorials.
15
+
16
+ ### Fitting
17
+ ```python
18
+ # Import bindcurve
19
+ import bindcurve as bc
20
+
21
+ # Load data from csv file
22
+ input_data = bc.load_csv("path/to/your/file.csv")
23
+
24
+ # This DataFrame will now contain preprocessed input data
25
+ print(input_data)
26
+
27
+ # Fit IC50 from your data
28
+ IC50_results = bc.fit_50(input_data, model="IC50")
29
+ print(IC50_results)
30
+
31
+ # To use exact Kd models, first define experimental constants
32
+ RT = 0.05 # Total concentration of the receptor
33
+ LsT = 0.005 # Total concentration of the labeled ligand
34
+ Kds = 0.0245 # Kd of the labeled ligand
35
+
36
+ # Fit Kd from your data
37
+ Kd_results = bc.fit_Kd_competition(input_data, model="comp_3st_specific", RT=RT, LsT=LsT, Kds=Kds)
38
+ print(Kd_results)
39
+ ```
40
+ ### Plotting curves
41
+ ```python
42
+ # Import matplotlib
43
+ import matplotlib.pyplot as plt
44
+
45
+ # Initiate the plot
46
+ plt.figure(figsize=(6, 5))
47
+
48
+ # Plot your curves from the IC50_results dataframe
49
+ bc.plot(input_data, IC50_results)
50
+
51
+ # Just use matplotlib to your desired settings and show the plot
52
+ plt.xlabel("your x label")
53
+ plt.ylabel("your y label")
54
+ plt.xscale("log")
55
+ plt.legend()
56
+ plt.show()
57
+ ```
58
+
59
+
60
+ ## Documentation
61
+ The `bindcurve` documentation can be found at https://choutkaj.github.io/bindcurve/.
62
+
63
+
64
+ ## How to cite
65
+
66
+ ## License
67
+
@@ -0,0 +1,7 @@
1
+ from bindcurve.data import load_csv, load_df, plot, plot_grid, plot_asymptotes, plot_traces, plot_value, report
2
+ from bindcurve.calculate import fit_50, fit_Kd_direct, fit_Kd_competition, convert
3
+ from bindcurve.models import *
4
+
5
+
6
+
7
+