Source data repository for: Bayesian machine learning analysis of single-molecule fluorescence colocalization images (Ordabayev et. al.).
This repository contains Figures, Figure supplements, Supplementary files, and the scripts and data used to generate them.
git clone https://github.com/ordabayevy/tapqir-overleaf.git
cd tapqir-overleaf
Follow these instructions to install Tapqir.
wget https://zenodo.org/record/5949388/files/ms_files.zip
unzip ms_files.zip && rm ms_files.zip
Analysis output of experimental data is stored in experimental
folder:
- DatasetA:
experimental/DatasetA
- DatasetB:
experimental/DatasetB
- DatasetC:
experimental/DatasetC
- DatasetD:
experimental/DatasetD
- DatasetA:
experimental/P10DatasetA
(10x10 AOIs) - DatasetA:
experimental/P6DatasetA
(6x6 AOIs)
Analysis output of simulated data is stored in simulations
folder:
- Supplementary File 1:
simulations/lamda*
- Supplementary File 2:
simulations/seed*
- Supplementary File 3:
simulations/height*
- Supplementary File 4:
simulations/negative*
- Supplementary File 5:
simulations/kon*
- Supplementary File 6:
simulations/sigma*
These folders contain following files:
data.tpqr
: AOI imagescosmos-channel0-params.tpqr
: posterior parameter distributionscosmos-channel0-summary.csv
: summary of global parameter values.tapqir
: sub-folder containing internal files such as last model checkpoint, configuration file, and log files.
Image file: figures/cosmos_experiment/cosmos_experiment.png
Depiction of the cosmos probabilistic image model and model parameters.Image file: figures/graphical_model.png
To generate panels A, B, and C in the image, run (outpus figures/graphical_model.svg
vector image):
python scripts/figures/graphical_model.py
Input data:
experimental/DatasetA
Graphical model in panel D is located at figures/graphical_model.pdf
.
Image file: figures/graphical_model_extended.png
The prior distributions for x and y spot position parameters.Image file: figures/graphical_model_xy.png
To generate the image file, run:
python scripts/figures/graphical_model_xy.py
Image file: figures/tapqir_analysis.png
To generate the image file, run:
python scripts/figures/tapqir_analysis.py
Input data:
simulations/lamda0.5
(panel A)experimental/DatasetA
(panel B)
Image file: figures/tapqir_analysis_probs.png
To generate the image file, run:
python scripts/figures/tapqir_analysis_probs.py
Input data:
simulations/lamda0.5
(panel A)experimental/DatasetA
(panel B)
Image file: figures/tapqir_analysis_ppc.png
To generate the image file, run:
python scripts/figures/tapqir_analysis_ppc.py
Input data:
experimental/DatasetA
(panel A)experimental/DatasetB
(panel B)experimental/DatasetC
(panel C)experimental/DatasetD
(panel D)
Image file: figures/tapqir_analysis_randomized.png
To generate the image file, run:
python scripts/figures/tapqir_analysis_randomized.py
Input data:
simulations/seed{0-16}
Image file: figures/tapqir_analysis_size.png
To generate the image file, run:
python scripts/figures/tapqir_analysis_size.py
Input data:
experimental/DatasetA
(14x14 AOIs)experimental/P10DatasetA
(10x10 AOIs)experimental/P6DatasetA
(6x6 AOIs)
Image file: figures/tapqir_performance.png
To generate the image file, run:
python scripts/figures/tapqir_performance.py
Input data:
simulations/height*
(panels A, B, C, D)simulations/lamda*
(panels E, F, G, H)simulations/negative*
(panel I)
Image file: figures/tapqir_performance_fn.png
To generate the image file, run:
python scripts/figures/tapqir_performance_fn.py
Input data:
simulations/lamda1
simulations/spotpicker_result.mat
(spot-picker analysis output)
Image file: figures/kinetic_analysis.png
To generate the image file, run:
python scripts/figures/kinetic_analysis.py
Input data:
simulations/kon0.01lamda0.01
simulations/kon0.01lamda0.15
simulations/kon0.01lamda0.5
simulations/kon0.01lamda1
simulations/kon0.02lamda0.01
simulations/kon0.02lamda0.15
simulations/kon0.02lamda0.5
simulations/kon0.02lamda1
simulations/kon0.03lamda0.01
simulations/kon0.03lamda0.15
simulations/kon0.03lamda0.5
simulations/kon0.03lamda1
Image file: figures/experimental_data.png
To generate the image file, run:
python scripts/figures/DatasetB_ttfb_analysis.py
python scripts/figures/experimental_data.py
Input data:
experimental/DatsetB
Image file: figures/experimental_data_DatasetA.png
To generate the image file, run:
python scripts/figures/DatasetA_ttfb_analysis.py
python scripts/figures/experimental_data_DatasetA.py
Input data:
experimental/DatsetA
Image file: figures/experimental_data_DatasetC.png
To generate the image file, run:
python scripts/figures/DatasetC_ttfb_analysis.py
python scripts/figures/experimental_data_DatasetC.py
Input data:
experimental/DatsetC
Image file: figures/experimental_data_DatasetD.png
To generate the image file, run:
python scripts/figures/DatasetD_ttfb_analysis.py
python scripts/figures/experimental_data_DatasetD.py
Input data:
experimental/DatsetD
Varying non-specific binding rate simulation parameters and corresponding fit values
Spreadsheet file: supplementary/data1.xlsx
To generate the file, run:
python scripts/supplementary/data1.py
Input data:
simulations/lamda*
Randomized simulation parameters and corresponding fit values
Spreadsheet file: supplementary/data2.xlsx
To generate the file, run:
python scripts/supplementary/data2.py
Input data:
simulations/seed*
Randomized simulation parameters and corresponding fit values
Spreadsheet file: supplementary/data3.xlsx
To generate the file, run:
python scripts/supplementary/data3.py
Input data:
simulations/height*
No target-specific binding and varying non-specific binding rate simulation parameters and corresponding fit values
Spreadsheet file: supplementary/data4.xlsx
To generate the file, run:
python scripts/supplementary/data4.py
Input data:
simulations/negative*
Kinetic simulation parameters and corresponding fit values
Spreadsheet file: supplementary/data5.xlsx
To generate the file, run:
python scripts/supplementary/data5.py
Input data:
simulations/kon*
Varying proximity simulation parameters and corresponding fit values
Spreadsheet file: supplementary/data6.xlsx
To generate the file, run:
python scripts/supplementary/data6.py
Input data:
simulations/sigma*