bioRxiv Science⌕ Search

bioRxiv · 10.1101/2025.05.09.653146

FEMA-Long: Modeling unstructured covariances for discovery of time-dependent effects in large-scale longitudinal datasets

Abstract

While linear mixed-effects (LME) models are common for analyzing longitudinal data, most users rely on random intercepts or simple stationary covariance, due to unavailability of computationally tractable solutions. Here, we extend the Fast and Efficient Mixed-Effects Algorithm (FEMA) and present FEMA-Long, a computationally tractable approach to flexibly modeling longitudinal covariance suitable for high-dimensional data. FEMA-Long can: i) model unstructured covariance, ii) model covariates as smooth functions using splines, iii) discover time-dependent effects of covariates with spline interactions, and iv) use these flexible longitudinal modeling strategies to perform longitudinal genome-wide association studies and discover time-dependent genetic effects, in a computationally scalable manner, suitable for high-dimensional data. Through extensive simulations, we show that estimates from FEMA-Long are accurate, while being up to several thousand times faster and with minimal carbon footprint. To show the utility of FEMA-Long for discovering novel biological signal, using data from the Norwegian Mother, Father and Child Cohort Study (MoBa), we performed a longitudinal genome-wide association study with non-linear SNP-by-time interaction on length, weight, and BMI of 68,273 infants with up to six measurements in the first year of life. We found dynamic patterns of random effects including time-varying heritability and genetic correlations, as well as several genetic variants showing time-dependent effects, highlighting the applicability of FEMA-Long to enable novel discoveries. FEMA-Long is available at: https://github.com/cmig-research-group/cmig_tools. Author summaryMost large-scale datasets have complexities such as repeated measures, related individuals, or other dependencies across samples, preventing the use of standard regression approaches for analysis. In such circumstances, linear mixed-effects modeling is often employed. However, for high-dimensional datasets, fitting these models is quite challenging. Further, most standard uses of linear mixed-effects modeling focus on simpler covariance models, which may not hold. Here, we introduce FEMA-Long, a novel computationally efficient analytical framework for fitting linear mixed-effects models with time-varying random effects, as well as allowing the effect of the covariates to change smoothly over time by using splines. This is particularly relevant when, for example, studying the effect of genetic variants on phenotypes, where the effects could be non-linear over time. The FEMA-Long framework allows time-varying heritability as well as discovery of genetic variants that show time-dependent effects. By performing a genome-wide association study on data from the Norwegian Mother, Father and Child Cohort Study (MoBa) using FEMA-Long, we show the discovery of genetic variants with time-dependent effects on infant length, weight, and BMI during the first year of life. Our results highlight the potential of using FEMA-Long to make novel discoveries that can lead to biological insights on the genetics of complex traits as well as improve the potential of using genetics for personalized prediction.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Parekh, P., Parker, N., Pecheva, D., Frei, E., Vaudel, M., Smith, D. M., Rigby, A., Jahołkowski, P., Sonderby, I. E., Birkenaes, V., Bakken, N. R., Fan, C. C., Makowski, C., Kopal, J., Loughnan, R. J., Hagler, D. J., van der Meer, D., Johansson, S., Njolstad, P. R., Jernigan, T. L., Thompson, W. K., Frei, O., Shadrin, A. A., Nichols, T. E., Andreassen, O. A., Dale, A. M.. 2025-05-15. FEMA-Long: Modeling unstructured covariances for discovery of time-dependent effects in large-scale longitudinal datasets. https://doi.org/10.1101/2025.05.09.653146

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

A genetic screen to identify host factors required for commensal bacterial adherence to the gut epithelia

Bacterial adherence to gut epithelial cells likely involves host genetic components. We isolated a gut commensal bacterium, Lelliottia jeotgali, that can robustly colonize C. elegans through attachment to intestinal epithelial cells. Here, we developed a novel screen in C. elegans to identify host genes required for microbiome bacterial colonization. Using transgenic L. jeotgali strain expressing tdTomato, we conducted forward genetic screens in C. elegans to select for mutants that completely lost colonization. We identified multiple allelic mutations in five different C. elegans genes, termed knockout of Lelliottia adherence (kola) mutants, with a near complete loss of adherence. Each of kola-1-5 is uncharacterized and predicted to encode for a secreted or membrane-bound protein. We also identified gly-5, a GalNAc transferase that initiates O-linked glycosylation. Overall, we describe the first C. elegans screen to identify host factors that control microbiome bacterial colonization in the gut.

genetics↗

Deciphering the Dynamics of Leukemogenic Transformation from Clonal Hematopoiesis in Congenital Neutropenia

Inherited neutropenia syndromes, severe congenital neutropenia (CN) and Shwachman-Diamond syndrome (SDS), confer a high cumulative risk of MDS and AML. It is not yet clear which somatic mutations, in which combination, allele frequency and sequence identify patients at high risk. We analyzed clonal hematopoiesis (CH) in the largest representative cohort of inherited neutropenia patients to date - 658 samples from 309 patients - using error-corrected panel sequencing with longitudinal sampling. This was complemented in selected cases by single-cell DNA sequencing and genotyping of single-cell derived colonies. CH was detected in early childhood, affecting 37.7% of CN and 60% of SDS patients. The somatic mutation burden remained essentially unchanged over decades. In CN, CSF3R mutations were dominant across genetic subtypes, while additional mutations were rare and included ASXL1, TET2, and DNMT3A. ASXL1 mutations most frequently co-occurred with CSF3R mutations. Co-occurring CSF3R and TP53 mutations were only found in SRP54-CN and CLPB-CN patients. In SDS, TP53 was the most frequently mutated gene, followed by low-prevalence somatic mutations in DNMT3A, IDH1, PTPN11, and RUNX1. In CN-MDS/AML, RUNX1 and SETBP1 mutations emerged shortly before progression to MDS/AML, and membrane-proximal CSF3R mutations only at the leukemic stage. In SDS, biallelic TP53-mutant clones expanded prior to transformation, and a variant allele frequency (VAF) of dominant TP53 clone above 0.074 discriminated between patients who progressed and those who did not. Peripheral blood reflected bone marrow genotype for most key drivers. Leukemic transformation in inherited neutropenia is therefore not stochastic, but rather follows a defined mutational sequence, initiated in childhood.

genetics↗

A largely shared genetic architecture underlies Saccharomyces cerevisiae persistence across different mouse host genotypes

The extent to which interactions between microbial and host genotypes shape opportunistic pathogen persistence within hosts is an important open question. To assess the contribution of these interactions to persistence, we used Saccharomyces cerevisiae , a genetically tractable model for studying opportunistic fungal persistence in mammalian hosts. A pooled panel of barcoded haploid segregants from a cross between a laboratory strain and a clinical isolate, together with both parents, was introduced intravenously into seven genetically diverse mouse strains. We measured the relative persistence of segregants in mouse brains and livers using barcode sequencing. Persistence showed transgressive segregation in both organs. On average across the two organs, yeast genotype explained 45.2% of the variance in segregant persistence, whereas yeast genotype-by-host genotype interactions explained only 2.9%. Linkage mapping showed that loci detected in more host genotypes generally explained more phenotypic variance than those detected in fewer host genotypes. At some loci, genetic variation correlated with increased yeast persistence across multiple organs (general loci) while at others increased persistence in one organ came at the cost of decreased persistence in another (antagonistic loci). General loci contributed disproportionately to brain persistence, whereas liver persistence reflected contributions from both classes. The clinical parent showed greater persistence than the laboratory parent in every host-organ combination, and the additive effects of detected loci predicted the direction of this advantage. Overall, this work shows that in this system, relative microbial persistence is polygenic, with a strong additive component and only a very small contribution from microbial genotype-by-host genotype interactions.

genetics↗