Abstract
Transcriptomic circadian analysis of human post-mortem brain provides a unique opportunity to characterize in vivo molecular circadian rhythms across brain regions implicated in aging and psychiatric disorders. A primary goal in such analyses is the detection of circadian biomarkers. However, this task is complicated by the frequent mismatch between a subject’s recorded circadian clock time and their true molecular circadian time — arising from observational or recording errors, as well as intrinsic biological variability. Existing methods typically address either biomarker detection or circadian time prediction in isolation. Because errors in one task can degrade performance in the other, the lack of a unified approach remains a key limitation. We propose BayCT — a Bayesian model for simultaneous circadian marker detection and molecular circadian time estimation. The model extends naturally to repeated measurements from multiple brain regions or organs. For circular data, we employ a von Mises prior distribution, with slice sampling and reversible-jump Markov chain Monte Carlo (MCMC) for Bayesian inference. Through extensive simulations and applications to transcriptomic data from three human brain regions and from 12 mouse organs, BayCT demonstrates superior performance in both biomarker detection and circadian time estimation. Furthermore, we highlight the advantages of integrating data across brain regions, achieving substantial improvements in both tasks.
Keywords and phrases: Molecular circadian time, Circadian biomarker, Bayesian hierarchical models
1. Introduction.
Circadian rhythms are endogenous ~24-hour oscillations that synchronize physiological activities to the daily light–dark cycle. This intrinsic timekeeping system optimizes the timing of diverse biological processes, thereby enhancing organismal survival. At the molecular level, circadian rhythms are driven by a transcriptional–translational feedback loop that regulates thousands of circadian-controlled genes in coordinated manner (Pittendrigh, 1960). In mammals, the suprachiasmatic nucleus (SCN) serves as the master clock, maintaining self-sustained oscillations independent of environmental cues (Aschoff, 1960). Although the free-running period is close to — but not exactly — 24 hours, it varies with age, sex, and ancestry (Crowley and Eastman, 2018; Eastman et al., 2015), necessitating entrainment to environmental signals such as light to maintain precise phase alignment. However, modern lifestyle factors — including artificial lighting, altered work schedules, and late-night blue light exposure — challenge this entrainment process (Finger and Kramer, 2021; Tähkämö, Partonen and Pesonen, 2019). Chronic circadian misalignment, such as that induced by rotating night shifts, has been linked to elevated risks for cancer and other chronic diseases (Schernhammer et al., 2001; Wegrzyn et al., 2017).
Detection of circadian biomarkers from high-throughput omics data is fundamental for studying rhythmic regulation in health and disease. A variety of computational methods have been proposed, including parametric cosinor regression (Cornelissen, 2014), non-parametric approaches such as JTK_CYCLE (Hughes, Hogenesch and Kornacker, 2010), spectral methods such as the Lomb–Scargle periodogram (Glynn, Chen and Mushegian, 2006), and deep learning methods such as BIO_CYCLE (Agostinelli et al., 2016). Flexible models like JTK_CYCLE and BIO_CYCLE can capture diverse waveform shapes beyond the sinusoidal assumption of cosinor regression. However, they may suffer from inflated or deflated type I error rates and present challenges in accurately estimating rhythmic parameters such as phase and amplitude (Ding et al., 2021).
Our motivating example is from a human post-mortem brain transcriptomic study for circadian research, in which bulk RNA-seq data are profiled in three brain regions - nucleus accumbens (NAc), caudate and putamen - of the same subjects with time of death (TOD) information for each subject (Section 4.2). In post-mortem human studies, a subject’s recorded time of death (TOD) often deviates from their true molecular circadian time (MCT), due to observational or recording errors and intrinsic inter-individual variation in circadian phase. Such variability arises from environmental influences (e.g., light exposure, temperature), behavioral patterns (e.g., sleep–wake schedules, meal timing), genetic differences (Jones et al., 2019), and lifestyle-induced chronodisruption. Accurate estimation of MCT has substantial implications for chronotherapy, which aims to align treatment timing with an individual’s circadian phase to maximize efficacy and minimize toxicity (Dallmann, Okyar and Lévi, 2016; Cederroth et al., 2019). Meta-analyses and clinical trials have shown that dosing time can significantly influence drug toxicity and therapeutic response (Printezi et al., 2022; Ruben et al., 2019).
Several computational approaches have been developed to predict MCT from transcriptomic data. Early work such as the Molecular Timetable (Ueda et al., 2004) correlated samples to reference gene-phase profiles, while more recent methods employ machine learning (e.g., ZeitZeiger (Butte and Hastie, 2016), TimeSignature (Braun et al., 2018)) or Bayesian inference (e.g., Tempo (Auerbach et al., 2022) and CHIRAL (Talamanca, Gobet and Naef, 2023)). Deep learning models such as CYCLOPS (Anafi et al., 2017) and Cyclum (Liang et al., 2020) leverage nonlinear representation learning to improve prediction accuracy. However, these methods address MCT prediction and circadian biomarker detection as separate tasks, despite the fact that errors in one can propagate and degrade performance in the other. Figure 1A visually demonstrates the need for joint modeling of both tasks by scatter plots for time of death (TOD; x-axis) versus gene expression level (y-axis) in four selected core clock genes (CIART, CRY1, PER2 and PER3) in 59 human caudate samples. Subject 103 shows clear deviance between recorded TOD (solid circle) and the predicted MCT (empty circle). Correcting recorded TOD=−5.61 to predicted MCT=0.43 yields improved sinusoidal fits for circadian biomarker detection, and these gains in biomarker detection subsequently enhance the accuracy of MCT prediction.
Fig 1.
A. Circadian gene expression patterns of four selected core clock genes in the human caudate. axis is time on a ZT scale (−6 to 18 hour) and y axis is gene expression level. The black line is the fitted sinusoidal curve using TOD. Correcting TOD=−5.61 to predicted MCT=0.43 yields improved sinusoidal fits for circadian biomarker detection, and the improvement in biomarker detection will subsequently enhance MCT prediction accuracy. B. Graphical representation of BayCT-M. The graphical representation of BayCT is a simplified version without subscript for brain region and parameters and .
To address this gap, we propose BayCT — a unified Bayesian model for simultaneous Circadian biomarker detection and molecular circadian Time estimation in Section 2.1. BayCT employs a von Mises prior to accommodate the circular nature of time and uses slice sampling and reversible-jump Markov chain Monte Carlo (MCMC) for efficient Bayesian inference (Section 2.2). In Section 2.3, we further extend the model to BayCT-M to integrate data from multiple brain regions or organs. In Section 3 and Section 4, we evaluate BayCT and BayCT-M through extensive simulations and real-data applications involving transcriptomic measurements from 12 mouse organs and three human brain regions. Our results demonstrate substantial improvements in both biomarker detection and MCT estimation, and highlight the benefits of integrating data across multiple brain regions or organs.
2. Methods: BayCT and BayCT-M.
In this section, we present the BayCT and BayCT-M model. In Section 2.1, we begin with introducing a basic Bayesian circadian model (BayC) without aligning molecular circadian time, followed by a full BayCT model including MCT estimation. The BayC model will also be used as a baseline method in numerical studies when MCT correction is ignored in biomarker detection. Section 2.2 shows the corresponding Monte-Carlo Markov Chain (MCMC) sampling procedures for Bayesian inference. Finally, we extend the BayCT model to BayCT-M (Section 2.3) allowing multi-brain-region integrative analysis.
2.1. BayCT model.
Consider the expression values of genes and subjects with the time of death (TOD) of subject standardized to zeitgeber time (ZT) as . Here, zeitgeber time is adjusted by factors such as time zone, daylight savings time, and sunrise time (calculated by date of death and longitude and latitude of the place of death) and and ZT=0 is standardized to 6:00AM as previously described (Chen et al., 2016). For simplicity, we begin with a basic Bayesian model for circadian marker detection without TOD correction by MCT, which is denoted as BayC model. The cosinor model of BayC for a given gene is:
| (1) |
where is the oscillation amplitude, is the peak time of gene expression, represents the MESOR (midline-estimating statistic of rhythm; mean expression level), is Gaussian noise with , and is the oscillation frequency ( hours is pre-defined to reflect circadian rhythm). The range of the amplitude and the peak time are constrained with and .
The hyperparameters and priors are set as:
| (2) |
Here, is normal distribution, is inverse gamma, follows a spike-and-slab prior with spike at 0 and slab as truncated normal distribution constrained within (a,b), is von Mises distribution for circular data. The indicator variable indicates gene is rhythmic and arryhythmic. We set and to give minimally-informative prior for and . For prior of can be userdefined, representing the smallest biologically meaningful amplitude but we use throughout the paper for simplicity. The von Mises prior for is used for its periodic nature. We set and to give non-informative prior to . In fact, is equivalent to .
We note that the value of the circadian indicator generates two possible model states for the gene expression below with different parameter space: for and for , which calls for reversible jump sampling to be introduced in Section 2.2.
| (3) |
To achieve joint biomarker detection and time correction in BayCT model, we introduce to denote the underlying true molecular circadian time (MCT). The circadian time deviation between MCT and TOD is denoted as such that . The cosinor model in BayCT simply replaces in the BayC model (Equation 1) with :
| (4) |
Since is also periodic, we give a reasonably informative prior
The mean of the prior is set to 0, and is set to 6, which is equivalent to a standard deviation of about 1.5 hours. Figure 1B shows the graphical representation of BayCT under and .
2.2. Sampling procedure.
The sampling procedure for the BayCT model consists of two alternating stages: updating within models and transitioning between the two models in Equation 3 using reversible jump MCMC. The complete procedure is divided into four steps. Step I occurs only when updating within model , while Steps I, II, and IV are applied to model . Step III is performed after each update within either model.
Step I updates the two parameters and shared by and . In Step II, the application of slice sampling for jointly updating and in significantly improves the computing efficiency. Step III applies reversible jump sampling to transit between and . Finally, Step IV updates the time deviance . We use the notation to represent the full conditional posterior probability for a given parameter, and define (with for ).
Step I: Gibbs sampling for and
The full conditional posterior distributions of and can be derived and updated using Gibbs sampling:
| (5) |
Step II: Update within : slice sampling for joint update of and
The joint posterior distribution of and is
| (6) |
where
and
If we re-parameterize the above density as a posterior density for with
| (7) |
then the inverse function can be obtained as
| (8) |
and the corresponding Jacobian determinant can be calculated as
| (9) |
Thus the transformed conditional posterior density of is
Now we can perform slice sampling as follows:
Sample from
-
Sample fromThe function
is a decreasing function on , so if we solve for s.t. , any with will satisfy the constraint.
Finally, Step II can be achieved by a two-step Gibbs sampling:
Step III: Update between using reversible jump sampling
Next, we show the between model updating procedure using reversible jump. For reversible jump, when selecting between models with different dimensions, we use augmenting variables to match the parameter space dimension across models. The parameter space of the two models that we want to select from are and .
Suppose the current state is , and we propose augmenting variables . The acceptance ratio of reversible jump is calculated as below:
In this formula, , as the prior of , is set to to reflect the prior knowledge of proportion of circadian biomarkers. The probability of transition proposal between models is set to 0.5 in both direction, resulting in . This indicates that the probability of transitioning from model to is equal to the probability of transitioning from model to . Furthermore, represents the Jacobian of the one-to-one transformation from the parameter space under model to the parameter space under model . Since no parameter transformation is performed between the two models, the Jacobian determinant equals 1. Finally, the and are the proposal probability of the two parameters, which we set to be their prior distritions.
After simplification by plugging the above values, we get
| (11) |
The sampling procedure is as follows, with probability 0.5, the chain stays at the current state and performs corresponding samplings, otherwise, the chain will jump to the other state with the acceptance ratio if we are jumping from to and otherwise.
Step IV: Update in BayCT
Finally, the posterior distribution of in the BayCT model is updated as:
Here, the set of genes with index is chosen to update . Without prior knowledge, we update as the rhythmic genes identified in the last MCMC iteration, i.e., . In real application, we pre-select a small set of core clock genes with known strong circadian rhythmicity, denoted by , and is updated with genes that are both pre-selected and estimated as rhythmic, i.e., .
If we denote , the sampling procedure is as following:
Draw , which is equivalent to firstly drawing and then calculate .
Calculate the range of .
Draw .
2.3. BayCT-M model.
The BayCT-M extends BayCT model from single brain region to multiple brain regions. We denote the expression level of gene in brain region and subject at time point as . In the particular setting of our motivating example, data from the three brain regions are from identical subjects. As such, and . Notably, our implementation in R also allows for partially overlapped subjects across brain regions, i.e., for some . The cosinor model is parameterized as:
| (12) |
where is the MCT. The priors are the same as in BayCT, except that shares a common mean in the von Mises prior across brain regions. The , and have more considerable variance across groups and thus are assigned independent priors for each tissue (Zhang et al., 2014; Mure et al., 2018; Talamanca, Gobet and Naef, 2023):
| (13) |
Similar to BayCT, the indicator variable indicates gene in brain region is rhythmic and otherwise. We set and . The dependence of prior on is grounded in the rationale that a smaller implies a weaker signal and thus a greater dispersion in . We further define the conjugate joint hyperprior for the hyperparameters and :
| (14) |
In this prior distribution, is the Bessel function of the first kind with order 0. The hyperprior indicates number of prior observations in the direction , and corresponds to the component projected along (i.e., in the known direction) of the resultant of observations (Damien and Walker, 1999). We set , and , which constitutes a weakly informative prior, providing a baseline orientation while allowing the data to largely influence the posterior estimates. The corresponding Gibbs sampling procedure proposed in (Damien and Walker, 1999) is used for updating and . Figure 1B shows the graphical representation of BayCT-M under and . The whole MCMC sampling procedures for the BayCT-M are detailed in Supplement Section 1 Posterior Inference. Inference outputs (posterior mean and standard deviation) of four parameters from BayCT-M are: (1) : circadian indicator for gene in tissue , (2) : canonical phase of gene , (3) : tissue-specific phase for a circadian gene , (4) : deviation of molecular circadian time of subject .
3. Simulations.
3.1. Simulation to evaluate BayCT model.
We generate data for 1000 genes, consisting of 200 rhythmic and 800 arrhythmic genes, to reflect the higher prevalence of arrhythmic genes in real applications. For the rhythmic genes, we set amplitude , with a constant variance . The time deviation is varied along two dimensions: the magnitude of deviation , set at 0, 1, 2, and 4 hours, and the proportion of the total 30 samples affected by this deviation, set at , with equal numbers of samples having positive and negative values. Each setting is repeated 30 times.
We first evaluate MCT estimation accuracy, comparing BayCT with various methods, including TimeSignature (TS), ZeitZeiger (ZZ), CHIRAL, CYCLOPS, and Cyclum. Note that CHIRAL, CYCLOPS and Cyclum are not standard supervised machine learning methods. These tools are unsupervised without utilizing the input TOD. They, however, can generate pseudo-time, which is prediction of the MCT of each subject with certain unknown shift. Consequently, these three methods are not applicable to perform cross-validation in the MCT prediction evaluation. In Figure 2, the prediction accuracy is calculated by using all subjects to construct the model and then applied to the same subjects. This may cause slight overfitting in the accuracy evaluation but it gives a fair method comparison. To avoid overfitting, Figure S1 conducts five-fold cross validation and compare methods excluding CHIRAL, CYCLOPS and Cyclum.
Fig 2.

Bias and standard deviation (SD) of the MCT estimations.
Next, we compare biomarker detection accuracy among BayCT, BayC and the Cosinor model, using the area under the Receiver Operating Characteristic curve (AUC) as a threshold-free measure. For Bayesian methods, sensitivity and specificity are calculated with varying cutoffs for , while the frequentist Cosinor method uses varying p-value cutoffs. Additionally, we assess the parameter estimation consistency through the bias and standard deviation of the point estimators from each method.
MCT estimation accuracy:
The simulations in Figure 2A shows that BayCT and TS give the most accurate MCT prediction, regardless of and . In Figure 2B, when there is no time deviation (i.e., for all ), BayCT has slightly larger standard deviation (SD) than TS due to slight loss of efficiency by estimating . But when time deviation indeed exist, BayCT outperforms TS as well as other methods. Larger and more prevalent time deviations (e.g., ) lead to more significant superiority in BayCT.
An extra advantage of BayCT over other machine learning methods is its inference of a Bayesian credible interval for the MCT prediction uncertainty. Supplement Figure S2 shows the actual coverage probability when the 95% credible interval of MCT contains the truth. The result shows general accurate estimation of the 95% credible intervals.
Circadian biomarker detection:
Figure 3A presents the area under the curve (AUC) evaluation of circadian gene detection using BayC, BayCT and frequentist Cosinor model. In the baseline scenario where for all (i.e., when MCT aligns perfectly with TOD for all samples), BayC and Cosinor achieve comparable high accuracy. The result is consistent with the general observation that Bayesian approaches and their frequentist counterparts often achieve similar high performance when both modelled adequately. BayCT has a slightly lower AUC performance, due to the slight loss of efficiency from estimating when they are all zero. However, as the degree of deviance grows, BayCT becomes increasingly effective, surpassing the other two methods. For example, when , and of samples have , BayeCT achieves mean AUC=0.909, compared to mean AUC of 0.869 and 0.852 for BayC and Cosinor. Notably, AUC of BayCT remains almost at the same level for fixed , showing effective time deviation correction and the robustness provided by BayCT.
Fig 3.

A. Comparison of rhythmicity accuracy of the three methods with AUC. The columns, moving from the left to right, represent an increasing magnitude of , while the rows, from top to bottom, present an increasing percentage of samples affected by . B. Bias and SD evaluation for the three methods when simulating .
We further assess estimation accuracy in terms of bias and standard deviation of amplitude A, phase , and expression error term for BayC, BayCT and Cosinor. The result at simulating is presented in Figure 3B. In terms of estimating A and , BayCT maintains an unbiased estimation performance, whereas both BayC and Cosinor tend to underestimate A and overestimate with increasing proportion of samples with time deviation, . Since stands for signal-to-noise ratio, this result can be explained by that time deviation introduces uncertainty in signal detection. In terms of , all three methods are unbiased when increases. BayC and Cosinor, however, have much larger SD compared to BayCT when increases.
3.2. Simulations to evaluate BayCT-M model.
We simulate 2000 genes in 3 brain regions from 30 samples, that is, , and . Then, we simulate data for 1300 arrhythmic genes in all 3 regions, 100 genes rhythmic only in each tissue (300 genes in totla), 100 genes rhythmic in any two tissues (300 genes in total), and 100 genes rhythmic in all 3 regions. We set amplitude and a constant variance to generate adequate intrinsic effect size (i.e., ) for sufficient statistical power (Zong et al., 2023). Similar to the previous subsection, the circadian time deviation varies in two dimensions: 1) the magnitude of deviation, ) the proportion of total samples affected by this deviation was set at , with equal samples with positive and negative values. We categorize simulations into two settings: 1) SamePhase: are same across tissues for rhythmic genes. 2) DiffPhase: are different across tissues for rhythmic genes with magnitude 2 and 4, i.e., and . Each combination of these variations is simulated 30 times. The performance of BayCT-M in the two settings are highly similar, demonstrating robust capacity of BayCT-M under heterogeneity.
MCT estimation accuracy:
Supplement Figure S3 and Figure S5 show bias and SD of MCT estimates under SamePhase and DiffPhase simulations, respectively. BayCT-M consistently gives unbiased estimates regardless of and . As amplitude increases, BayCT-M gives more accurate estimates with smaller SD, indicating that the model is efficient if we have strong rhythmicity signal.
To assess the efficiency of BayCT-M relative to BayCT in estimating , we apply BayCT separately on three tissues from the simulated data and compute the SD ratio of BayCT-M to BayCT, as shown in Figure 4. Notably, the efficiency gain is most pronounced at lower amplitude , where the SD ratio drops below (i.e., the expected asymptotic optimal efficiency). As the amplitude increases, these ratios converge to . The result shows that BayCT-M is asymptotically efficient in integrating information across brain regions for predicting MCT.
Fig 4.
The SD ratio of BayCT-M to BayCT on each tissue with increasing amplitude when estimating . The horizontal dashed line is . The columns, moving from the left to right, represent an increasing magnitude of , while the rows, from top to bottom, present an increasing percentage of samples affected by .
Circadian biomarker detection:
The evaluation on circadian gene detection accuracy in Figure S4 and Figure S6 show that BayCT-M is capable to identify circadian gene with high performance. The AUC approaches 1 when the signal is strong enough (i.e., ). Comparisons in Figure S7 confirm that BayCT-M performs comparably to the single-tissue BayCT method. BayCT-M shows a slight advantage at lower signal amplitudes, indicating that integrating multi-tissue information preserves robust biomarker detection.
4. Real applications.
In this section, we evaluate performance of BayCT and BayCT-M with two real datasets. In the first application, since biological/genetic and environmental variations among mice are minimal, we assume TOD=MCT (i.e., ) in the mouse study. We simulate to generate semi-synthetic data from real data to evaluate MCT prediction performance of BayCT and BayCT-M. In the second application, we apply BayCT to a human postmortem transcriptomic dataset with three brain regions for both biomarker detection and MCT estimation.
4.1. Evaluation in mouse data with synthetic .
Circadian gene markers have been found to be tissue-specific. As such, a transcriptomic study in mouse by Zhang et al. (2014) provided an circadian atlas composing 12 tissues, each sampled in every 2 hours for 2 days (24 samples per tissue). Since all mice were entrained with the same schedule before the sample collection, the MCT is considered to be aligned perfectly to the experiment time (i.e., ).
After filtering out probes with negative values and duplication, 35,556 genes (transcripts) are left and we further normalize the data with quantile normalization. To assess the MCT prediction methods on real data, we generate pseudo datasets by artificially introducing noise to MCT. Specifically, for a randomly selected half of the samples, we add to the observed time, while for the other half, we subtract from the observed time to create the new observed TOD. This process simulates scenarios where the recorded TOD might deviate from the underlying MCT due to various factors.
Then we apply the BayCT and other MCT prediction methods to the data using the pseudo time as the input. For BayCT, we update for the 12 tissues separately with the 11 present core rhythmic genes: NPAS2, PER2, CRY1, CIART, PER1, NR1D1, NR1D2, TEF, CRY2, PER3 and DBP, while simultaneously estimating the rhythmicity parameters for all the genes. The results show that the 95% credible intervals (CIs) covered 94.4% of the artificial , indicating the model’s ability to accurately capture the introduced noise. Additionally, we apply other MCT prediction methods with the same set of 11 core clock genes, using procedures described in Section 3. As shown in Figure 5A, the comparison yielded results similar to those from our simulation, with BayCT model exhibiting consistent unbiasedness and small variance overall. These findings demonstrate the BayCT’s robust performance on real data.
Fig 5.
A. Bias and SD evaluation for MCT prediction, pooled over 12 tissues. B. The overlapping of top rhythmic genes for BayC, BayCT, and Cosinor with increasing artificial .
Subsequently, we evaluate the accuracy of rhythmicity identification of BayC, BayCT, and Cosinor with pseudo . To obtain a reference rank of gene rhythmicity which we can compare to, we applied the three models on the original data (when ) and obtain the gene rhythmicity rank for each method. For BayC and BayCT, genes with larger have smaller ranks, while for Cosinor, genes with smaller p-value have smaller ranks. The “ensemble reference” top genes were ordered by the smallest average rank across the three methods. We then examin the percentage of the n-top-ranked rhythmic genes from the “ensemble reference list” that are overlapping with the n-top-ranked rhythmic genes from each method, with . Figure 5B shows that when , BayC has the highest overlapping percentage. However, as increases, both BayC and Cosinor lost accuracy in identifying the top rhythmic genes. In contrast, BayCT displays robust performance across varying , with the results being comparable to results at . This demonstrates the BayCT’s overall accurate and robust identification of circadian genes under the impact of varying .
4.2. Human postmorten data with three brain regions.
In the second case study, we apply BayCT and BayCT-M to RNA-seq data from Ketchesin et al. (2021), which involves samples from three distinct brain regions - nucleus accumbens (NAc), caudate and putamen - of the same 59 subjects.
We independently apply BayCT to each of the three brain regions and use BayCT-M on all three brain regions. Figure 6A shows the BayCT-M ordered by the mean with the corresponding 90% credible interval. All of the BayCT-M have a 90% credible interval width of less than 2.4 hours, showing high concordance of estimates across three brain regions.
Fig 6.
The BayCT, BayCT-M, and TS estimates for three brain regions. A. BayCT-M estimates and 90% credible interval for all subjects. B. Forest plots of subject 43, 145, and 103. C. Circadian gene expression pattern of PER3 in Caudate, Nac, and Putamen. axis is TOD or predicted MCT and axis is gene expression level. The black line is the fitted sinusoidal curve using TOD
For further comparison, we compare these BayCT-M estimates with those obtained from TimeSignature (TS), which is identified as the second-best performer in the extensive simulation. Remarkably, the comparison reveals a high degree of similarity, with 54 out of 59 (91.5%) samples exhibiting a difference of less than 44 hours (Figure S8). For demonstration, Figure 6B provides forest plots of BayCT in three subjects, BayCT-M , and the estimations from TS. Since TS is a machine learning method, only the point prediction is available. In contrast, BayCT and BayCT-M provides uncertainty quantification by 95% credible interval, in addition to the mean point estimation. In Subject 43, the mean and narrow credible interval = [2.87, 4.19] from BayCT-M shows high inference confidence of the difference. TS predictions in three brain regions gives consistent conclusions of and 2.79, respectively. In subject 145, BayCT-M also concludes highly confident with mean = 3.91 and credible interval = [3.24, 4.68]. In contrast, TS shows inconclusive prediction at 1.48, −0.71 and −0.25. In Subject 103, BayCT concludes consistent signals for across three brain regions although NAc has larger variance. As such, the BayCT-M result gives significant conclusion of mean and credible interval = [5.84, 7.51]. Prediction result from TS is relatively consistent with BayCT in Caudate and Putamen ( and 8.96) while very different in NAc . Again TS can only provide predication without uncertainty quantification in the prediction compared to BayCT. We also notice that BayCT-M gives us much narrower credible interval in this real application. This is possibly due to finite sample or data noise and our simulation results in Figure 4 guarantees that BayCT-M estimate has a reasonable efficiency when rhythmicity signal is strong. In Figure 6C, we use a core clock gene PER3 to illustrate how MCT adjusts from TOD to provide better circadian curve fitness. PER3 appears to be a circadian genes in all three brain regions (posterior probability of is 1, for ). Expression levels plotted with MCT (circles) fit the circadian curves much better than TOD (solid dots), except for poor fitness in both MCT and TOD for NAc in Subject 103. This raw data visualization confirms the likely time deviations in these three subjects.
5. Discussion.
The inherent biological variability of MCT presents significant challenges to not only the chronotherapy but also the broader researches in human circadian biology. Traditional studies often equates the TOD with MCT, introducing measurement noise into the analyses. On the other hand, existing time prediction methods focus on estimating MCT, but not on inferences of circadian biomarkers and their associated rhythmic parameters.
In response to these challenges, we developed BayCT, a novel Bayesian circadian detection model that precisely adjusts the discrepancies between the observed time and MCT. The model employs full Bayesian inference, enabling the inference of both the rhythmic parameters in detected biomarkers and the uncertainty in MCT estimation. BayCT has shown superior performance in circadian biomarker detection compared to the traditional frequentis method Cosionor and BayC without MCT adjustment. It also provides more accurate MCT estimation than other machine learning approaches. Moreover, BayCT’s extension to BayCT-M enables us to deal with multi-tissue data within a full Bayesian framwork.
The application of BayCT to real datasets further validates its effectiveness. By introducing pseudo into the mouse data, we are encouraged by its robust performance in estimating the MCT and rhythmicity identification across various levels of noise strength. Additionally, the concordant estimations across multiple human brain tissues demonstrates the reliability of its results.
In our motivating example, data from the three brain regions are from identical subjects. However, in our R package, BayCT, the BayCT-M method can implement the general situation when data across brain regions or organs are from partially overlapped subjects.
BayCT is designed assuming Gaussian distributed residual errors, making it applicable for a variety of omics data types, such as transcriptomics, proteomics, and log-transformed methylation data. For the human postmorten RNA-seq data from Ketchesin et al. (2021) with transcripts, brain regions, and subjects, BayCT-M takes 4.45 hours to complete 3,000 MCMC simulations on a personal laptop with 18GB RAM. The computing is expected to significantly improve if calling Rcpp from R.
In summary, BayCT enhances circadian analysis by adjusting for discrepancies between the MCT and observed TOD via a full Bayesian inference framework. It presents robust circadian detection and inference with varying levels of biological variation of MCT, which enhance the power and accuracy of circadian analysis.
Supplementary Material
Supplement to “Bayesian rhythmic model for jointly detecting circadian biomarkers and predicting molecular circadian time in human post-mortem brain transcriptome”
The supplement contains detailed posterior inference procedures for the BayCT and BayCT-M models, along with additional simulation results and supplementary figures.
Acknowledgments.
The authors would like to thank the anonymous referees, an Associate Editor and the Editor for their constructive comments that improved the quality of this paper.
Funding.
This work was supported by NIH Award Number R01LM014142 and R01CA285337. This research was supported in part by the University of Pittsburgh Center for Research Computing and Data, RRID:SCR_022735, through the resources provided. Specifically, this work used the HTC cluster, which is supported by NIH award number S10OD028483.
Funding Statement
This work was supported by NIH Award Number R01LM014142 and R01CA285337. This research was supported in part by the University of Pittsburgh Center for Research Computing and Data, RRID:SCR_022735, through the resources provided. Specifically, this work used the HTC cluster, which is supported by NIH award number S10OD028483.
REFERENCES
- Agostinelli F., Ceglia N., Shahbaba B., Sassone-Corsi P. and Baldi P. (2016). What time is it? Deep learning approaches for circadian rhythms. Bioinformatics 32 i8–i17. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Anafi R. C., Francey L. J., Hogenesch J. B. and Kim J. (2017). CYCLOPS reveals human transcriptional rhythms in health and disease. Proceedings of the National Academy of Sciences of the United States of America. 10.1073/PNAS.1619320114 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Aschoff J. (1960). Exogenous and endogenous components in circadian rhythms. In Cold Spring Harbor symposia on quantitative biology 25 11–28. Cold Spring Harbor Laboratory Press. [DOI] [PubMed] [Google Scholar]
- Auerbach B. J., FitzGerald G. A., Li M., Auerbach B. J., FitzGerald G. A. and Li M. (2022). Tempo: an unsupervised Bayesian algorithm for circadian phase inference in single-cell transcriptomics. 10.1038/S41467-022-34185-W [DOI] [PMC free article] [PubMed]
- Braun R., Kath W. L., Iwanaszko M., Kula-Eversole E., Abbott S. M., Reid K. J., Zee P. C. and Allada R. (2018). Universal method for robust detection of circadian state from gene expression. Proceedings of the National Academy of Sciences of the United States of America. 10.1073/PNAS.1800314115 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Butte A. J. and Hastie T. (2016). ZeitZeiger: supervised learning for high-dimensional data from an oscillatory system. 10.1093/NAR/GKW030 [DOI] [PMC free article] [PubMed]
- Cederroth C. R., Albrecht U., Bass J., Brown S. A., Dyhrfjeld-Johnsen J., Gachon F., Green C. B., Hastings M. H., Helfrich-Förster C., Hogenesch J. B. et al. (2019). Medicine in the fourth dimension. Cell metabolism 30 238–250. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chen C.-Y., Logan R. W., Ma T., Lewis D. A., Tseng G. C., Sibille E. and McClung C. A. (2016). Effects of aging on circadian patterns of gene expression in the human prefrontal cortex. Proceedings of the National Academy of Sciences 113 206–211. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cornelissen G. (2014). Cosinor-based rhythmometry. Theoretical Biology and Medical Modelling 11 1–24. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Crowley S. J. and Eastman C. I. (2018). Free-running circadian period in adolescents and adults. Journal of sleep research 27 e12678. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dallmann R., Okyar A. and Lévi F. (2016). Dosing-time makes the poison: circadian regulation and pharmacotherapy. Trends in molecular medicine 22 430–445. [DOI] [PubMed] [Google Scholar]
- DAMIEN P. and Walker S. (1999). A full Bayesian analysis of circular data using the von Mises distribution. The Canadian Journal of Statistics/La Revue Canadienne de Statistique 291–298. [Google Scholar]
- Ding H., Meng L., Liu A. C., Gumz M. L., Bryant A. J., Mcclung C. A., Tseng G. C., Esser K. A. and Huo Z. (2021). Likelihood-based tests for detecting circadian rhythmicity and differential circadian patterns in transcriptomic applications. Briefings in Bioinformatics 22 bbab224. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Eastman C. I., Suh C., Tomaka V. A. and Crowley S. J. (2015). Circadian rhythm phase shifts and endogenous free-running circadian period differ between African-Americans and European-Americans. Scientific reports 58381. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Finger A.-M. and Kramer A. (2021). Mammalian circadian systems: Organization and modern life challenges. Acta Physiologica 231 e 13548. [DOI] [PubMed] [Google Scholar]
- Glynn E. F., Chen J. and Mushegian A. R. (2006). Detecting periodic patterns in unevenly spaced gene expression time series using Lomb-Scargle periodograms. Bioinformatics 22 310–316. [DOI] [PubMed] [Google Scholar]
- Hughes M. E., Hogenesch J. B. and Kornacker K. (2010). JTK_CYCLE: an efficient nonparametric algorithm for detecting rhythmic components in genome-scale data sets. Journal of biological rhythms 25 372–380. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jones S. E., Lane J. M., Wood A. R., van Hees V. T., Tyrrell J., Beaumont R. N., Jeffries A. R., Dashti H. S., Hillsdon M., Ruth K. S. et al. (2019). Genome-wide association analyses of chronotype in 697,828 individuals provides insights into circadian rhythms. Nature communications 10 343. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ketchesin K. D., Zong W., Hildebrand M. A., Seney M. L., Cahill K. M., Scott M. R., Shankar V. G., Glausier J. R., Lewis D. A., Tseng G. C. et al. (2021). Diurnal rhythms across the human dorsal and ventral striatum. Proceedings of the National Academy of Sciences 118 e2016150118. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Liang S., Wang F., Han J. and Chen K. (2020). Latent periodic process inference from single-cell RNA-seq data. Nature communications 111441. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mure L. S., Le H. D., Benegiamo G., Chang M. W., Rios L., Jillani N., Ngotho M., Kariuki T., Dkhissi-Benyahya O., Cooper H. M. et al. (2018). Diurnal transcriptome atlas of a primate across major neural and peripheral tissues. Science 359 eaao0318. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Pittendrigh C. S. (1960). Circadian rhythms and the circadian organization of living systems. In Cold Spring Harbor symposia on quantitative biology 25 159–184. Cold Spring Harbor Laboratory Press. [DOI] [PubMed] [Google Scholar]
- Printezi M. I., Kilgallen A. B., Bond M. J., Štibler U., Putker M., Teske A. J., Cramer M. J., Punt C. J., Sluitter J. P., Huitema A. D. et al. (2022). Toxicity and efficacy of chronomodulated chemotherapy: a systematic review. The Lancet Oncology 23 e129–e143. [DOI] [PubMed] [Google Scholar]
- Ruben M. D., Smith D. F., FitzGerald G. A. and Hogenesch J. B. (2019). Dosing time matters. Science 365 547–549. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Schernhammer E. S., Laden F., Speizer F. E., Willett W. C., Hunter D. J., Kawachi I. and Colditz G. A. (2001). Rotating night shifts and risk of breast cancer in women participating in the nurses’ health study. Journal of the national cancer institute 93 1563–1568. [DOI] [PubMed] [Google Scholar]
- Tähkämö L., Partonen T. and Pesonen A.-K. (2019). Systematic review of light exposure impact on human circadian rhythm. Chronobiology international 36 151–170. [DOI] [PubMed] [Google Scholar]
- Talamanca L., Gobet C. and Naef F. (2023). Sex-dimorphic and age-dependent organization of 24-hour gene expression rhythms in humans. Science 379 478–483. [DOI] [PubMed] [Google Scholar]
- Ueda H., Chen W., Minami Y., Honma S., Honma K., Iino M. and Hashimoto S. (2004). Molecular-timetable methods for detection of body time and rhythm disorders from single-time-point genomewide expression profiles. Proceedings of the National Academy of Sciences of the United States of America. 10.1073/PNAS.0401882101 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wegrzyn L. R., Tamimi R. M., Rosner B. A., Brown S. B., Stevens R. G., Eliassen A. H., laden F., Willett W. C., Hankinson S. E. and Schernhammer E. S. (2017). Rotating night-shift work and the risk of breast cancer in the nurses’ health studies. American journal of epidemiology 186 532–540. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhang R., Lahens N. F., Ballance H. I., Hughes M. E. and Hogenesch J. B. (2014). A circadian gene expression atlas in mammals: implications for biology and medicine. Proceedings of the National Academy of Sciences 111 16219–16224. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zong W., Seney M. L., Ketchesin K. D., Gorczyca M. T., Liu A. C., Esser K. A., Tseng G. C., McClung C. A. and Huo Z. (2023). Experimental design and power calculation in omics circadian rhythmicity detection using the cosinor model. Statistics in Medicine 42 3236–3258. [DOI] [PMC free article] [PubMed] [Google Scholar]




