Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2025 May 23;122(21):e2411930122. doi: 10.1073/pnas.2411930122

Learning to estimate sample-specific transcriptional networks for 7,000 tumors

Caleb N Ellington a,1, Benjamin J Lengerich b,c, Thomas B K Watkins d, Jiekun Yang b,c, Abhinav K Adduri a, Sazan Mahbub a, Hanxi Xiao e, Manolis Kellis b,c,1, Eric P Xing a,f,g,1
PMCID: PMC12130817  PMID: 40408406

Significance

Network estimation is essential for understanding the structure and function of biological systems, but current statistical approaches fail to capture intersubject heterogeneity or cross-modality information flow, both of which are needed for understanding complex phenotypes and pathologies. We introduce contextualized network inference, leveraging multiview contextual metadata to capture similarities and differences among heterogeneous observations during network estimation. Sharing information across contexts enables inference at sample-specific resolution, thus quantifying variation between subjects and revealing context-specific network rewiring. Applied to tumor-specific transcriptional network inference using clinical, molecular, and multiomic data, contextualized networks improve accuracy, generalize to unseen cancer types, and identify additional prognostic tumor subtypes. By tailoring disease models to each sample, contextualized networks promise to enable precision medicine at extreme resolution.

Keywords: personalized models, networks, multitask learning, heterogeneity, cancer

Abstract

Cancers are shaped by somatic mutations, microenvironment, and patient background, each altering gene expression and regulation in complex ways, resulting in heterogeneous cellular states and dynamics. Inferring gene regulatory networks (GRNs) from expression data can help characterize this regulation-driven heterogeneity, but network inference requires many statistical samples, limiting GRNs to cluster-level analyses that ignore intracluster heterogeneity. We propose to move beyond coarse analyses of predefined subgroups by using contextualized learning, a multitask learning paradigm that uses multiview contexts including phenotypic, molecular, and environmental information to infer personalized models. With sample-specific contexts, contextualization enables sample-specific models and even generalizes at test time to predict network models for entirely unseen contexts. We unify three network model classes (Correlation, Markov, and Neighborhood Selection) and estimate context-specific GRNs for 7,997 tumors across 25 tumor types, using copy number and driver mutation profiles, tumor microenvironment, and patient demographics as model context. Our generative modeling approach allows us to predict GRNs for unseen tumor types based on a pan-cancer model of how somatic mutations affect gene regulation. Finally, contextualized networks enable GRN-based precision oncology by providing a structured view of expression dynamics at sample-specific resolution, explaining known biomarkers in terms of network-mediated effects and leading to subtypings that improve survival prognosis. We provide a SKLearn-style Python package https://contextualized.ml for learning and analyzing contextualized models, as well as interactive plotting tools for pan-cancer data exploration at https://github.com/cnellington/CancerContextualized.


Tumors are heterogeneous, developing through clonal evolution that accumulates mutations, including cancer-driving single-nucleotide variants (SNVs) and somatic copy number alterations (SCNAs). In addition to tumor cell-intrinsic changes, tumors develop in and are shaped by a microenvironment that includes immune cells, the extracellular matrix, blood vessels, and surrounding cells. This extensive heterogeneity necessitates heterogeneous treatments targeted to individual patients. However, estimating treatment effects and patient prognosis at patient-specific resolution implies an n-of-1 approach to treatment that is technically and temporally infeasible. Instead, methods have historically sought to identify prognostic biomarkers that stratify patients into tumor subtype cohorts, and predictive biomarkers that identify patients who often respond to treatment. The Cancer Genome Atlas* (TCGA) derives prognostic subtypes via cluster analysis on clinical and molecular data, including cancer-driving SNVs, SCNAs, DNA methylation, mitochondrial DNA, RNA-seq, miRNA, protein abundance arrays, histology images, patient demographics, and/or immunological data, and further identifies prognostic biomarkers as features that differentiate these clusters (125). While clusters can be analyzed in terms of feature stratification, clustering ignores the latent feature interactions and hierarchical feature relationships that define biological systems. Biomarkers identified by cluster analysis have no mechanistic interpretation and require further experimentation to validate their role in tumorigenesis and tumor pathology. Consequently, the identification of biomarkers using somatic DNA alterations or gene expression patterns has proved challenging (26). Addressing the shortcomings of cluster analysis, we focus on three questions: 1) how do we model the mechanisms of molecular interactions as they relate to tumorigenesis and treatment efficacy, 2) how do we identify prognostic biomarkers for rare diseases and outlier patients that are too sparsely sampled to cluster, and 3) how can we quantify the heterogeneity of tumor pathology, which is widely acknowledged but poorly understood, and utilize multiview phenotypic, molecular, and environmental data to understand the forces driving heterogeneity?

GRNs help us to investigate these questions simultaneously. GRNs represent cellular circuitry, both responding to biomolecular stimulus and driving tumorigenesis. Interactions between disparate biomolecular entities can be identified at the cellular level through transcriptomic regulation, both directly and indirectly. In theory, tumor-specific GRNs capture regulatory redundancy and fragility in individual cancers. Relating tumor-specific GRNs to phenotypic, environmental, and multiomic features can reveal how these features relate to tumor pathology and the robustness of therapeutic targets GRN restructuring and reorganization. Single-cell and multiomic profiling have advanced the potential for studying highly context-specific regulatory relationships in GRNs, but computational methods of inferring GRNs continue to rely on partitioning samples into homogeneous sets of samples (2730). Partition-based modeling is insufficient to capture high-resolution or continuously rewiring GRNs, which is a problem for precision oncology because some types of cancer neither form discrete clusters (31) nor cluster by tissue of origin (32).

More generally, the increase of dataset complexity, heterogeneity, and size, has motivated the development of methods of “personalized” models across several application areas (3336). Personalized models seek to represent heterogeneous distributions as sample-specific distributions XiPi(X), where i indexes a sample Xi and Pi corresponds to the sample-specific distribution. In the most difficult case of sample-specific inference, each Pi is observed only a single time and hence information must be shared across samples.

Toward this aim of sharing information across samples, most personalized models make the simplifying assumption that all Pi belong to the same family; i.e., XiP(Xθi). Through this lens of personalized modeling, understanding sample heterogeneity is reframed as estimating data distributions with sample-specific parameters. Some methods provide sample-specific estimators without additional information by imposing strong biological priors (37) or using a sample-left-out approach (38, 39), but these lack desirable properties such as the ability to generalize to new samples or even test model performance on held-out data. Due to the difficulty of estimating sample-specific parameters, most methods make use of side information (e.g., sample metadata) as a contextual representation of sample-to-sample variation (4044).

Given observations X and contextual metadata C, we have

P(X,C)θdθP(Xθ)P(θC),

where P(Xθ) defines the context-specific model, and P(θC) defines a context-specific density of model parameters θ, which we call the context encoder. One of the earliest ways to apply context encoding toward sample-specific parameter inference was the linear varying-coefficient (VC) model (44) in which linear regression parameters are predicted from context using a learned linear mapping or kernel density estimator. Extensions of this regime have been widespread (4042, 45), but typically focus on allowing models to vary over only a few continuous covariates (4446), or a small number of groups (4042)

Contextualized modeling (47, 48), combines the adaptability of VC models with the power of modern deep learning architectures by implementing the context encoder as a Dirac delta distribution defined by a deterministic deep neural network f,

P(θC)=δ(θf(C)),

thus benefiting from a wide range of architectures targeting high-dimensional and complex data types. When contexts are unique to each sample, the inferred models are sample-specific.

P(Xiθi)=P(Xif(Ci)).

The contextualization framework also introduces the concept of model archetypes to combat the high-variance and uninterpretability of neural networks (Fig. 1D). All sample-specific models are spanned by the set of model archetypes, constraining and explaining their variation through the context encoding which parameterizes this space (Materials and Methods). These archetypes, also learned from data, link the heterogeneity of sample-specific models to variation in the context encoding and enable the sharing of information between sample-specific model inference tasks. This framework has been applied to estimating heterogeneous linear effects (47, 4951), but contextualized models have yet to be extended to the more general graphical modeling regime.

Fig. 1.

Fig. 1.

(A) Traditional modeling approaches assume each training cohort or (sub)population is homogeneous and samples are identically distributed. Cohorts must be large enough to allow robust inference, presenting a tradeoff between personalization and power. (B) Contextualization assumes model parameters are a function of context, allowing powerful context-specific inference without a priori clustering of subpopulations or assuming homogeneity. Contexts can be unique to each sample, permitting sample-specific model inference. (C) Sample-specific models reveal population heterogeneity, relate rare pathological mechanisms to more common ones, and provide data views for prognosis and biomarker identification. (D) Graphical depiction of the deep learning framework. Sample context is used to predict weights on each of the model archetypes, which we call the model subtype. The sample-specific network is estimated as the tensor dot product of archetypal networks and subtype weights. The network archetypes are learned simultaneously alongside the context encoder using backpropagation.

To infer tumor-specific GRNs that account for patient-to-patient heterogeneity, we propose to reframe GRN inference within the contextualized modeling paradigm (48), thereby sharing information among tumor-specific inference tasks by relating these tasks through their clinical and molecular contexts (Fig. 1). By recasting networks as the output of a learnable context encoder P(θC), our approach shares statistical power between samples while also permitting fine-grained variation to capture the complexity of sample-specific contexts such as tissue-of-origin, somatic mutation landscape, tumor microenvironment, and clinical measurements. We formulate three differentiable objectives for three types of GRNs (Markov, Neighborhood, and Correlation networks) under the contextualized modeling paradigm, and estimate sample-specific GRNs which enable sample-specific analyses of latent regulatory processes. We apply this computational framework to 7,997 tissue samples from TCGA, using bulk gene expression data as network samples X, and immune cell infiltration metrics, patient demographics, and cancer-driver SCNAs and SNVs as context C. We find that contextualized networks improve prediction of held-out expression data and reveal latent heterogeneity which has previously been obscured by partition-based methods of network inference.

Results

We introduce contextualized networks, which learn to personalize parametric network models based on context. This approach to network modeling enjoys two benefits over traditional network estimators: it scales across contexts to improve the accuracy of all networks as unique contexts are included, and it allows the incorporation of multiview context information to personalize the model. In studies on both simulated and real data, contextualized networks achieve high accuracy with as few as one training sample per context, while also generalizing to entirely unseen contexts. On real data, we apply contextualized networks to infer tumor-specific GRNs for 7,997 tumors, which learn to model the effect of individual clinical and molecular contexts on GRN structure and parameters, revealing latent GRN-based drivers of GRN dysregulation and tumor heterogeneity. We evaluate our 7997 tumor-specific GRNs for clinical and biological insights, identifying robust state-of-the-art prognostic subtypes for thyroid carcinoma. Finally, patient-specific networks relate prognostic biomarkers to changes in specific regulatory modules and gross GRN organization and identify candidate biomarkers for further investigation.

Unification of Markov, Correlation, and Neighborhood Network Objectives.

Statistical models for GRN inference can often be categorized as variants of four probabilistic models: Markov networks, which represent pairwise dependencies, Pearson’s correlation networks, which represent pairwise correlations, neighborhood selection networks, which represent each node as a linear combination of its neighbors, and Bayesian networks, and which represent directed and acyclic interactions. We focus on Markov, correlation, and neighborhood networks, unifying these models through linear reparameterization (Materials and Methods), thus enabling them to be contextualized uniformly with no change to the underlying contextualization framework.

Furthermore, linear parameterization gives a differentiable objective for optimizing each model, where the linear residual errors define mean-squared errors (MSEs) for measuring goodness-of-fit, which are also proportional to the negative log-likelihood of the data under the chosen network model (Materials and Methods). Beyond the modularity of this approach and its alignment with gradient-based optimization methods, MSEs enable benchmarking model performance in the absence of gold-standard networks with known structures. Thus, we enable quantitative comparison against baseline methods for network modeling even when tumor networks are too heterogeneous and individualized to determine gold-standard network structures.

Simulations.

The convergence rate of traditional network estimators is based on the number of experimental replicates, i.e., independent and identically distributed (i.i.d.) data draws. However, scaling within an i.i.d. domain is orthogonal to the goals of sample-specific modeling in heterogeneous regimes. Contextualization addresses this by providing a mechanism to scale model performance across data domains. In addition to the traditional route of increasing domain-specific or context-specific data collection, contextualization also scales performance with the total contexts available to the model, improving with the addition of unique experimental conditions. Arranged as axes, we describe these as “vertical” and “horizontal” scaling, respectively. We compare vertical and horizontal scaling properties of contextualized, context-grouped, and population model estimators by simulating known networks. We simulate a context-varying Gaussian, which allows us to control the number of samples per context and total contexts available to the model. Simulating Gaussians also allows us to evaluate the recovery of true parameters with our Gaussian-based network models.

CUnif[1,1],
XN00,1CC1.

Contextualized models are the only method capable of horizontal scaling, which drastically reduces the burden of vertical scaling (Fig. 2). With sufficient horizontal scaling, contextualized networks remain accurate even in sample-specific regimes and converge to true network parameters by learning to relate heterogeneous data through contextual metadata. However, with insufficient horizontal scaling, contextualized networks can be inferior to context-grouped or population modeling methods. For data domains with sample scarcity, contextualization presents an approach for improving model performance by sharing information across different contexts.

Fig. 2.

Fig. 2.

Error contours of Markov network estimators measured across experimental conditions (contexts) and experimental replicates (samples per context). Traditional estimators only scale vertically, improving error with experimental replicates or i.i.d. data draws. Modeling with heterogeneous or observational data requires estimators to scale horizontally, improving with more conditions or contexts. Contextualized modeling achieves this by learning to encode contextual information into model parameters. Population estimates a single model for all contexts, Grouped estimates a model for each context separately. Parameter MSE is taken between the predicted and ground truth precision matrices of the Markov networks and averaged over five bootstrapped runs.

Contextualized Networks Improve Likelihood of Held-Out Expression Profiles.

Contextualization improves the fit of network models to gene expression data (Table 1). We benchmark the contextualized networks by comparing them against several granularities of partition-based models: 1) a population network model that estimates the same network for all samples, 2) cluster-specific networks that are estimated independently for each cluster of contextual information, and 3) disease-specific networks that are estimated independently for each cancer type. For all three network models, we evaluate the fit of the network model to actual expression data. These predictive performances are measured as MSEs between predicted and observed expression data, a convenient result of our linearization and unification of correlation, Markov, and neighborhood selection objectives (Materials and Methods). Relative to disease-specific model inference (the best baseline method), contextualized networks reduce modeling error on average by 14.6% for Markov networks, 18.1% for neighborhood selection, and 20.2% for correlation networks. Contextualized networks achieve this improved predictive performance by accounting for contextual dependencies in model parameters without imposing prior assumptions on the form of these dependencies. As a result, contextualized graphical models capture highly localized and context-specific effects that can be overlooked by group-level modeling approaches (e.g., cluster-specific, disease-specific models).

Table 1.

Error of inferred networks on pan-cancer data

Markov Neighborhood Correlation
Population 0.985±0.006 0.984±0.004 0.963±0.000
Cluster-specific 0.365±0.014 0.349±0.012 0.683±0.052
Disease-specific 0.368±0.003 0.351±0.003 0.673±0.002
Contextualized 0.322±0.014 0.296±0.013 0.529±0.019
Error Reduction 14.6%±3.4% 18.1%±3.3% 20.2%±3.4%

For all three types of networks (Markov, Neighborhood, and Correlation), we report the MSE of each network versus observed gene expression (Materials and Methods). Results are aggregated from 30 runs with a bootstrapped training set and randomly initialized model weights, evaluated on a held-out set. Reported values are the population-averaged MSEs of the bootstrap-averaged network models. Confidence intervals are the SD over bootstraps of the population-averaged MSEs from each bootstrap. Error reduction is reported relative to disease-specific modeling.

Contextualized Networks Share Power Between All Cancer Types and Infer Models for Unseen Diseases.

Contextualization relates transcriptional regulation to genomic variation through a context encoder. During training, the encoder learns to modify the parameters of a downstream network model in response to contextual signals. At test time, the encoder uses learned context signals to generalize between sparsely sampled contexts. Splitting model performance by disease, contextualization sets a state-of-the-art on 22 of 25 disease types (Fig. 3A). Rare or undersampled diseases like kidney chromophobe and glioblastoma multiforme can especially benefit from contextual signals learned from well-sampled diseases in similar tissues. In disease-specific modeling, these smaller subpopulations must either be lumped within a larger tissue group, ignoring subpopulation heterogeneity, or modeled individually, sacrificing statistical power in a “large p small n” regime. For example, there are n=75 training samples from kidney chromophobe patients, while each disease-specific network has 50×50 edges, or p=2,500 parameters; estimating a disease-specific network from such limited data would be prohibitively high-variance for disease-specific modeling but is straightforward for contextualized networks.

Fig. 3.

Fig. 3.

Performance of Contextualized Markov Networks broken down by disease type. (A) Testing on a random split of held-out patients. MSE for Markov networks is defined in Materials and Methods. Relative MSE scales the MSEs of all models against the Disease-specific MSEs. (B) Disease-fold cross-validation, in which each of the 25 disease types is held out from training and evaluated only at testing time. We evaluate in terms of absolute MSEs, as Disease-specific network inference cannot be applied in this regime. Results are from 30 bootstrapped runs for each hold-out disease type and the hold-out patient set. Bar height is the disease-averaged error metric of the bootstrap-averaged network models. Error bars are the SD over bootstraps of the disease-averaged error metric of the network models.

Furthermore, contextualization adapts models to unseen contexts at test time, responding to even extreme distribution shift (Fig. 3B). For completely unseen contexts, the context encoder can still leverage learned relationships between contexts and models to infer zero-shot network models on demand. We evaluate model performance through a disease-fold cross-validation, where we hold out each of the 25 disease types in turn and learn to contextualize networks on the remaining 24. Notably, disease-specific modeling cannot be applied in this regime. In contrast, contextualized networks improve model performance and reduce error on 22 of 25 hold-out diseases, even when generalizing to an entirely new disease type.

Contextualized Networks Reveal Tissue-Specific Regulatory Modules.

Contextualization produces context-specific network models, resulting in patient-specific networks for all 7,997 patients in our TCGA dataset. Organizing patients according to their network models reveals that tissue type is a primary driver, but not the sole factor in determining gene–gene interactions (Fig. 4). In particular, diseased networks differ drastically from healthy networks, while gene and PCA-derived metagene expression profiles are still largely tissue-derived. Additionally, intradisease and interdisease subtypes are visible even at pan-cancer resolution, making obvious common tumorigenesis mechanisms that underly noisy gene expression dynamics. These subtypes are further explored in Fig. 5 and in SI Appendix. We also provide tools for on-demand and interactive plotting from population-level to disease-level to sample-specific at https://github.com/cnellington/CancerContextualized.

Fig. 4.

Fig. 4.

UMAP embeddings, colored by disease type, reveal the organization of different data views with respect to known disease types. Context views are used as input for the context encoder. Transcriptomic views recapitulate disease types, relating to known cell-of-origin patterns (32). Contextualized networks reorganize patients to refine and separate disease types into subtypes based on tumor-specific GRNs. Refined network-based subtypes are further explored in Fig. 5 and SI Appendix.

Fig. 5.

Fig. 5.

Exploration of network subtypes for thyroid carcinoma (A) looking at correlated clinical information, arm-level copy alterations, gene-level copy alterations, and gene-level single nucleotide variations, and (B) comparing against state-of-the-art reference subtypes (52). An interactive version of this plot can be produced on-demand with tools at https://github.com/cnellington/CancerContextualized, and replotted for other diseases or cohorts.

Contextualized Networks Identify Additional Prognostic Subtypes for Thyroid Carcinoma.

Contextualized GRNs identify significantly prognostic molecular subtypes for thyroid carcinomas (THCAs) (Fig. 5). We produce GRN-based subtypes by clustering samples according to the sample-specific parameters of Contextualized GRNs. To benchmark their prognostic ability, we compare our GRN-based subtypes against state-of-the-art reference subtypes (52), evaluating the survival splits of both subtyping methods while ensuring the number of clusters are the same (Fig. 5B). Previous state-of-the-art molecular subtypes are highly consistent across studies, but not prognostic (52, 53). Contextualized GRN-based subtyping reveals several clinically meaningful subtypes: one with extremely poor survival prognosis (THCA.Net.1) and two with no recorded deaths (THCA.Net.2 and THCA.Net.3). These three GRN-based subtypes stratify the previous state-of-the-art “RAS-like” molecular subtype (52). Contextualization allows us to relate these GRN clusters to clinical and molecular contexts associated with each subtype (Fig. 5A). THCA.Net.1’s poor prognosis is defined by chromosomal instability and tumor ploidy. THCA.Net.2 and THCA.Net.3 both show enrichment for HRAS mutations. THCA.Net.2 and THCA.Net.3 are mainly differentiated by patient demographic reports, with THCA.Net.2 containing almost exclusively patients with no race reported. This split, as well as the race and sex-related subgroups in THCA.Net.4 and THCA.Net.5, are supported by known gender and race disparities related to thyroid cancer presentation (54, 55). Contextualized networks combine both clinical and molecular data sources toward a cohesive molecular representation of tumor state, and relate the resulting tumor-specific GRNs back to contexts to identify stratifying biomarkers in all contextual data types.

Contextualized Networks Unify Pan-cancer Subtypes and Improve Survival Prediction.

We repeat the same procedure for all 25 tumor types in our dataset and compare against reference molecular subtypes, keeping the number of clusters matched to each study (124). For diseases where no reference subtypes exist or can be mapped to our dataset, we select the number of network subtypes based on the silhouette score of the network subtype clusters. We find that network-based subtypes are more prognostic on average than both expression-derived subtypes and state-of-the-art reference subtypes (Table 2). Previous molecular subtypes also exclude demographic and immune data, which contextualization naturally incorporates alongside molecular features, learning to relate these disparate feature sets as they relate to GRN restructuring. Subtype comparisons by disease can be plotted on-demand with tools at https://github.com/cnellington/CancerContextualized. In the majority of other tumor types, contextualized modeling does not identify sex or race as significant factors driving GRN variation. However, the ones that do include breast invasive carcinoma, esophageal carcinoma, and kidney renal clear cell carcinoma, which have known race and sex disparities (25, 56, 57).

Table 2.

Stratification disease subtypes in terms of survival

Average log(P) Expression Reference Networks
Multivariate log-rank test 8.53 9.65 11.24
Minimum Pairwise log-rank test 8.27 9.55 11.71

Survival tests quantify the difference in survival distributions between groups as a P-value. Contextualized networks improve on both tests on average by several orders of magnitude compared with other subtyping methods. The multivariate log-rank test quantifies overall stratification of survival distributions across all subtypes. The minimum pairwise result is the minimum P-value of all pairwise subtype tests, showing the maximum survival stratification between prognostic subtypes.

In addition to comparing the benefit of organizing patients using transcriptional network similarities through subtyping, we also run a survival regression based on different patient representations (Table 3). We find that tumor-specific networks lead to more accurate survival predictors than previous molecular subtypes on both a per-patient and per-tissue basis.

Table 3.

Survival regressors trained on different patient representations evaluated in terms of concordance index on a held-out set

Concordance Index Expression Reference Networks
Patient average 0.620 0.598 0.647
Tissue average 0.565 0.569 0.592

Expression uses gene expression as input to the regressor. Reference uses curated molecular subtypes for each patient. Networks use sample-specific transcriptional networks as input to the regressor. One regressor was trained for each tissue type.

Discussion

In spite of the evidence for functional convergence (58, 59), it is challenging with current statistical methods to identify biomarkers that define similar phenotypes in genetically diverse contexts in order to guide treatment. In this study, we propose contextualized GRNs as cohesive sample-specific representations of latent tumor states underlying disease progression and patient survival. Our models reveal insights into cancer heterogeneity by relating transcriptomic, genetic, immune, and clinical factors to tumor regulatory network topology. In Figs. 4 and 5, contextualized GRNs provide an intuitive way of identifying both subpopulations with differential transcriptomic regulation and the pathway-level modules of genes that should be studied as potential biomarkers, as well as the likely effect size of pathway dysregulation. Contextualized GRNs further identify contextual signals differentiating these subpopulations, exploiting these signals for predictive accuracy (Fig. 3) and providing leads for traditional classes of genomic biomarkers (Fig. 5).

More broadly, contextualized modeling seeks to estimate context-specific models beyond context-specific sampling constraints that currently prohibit individualized and independent analysis of patients. By sharing information among samples while also allowing sample-specific variation, our framework models complex and dynamic distributions despite physical and technical barriers that prohibit sample-specific inference. For instance, observational patient data are often heterogeneous, suffering from complex confounders relating to environment, genetics, and individual histories. However, controlling for all conditions and contexts simultaneously leads to subpopulations with as few as just one sample—too small to infer accurate context-specific models. We explore this tradeoff in a simulation study, showing how both group-specific models and population-level models fail in heterogeneous and sample-specific regimes which require horizontal scaling across data domains (Fig. 2). Contextualized models naturally account for nonidentically distributed data and even improve performance by incorporating multiple data views as contexts for model estimation, providing a principled method for performing statistical inference on heterogeneous, observational, and multiview data.

Finally, contextualized modeling raises questions about how to interpret and apply populations of sample-specific models, which we leave partially open to future work. In this study, we show that a measure defined by model parameters can be used to traverse the sample-specific model space. Another route for future work is to interpret the archetypes themselves. In this study, archetypes serve to regularize sample-specific model generation, but this same mechanism also defines a polytope for all possible sample-specific models (60). New statistical tests are also needed to quantify the degree of heterogeneity in data and the effects of contextual features on model parameter variation (61).

Materials and Methods

Contextualization is based on two simple concepts: a context encoder which translates sample context into model parameters and a sample-specific model which represents the latent context-specific mechanisms of data generation. This view conveniently unifies both varying-coefficient models (44), and subpopulation and partition-based approaches, such as cluster analysis and cohort analysis (62). By learning how models change in response to context, contextualization enables powerful control over high-dimensional and continuously varying contexts, identifying dynamic latent structures underlying data generation in heterogeneous populations and permitting GRN model inference at even sample-specific resolution.

Contextualized Networks.

We seek a context-specific density of network parameters P(θC) such that

P(XC)=θdθPM(Xθ)P(θC)

is maximized, where PM(Xθ) is the probability of gene expression XRp under network model class M with parameters θRp×p, and C is sample context which can contain both multivariate and real features. To overcome θ being a high-dimensional, structured latent variable, we assume that all contextualized networks lie on a subspace spanned by a set of K network archetypes A:=span({AkRp×p:A1,...,AK}), i.e., θA. We further introduce a latent variable (the "subtype," not to be confused with medical subtypes used in analysis) ZRK which coordinates the archetypes such that

θ=k=1KZkAk.

The context-specific network model θ, and subsequently the gene expression observations X, are also assumed independent of context given Z, i.e., C(X,θ)Z. Finally, to enable efficient gradient-based optimization, we assume Z is a deterministic function of context Z=f(C). In this way, we constrain θ as a convex combination of network archetypes via latent mixing.

P(XC)=θ,ZdθdZPM(Xθ)P(θ|Z)P(ZC),=θ,ZdθdZPM(Xθ)δ(θk=1KZkAk)δ(Zf(C)),=PM(X|ϕ(C;f,A)),ϕ(C;f,A)=k=1KZkAk=k=1Kf(C)kAk,

where the context encoder ϕ(C;f,A) is parameterized by a differentiable context-to-subtype mapping f and the set of archetypes A. This architecture is shown in Fig. 1D and is learned end-to-end with backpropagation. While the archetypal networks Ak provide an obvious way to incorporate prior knowledge of network structures for initialization or regularization, no prior knowledge is required. In all experiments reported here, we do not use any prior knowledge of network structure or parameters.

This framework unites three different perspectives of GRNs: 1) correlation networks, in which network edges are the pairwise Pearson’s correlation between nodes, 2) Markov networks, in which edges are the pairwise precision values representing conditional dependencies between nodes, and 3) Neighborhood selection networks, in which edges represent directed linear relationships between nodes. The key challenge for each network class is to define a differentiable loss function M that is proportional to the negative log probability of our contextualized network model.

f^,A^=argmaxf,An=1NlogPM(Xn|ϕ(Cn;f,A)),=argminf,An=1NMϕ(Cn;f,A),Xn.

The loss objective can be used in the end-to-end optimization, solving for the context encoder and the network archetypes simultaneously, to infer the context-specific parameters θ. Below, we outline a unifying linear parameterization of each network loss. Implementation details are discussed in SI Appendix.

Contextualized Neighborhood Selection.

We first apply contextualization to the neighborhood selection algorithm proposed by Meinhausen and Buhlmann (63). The direct relationship of this model to lasso regression (64) links contextualized neighborhood selection to original works on contextualized linear models (47) as well as earlier works on time-varying networks (41) and tree-varying networks (42), making it a convenient stepping stone toward the graphical models in the sequel. The model is a Gaussian graphical model where XN(0,Ω1) and precision matrix Ω is the inverse of the covariance matrix and has sparse off-diagonal entries. Based on an equivalence between precision, partial correlations, and multivariate regression coefficients (65, 66), we have that

ρij=sign(θij)θijθji=ωijωiiωjj,

where ρij is the correlation between features Xi and Xj conditioned on all other features X{ij}, θij is the coefficient for Xj in a multivariate regression onto Xi from all other genes Xi, and ωij are elements of the precision matrix. The dependency structure defined by the Markov random field of the model above emerges as

ρij=0ωij=0XiXjX{i,j}.

In the population setting, this dependency structure is identified by solving the lasso regression for every feature Xi given every other feature Xi. This regression maximizes P(Xi|Xi) via the loss

θ^i=argminθXiXiθ22+λθ1

resulting in edges between Xj and Xj for every ji where θij0, or no edge if θij=0. Equivalently, we parameterize the neighborhood selection objective using the square matrix of regression parameters θRp×p.

θ^=argminθXXθF2+λiθi1s.t.diag(θ)=[0]

To contextualize this network objective, we replace θ for each sample with a context-specific θn=ϕ(Cn;f,A). Finally, we define a function ϕ to mask the diagonal of θ, presenting the loss function NN for contextualized neighborhood selection networks

NN(ϕ(C;f,A),X)=XXϕ(C;f,A)22+λiϕ(C;f,A)i1,ϕ(C;f,A)=(1I)ϕ(C;f,A),

where is the Hadamard product. In previous works on time-varying and tree-varying networks (41, 42), minimizing this loss has depended on the convexity of the objective with respect to θ, and subsequently the parameters f and A here. While we note that this is guaranteed convex for linear f, in practice, we utilize a neural network as our choice of f which are highly performant despite their nonconvexity.

Contextualized Markov Networks.

Following ref. 45, we can make further assumptions to improve the alignment of the neighborhood selection objective with the underlying Gaussian graphical model, and even recover exact precision. Assuming a constant diagonal precision ωii=ωjji,j, the neighborhood selection objective results in proportionality between the regression and the precision matrix

ωijsign(θij)θijθji.

Assuming unit diagonal precisions ωii=1, the proportionality becomes exact equivalence. Furthermore, this proportionality induces symmetry in the regression, i.e., θij=θji. We encode this in the objective by requiring our estimate for θ to be a symmetrically augmented matrix based on γ, i.e., θ=γ+γT

γ^=argminγXX(γ+γT)F2s.t.diag(γ)=[0].

If Ω is sparse, we can again apply lasso regularization to the multivariate regression objective (63). Given the similarity between this differential Markov network objective and the neighborhood selection objective, we follow the exact contextualization procedure from above to contextualize γ and arrive at a loss function MN

MN(ϕ(C;f,A),X)=XX(ϕ(C;f,A)+ϕ(C;f,A)T)22+λiϕ(C;f,A)i1,

where ϕ is defined identically for masking the diagonal. The resulting contextualized precision matrix estimate is Ω^=(ϕ(C;f^,A^)+ϕ(C;f^,A^)T). In practice, we do not threshold the estimated precision as we did in neighborhood selection. We represent the Markov network using the full precision matrix, retaining information about the dependency structure as well as the dependency strength based on the equivalence to partial correlation above.

Contextualized Correlation Networks.

Correlation networks are simple to estimate and often state-of-the-art for gene regulatory network inference (29); contextualized correlation expands this utility to the granularity of sample-specific network inferences. To estimate sample-specific correlation networks, we assume the data were drawn from XN(0,Σ) and use the well-known univariable regression view of Pearson’s marginal correlation coefficient:

ρij2=σij2σii2σjj2=θijθji,

where the covariance matrix Σ has elements σij, and θ^ij=argminθ(XjXiθ)2. This form converts correlation into two separable univariate least-squares regressions that maximize the marginal conditional probabilities P(Xi|Xj) and P(Xj|Xi). Contextualizing this differentiable objective, we get the contextualized correlation network loss

CN(ϕ(C;f,A),X)=XXϕ(C;f,A)F2,

where the context-specific correlation matrix is reconstructed as ρ^2=ϕ(C;f^,A^)ϕ(C;f^,A^)T.

Baselines.

We compare contextualized modeling with several traditional approaches for context-controlled and context-agnostic inference, including population modeling, cluster modeling, and cohort modeling (Fig. 6). A population model assumes that the entire sample population is identically distributed. As a result, population modeling infers a single model representing all observations. In reality, sample populations often contain two or more uniquely distributed subpopulations. If we expect that there are several subpopulations with many observations each, and that these subpopulations can be stratified by context, it may be appropriate to cluster the data by context to identify these subpopulations and then infer a model for each context-clustered subpopulation. This assumes that all context features are equally important and therefore does not tolerate noise features well. Alternatively, when subpopulation groupings are known to be determined by a few important features, cohort modeling is more appropriate. Sample cohorts can be identified based on prior knowledge about important context features (e.g., disease type).

Fig. 6.

Fig. 6.

Modeling regimes for personalized inference.

The baseline modeling regimes enjoy the benefits of traditional inference methods (i.e., identifiability, convergence) by relying on the assumption that there are a discrete number of subpopulations underlying the observed data that are each defined by a latent model, and each of these subpopulations is well sampled. This assumption is rarely, if ever, satisfied in a real-world setting. We develop contextualized modeling as a synthesis between traditional statistical inference and modern deep learning to enable model-based analysis of heterogeneous real data. Contextualized modeling assumes a functional dependency between models, but unlike prior methods makes no assumption about the form or complexity of this dependency. As such, contextualized models permit context-informed inference even when contexts are sparsely sampled and high dimensional.

Data.

Our dataset is constructed from The Cancer Genome Atlas (TCGA) and related studies, covering 7,997 samples from 7,648 patients with 6,397 samples for training and validation and 1,600 as testing. For context, we use clinical information, biopsy composition, SCNAs, and cancer-driving SNVs (SI Appendix).

Gene expression.

We gathered samples with open access TPM-normalized expression data from TCGA. From the gene expression panel, we selected known oncogenes and tumor suppressor genes annotated by COSMIC (67). Afterward, the data were log(x+103) transformed. Finally, the data were compressed into metagenes using a PCA transformation learned on the training set. Networks were learned to model the metagene expression data.

Network models also provide an opportunity for dealing with batch effects in expression data. Most batch-effect correction methods make strict assumptions about homogeneity between groups, which is mutually exclusive with our study design. Luckily, network optimization objectives play nicely with batch effects. If batch effects can be isolated, these can be treated as noise features where distribution shifts cannot be predicted or explained by covariate shifts or other features. Network modeling objectives learn to ignore noise features which are not predictive of others in the network. Thus, network modeling only requires batch effect isolation, not correction. PCA is convenient for isolating these effects due to the feature orthogonality and its preference for global effects over local effects. The main downside of leaving batch PCs in the metagene data is that noise features inflate all model errors by a constant amount, but this is unimportant for relative performance comparisons.

We used 50 metagenes due to hardware limitations (SI Appendix). These 50 metagenes captured 79.47% of the variance in the pre-PCA data.

Subtyping.

To benchmark their prognostic ability, we compare our GRN-based subtypes against state-of-the-art reference subtypes gathered using TCGAbiolinks (68). Network subtypes are inferred by clustering on network parameters, where networks are organized by hierarchical clustering with ward linkage. When reference subtypes are available, the number of clusters is matched to the number of known reference subtypes for fair comparison. When reference subtypes are unavailable, the number of clusters k is selected by the best silhouette score from k=[2,10]. We identify some contextual features as drivers of heterogeneity, having a significant association with one network subtype compared to the rest by using a two-sided t-test on the subtype vs. remaining samples. Features with universal importance within each disease type will therefore not be associated. For each feature, we take the minimum p-value from all subtype t-tests and display the most significant features. We provide an interactive demo for subtyping with network and expression data, and comparison with reference subtypes at https://github.com/cnellington/CancerContextualized.

Code Availability.

All methods are available in Contextualized, an open-source SKLearn-style Python library for contextualized modeling (62). Contextualized graphical models, as well as contextualized regressors, can be estimated using an intuitive import-fit-predict workflow.

from contextualized.easy import (

ContextualizedCorrelationNetworks

)

model = ContextualizedCorrelationNetworks()

model.fit(C_train, X_train)

err = model.measure_mses(C_test, X_test)

r = model.predict_correlation(C_test)

We provide demos and tutorials for network inference at contextualized.ml. Our code for generating the figures in this manuscript is available at https://github.com/cnellington/CancerContextualized.

Supplementary Material

Appendix 01 (PDF)

Acknowledgments

C.N.E., B.J.L., and E.P.X. were supported by NIH R01GM140467.

Author contributions

C.N.E., B.J.L., T.B.K.W., J.Y., M.K., and E.P.X. designed research; C.N.E., B.J.L., J.Y., A.K.A., S.M., and H.X. performed research; C.N.E., B.J.L., T.B.K.W., and J.Y. contributed new K.reagents/analytic tools; C.N.E., B.J.L., T.B.K.W., J.Y., A.K.A., S.M., and H.X. analyzed data; and C.N.E., B.J.L., T.B.K.W., J.Y., M.K., and E.P.X. wrote the paper.

Competing interests

The authors declare no competing interest.

Footnotes

This article is a PNAS Direct Submission.

Contributor Information

Caleb N. Ellington, Email: cellingt@cs.cmu.edu.

Manolis Kellis, Email: manoli@mit.edu.

Eric P. Xing, Email: epxing@cs.cmu.edu.

Data, Materials, and Software Availability

Previously published data were used for this work (https://www.cancer.gov/tcga) (69).

Supporting Information

References

  • 1.Muzny D. M., et al. , Comprehensive molecular characterization of human colon and rectal cancer. Nature 487, 330–337 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Berger A. C., et al. , A comprehensive pan-cancer molecular study of gynecologic and breast cancers. Cancer Cell 33, 690–705.e9 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Lawrence M. S., et al. , Comprehensive genomic characterization of head and neck squamous cell carcinomas. Nature 517, 576–582 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Cancer Genome Atlas Research Network, et al. , Comprehensive molecular characterization of papillary renal-cell carcinoma. N. Engl. J. Med. 374, 135–145 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Collisson E. A., et al. , Comprehensive molecular profiling of lung adenocarcinoma. Nature 511, 543–550 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Creighton C. J., et al. , Comprehensive molecular characterization of clear cell renal cell carcinoma. Nature 499, 43–49 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Hammerman P. S., et al. , Comprehensive genomic characterization of squamous cell lung cancers. Nature 489, 519–525 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Robertson A. G., et al. , Comprehensive molecular characterization of muscle-invasive bladder cancer. Cell 171, 540–556.e25 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Ally A., et al. , Comprehensive and integrative genomic characterization of hepatocellular carcinoma. Cell 169, 1327–1341.e23 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Cancer Genome Atlas Research Network , Comprehensive molecular characterization of gastric adenocarcinoma. Nature 513, 202–209 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Network T. C. G. A. R., Comprehensive, integrative genomic analysis of diffuse lower-grade gliomas. N. Engl. J. Med. 372, 2481–2498 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Farshidfar F., et al. , Integrative genomic analysis of cholangiocarcinoma identifies distinct IDH-mutant molecular profiles. Cell Rep. 18, 2780–2794 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Cabassi A., Kirk P. D. W., Multiple kernel learning for integrative consensus clustering of omic datasets. Bioinformatics 36, 4789–4796 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Robertson A. G., et al. , Integrative analysis identifies four molecular and clinical subsets in uveal melanoma. Cancer Cell 32, 204–220.e15 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Raphael B. J., et al. , Integrated genomic characterization of pancreatic ductal adenocarcinoma. Cancer Cell 32, 185–203.e13 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Sohn B. H., et al. , Clinical significance of four molecular subtypes of gastric cancer identified by The Cancer Genome Atlas project. Clin. Cancer Res. 23, 4441–4449 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Cherniack A. D., et al. , Integrated molecular characterization of uterine carcinosarcoma. Cancer Cell 31, 411–423 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Kim J., et al. , Integrated genomic characterization of oesophageal carcinoma. Nature 541, 169–175 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Ceccarelli M., et al. , Molecular profiling reveals biologically discrete subsets and pathways of progression in diffuse glioma. Cell 164, 550–563 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Cancer Genome Atlas Research Network, The molecular taxonomy of primary prostate cancer. Cell 163, 1011–1025 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Davis C. F., et al. , The somatic genomic landscape of chromophobe renal cell carcinoma. Cancer Cell 26, 319–330 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Levine D. A., Integrated genomic characterization of endometrial carcinoma. Nature 497, 67–73 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Cohen A., Holmen S., Colman H., IDH1 and IDH2 mutations in gliomas. Curr. Neurol. Neurosci. Rep. 13, 345 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Hoadley K. A., et al. , Multiplatform analysis of 12 cancer types reveals molecular classification within and across tissues of origin. Cell 158, 929–944 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Koboldt D. C., et al. , Comprehensive molecular portraits of human breast tumours. Nature 490, 61–70 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Ben-Hamo R., et al. , Predicting and affecting response to cancer therapy based on pathway-level biomarkers. Nat. Commun. 11, 3296 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Badia-i Mompel P., et al. , Gene regulatory network inference in the era of single-cell multi-omics. Nat. Rev. Genet. 24, 739–754 (2023). [DOI] [PubMed] [Google Scholar]
  • 28.Stone M., et al. , Identifying strengths and weaknesses of methods for computational network inference from single cell RNA-seq data. bioRxiv [Preprint] (2021). 10.1101/2021.06.01.446671 (Accessed 1 September 2022). [DOI] [PMC free article] [PubMed]
  • 29.Pratapa A., Jalihal A. P., Law J. N., Bharadwaj A., Murali T. M., Benchmarking algorithms for gene regulatory network inference from single-cell transcriptomic data. Nat. Methods 17, 147–154 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Thompson D., Regev A., Roy S., Comparative analysis of gene regulatory networks: From network reconstruction to evolution. Annu. Rev. Cell Dev. Biol. 31, 399–428 (2015). [DOI] [PubMed] [Google Scholar]
  • 31.Ursu O., et al. , Massively parallel phenotyping of coding variants in cancer with Perturb-seq. Nat. Biotechnol. 40, 896–905 (2022). [DOI] [PubMed] [Google Scholar]
  • 32.Hoadley K. A., et al. , Cell-of-origin patterns dominate the molecular classification of 10,000 tumors from 33 types of cancer. Cell 173, 291–304.e6 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Buettner F., et al. , Computational analysis of cell-to-cell heterogeneity in single-cell RNA-sequencing data reveals hidden subpopulations of cells. Nat. Biotechnol. 33, 155–160 (2015). [DOI] [PubMed] [Google Scholar]
  • 34.Fisher A. J., Medaglia J. D., Jeronimus B. F., Lack of group-to-individual generalizability is a threat to human subjects research. Proc. Natl. Acad. Sci. U.S.A. 115, E6106–E6115 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Hart S., Precision education initiative: Moving towards personalized education. Mind, Brain Educ. 10, 209–211 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Ng K., Sun J., Hu J., Wang F., Personalized predictive modeling and risk factor identification using patient similarity. AMIA Jt. Summits Transl. Sci. Proc. 2015, 132–136 (2015). [PMC free article] [PubMed] [Google Scholar]
  • 37.Lazareva O., et al. , DysRegNet: Patient-specific and confounder-aware dysregulated network inference. Br. J. Pharmacol., 1–16 (2022). [DOI] [PubMed] [Google Scholar]
  • 38.Kuijjer M. L., Tung M. G., Yuan G., Quackenbush J., Glass K., Estimating sample-specific regulatory networks. iScience 14, 226–240 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Saha E., et al. , Bayesian optimized sample-specific networks obtained by omics data (BONOBO). bioRxiv [Preprint] (2023). 10.1101/2023.11.16.567119 (Accessed 8 December 2023). [DOI]
  • 40.Kolar M., Song L., Ahmed A., Xing E. P., Estimating time-varying networks. arXiv [Preprint] (2008). 10.48550/arXiv.0812.5087 (Accessed 1 September 2022). [DOI]
  • 41.Ahmed A., Xing E. P., Recovering time-varying networks of dependencies in social and biological studies. Proc. Natl. Acad. Sci. U.S.A. 106, 11878–11883 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Parikh A. P., Wu W., Curtis R. E., Xing E. P., TREEGL: Reverse engineering tree-evolving gene networks underlying developing biological lineages. Bioinformatics 27, i196–i204 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Lengerich B. J., Aragam B., Xing E. P., Personalized regression enables sample-specific pan-cancer analysis. Bioinformatics (Oxford, England) 34, i178–i186 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Hastie T., Tibshirani R., Varying-coefficient models. J. R. Stat. Soc. Ser. B Stat. Methodol. 55, 757–796 (1993). [Google Scholar]
  • 45.Wang Z., et al. , Bayesian edge regression in undirected graphical models to characterize interpatient heterogeneity in cancer. J. Am. Stat. Assoc. 117, 533–546 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Fan J., Zhang W., Statistical estimation in varying coefficient models. Ann. Stat. 27, 1491–1518 (1999). [Google Scholar]
  • 47.Al-Shedivat M., Dubey A., Xing E., Contextual explanation networks. J. Mach. Learn. Res. 21, 1–44 (2020).34305477 [Google Scholar]
  • 48.Lengerich B., et al. , Machine Learning. arXiv [Preprint] (2023). https://arxiv.org/abs/2310.11340 (Accessed 17 October 2023).
  • 49.Lengerich B., Aragam B., Xing E. P., Learning sample-specific models with low-rank personalized regression. arXiv [Preprint] (2019). https://arxiv.org/abs/1910.06939 (Accessed 29 September 2023).
  • 50.Lengerich B. J., Nunnally M. E., Aphinyanaphongs Y., Ellington C., Caruana R., Automated interpretable discovery of heterogeneous treatment effectiveness: A COVID-19 case study. J. Biomed. Inf. 130, 104086 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Deuschel J., et al. , Contextualized policy recovery: Modeling and interpreting medical decisions with adaptive imitation learning. arXiv [Preprint] (2023). https://arxiv.org/abs/2310.07918 (Accessed 11 October 2023).
  • 52.Agrawal N., et al. , Integrated genomic characterization of papillary thyroid carcinoma. Cell 159, 676–690 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Hong S., et al. , Distinct molecular subtypes of papillary thyroid carcinoma and gene signature with diagnostic capability. Oncogene 41, 5121–5132 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Rahbari R., Zhang L., Kebebew E., Thyroid cancer gender disparity. Future Oncol. (London, England) 6, 1771–1779 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Weeks K. S., Kahl A. R., Lynch C. F., Charlton M. E., Racial/ethnic differences in thyroid cancer incidence in the United States, 2007–2014. Cancer 124, 1483–1491 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Zhang H. Z., Jin G. F., Shen H. B., Epidemiologic differences in esophageal cancer between Asian and Western populations. Chin. J. Cancer 31, 281–286 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Bhavani K., Tracy R., Kardos L. J., Milowsky M. I., Kim W. Y., Intrinsic genomic differences between African American and White patients with clear cell renal cell carcinoma. JAMA Oncol. 2, 664–667 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Hanahan D., Hallmarks of cancer: New dimensions. Cancer Discov. 12, 31–46 (2022). [DOI] [PubMed] [Google Scholar]
  • 59.Rubin S. M., Sage J., Skotheim J. M., Integrating old and new paradigms of G1/S control. Mol. Cell 80, 183–192 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Lengerich B., Ellington C., Aragam B., Xing E. P., Kellis M., NOTMAD: Estimating Bayesian networks with sample-specific structures and parameters. arXiv [Preprint] (2021). https://arxiv.org/abs/2111.01104 (Accessed 1 November 2021).
  • 61.Wu E., Ellington C., Lengerich B., Xing E. P., Patient-specific models of treatment effects explain heterogeneity in tuberculosis. arXiv [Preprint] (2024). https://arxiv.org/abs/2411.10645 (Accessed 16 November 2024).
  • 62.Ellington C. N., et al. , Contextualized: Heterogeneous modeling toolbox. J. Open Source Software 9, 6469 (2024). [Google Scholar]
  • 63.Meinshausen N., Bühlmann P., High-dimensional graphs and variable selection with the Lasso. Ann. Stat. 34, 1436–1462 (2006). [Google Scholar]
  • 64.Tibshirani R., Regression shrinkage and selection via the lasso. J. R. Stat. Soc. Ser. B (Methodol.) 58, 267–288 (1996). [Google Scholar]
  • 65.Friedman J., Hastie T., Tibshirani R., Sparse inverse covariance estimation with the graphical lasso. Biostatistics 9, 432–441 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Peng J., Wang P., Zhou N., Zhu J., Partial correlation estimation by joint sparse regression models. J. Am. Stat. Assoc. 104, 735–746 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Sondka Z., et al. , The COSMIC Cancer Gene Census: Describing genetic dysfunction across all human cancers. Nat. Rev. Cancer 18, 696–705 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Colaprico A., et al. , TCGAbiolinks: An R/Bioconductor package for integrative analysis of TCGA data. Nucleic Acids Res. 44, e71 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.TCGA Research, The Cancer Genome Atlas Program. https://www.cancer.gov/tcga. Accessed 27 June 2018.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Appendix 01 (PDF)

Data Availability Statement

Previously published data were used for this work (https://www.cancer.gov/tcga) (69).


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES