--------------------------------------------------
MCMC simulation for PBPK model for pregnant women 
--------------------------------------------------
© Hilscher Ondřej, Brno, 2025,
Code for calculating estimates of daily intake of PFOA and PFOS from measured blood concentrations (reverse dosimetry) for pregnant women.
The original data remain undisclosed because of a confidentiality agreement associated with the study.

-> run main.m
-> MCMC simulation for the fictional data "pfoa_data_artificial.xlsx" or "pfos_data_artificial_xlsx" will be done for PFOA and PFOS
-> For rows from this data an PFOA or PFOS intake value will be estimated
-> getRandParams.m returns chemical specific parameters for the PBPK model
-> getInputTables.m returns parameter values for PBPK model parameters which change over the gestation period 
-> Both these parameter values are an input into the PBPK model: "pbpk_pregnat.m" 
	-> This MATLAB script connects the two models "pbpk_reproductive_const.m" and "pbpk_pregnant_39_weeks.m"
-> For every single intake estimation MCMC run, "metropolis_hastings.m" is performed with set number of iterations (initially 500)
	-> Within every iteration the PBPK model "pbpk_pregnat.m" is evaluated
