Introduction

Postoperative infection is one of the most common complications after surgeries, which significant increase postoperative mortality and prolong ICU-stay. A cohort study discovered patients with 30-day postoperative infection had a 3.2-fold higher risk of 1-year infection and a 1.9-fold higher risk of mortality compared with those who had no 30-day infection1.Different source of postoperative infection, which may be caused by either diverse bacteria or fungal pathogens2. The types of postoperative infection are complex and postoperative patient’s immunosuppressed state leads to a heightened risk of infection3, making it challenging to rapidly and accurately diagnose and administer appropriate treatment. It is significantly important to recognize the risk of infection and the likelihood of severe disease after surgeries, even before surgeries.

Many studies have indicated a definitive link between obesity, lipids (high density lipoprotein cholesterol, low density lipoprotein cholesterol, non-high density lipoprotein cholesterol, total cholesterol and triglyceride), and postoperative infections4,5,6. There is a close relationship between obesity, lipid levels, and postoperative infections, which is often negative. However, HDL stands out in many studies as a distinctive protective factor7,8. Properly understanding the roles of obesity and blood lipids in postoperative infections is beneficial for perioperative preparation and patient prognosis.

As is knows, Low HDL, a hallmark of dyslipidemia, signifies unhealthy lifestyle habits, disrupted metabolism, and heightened cardiovascular risk. Recent research suggests that low HDL is also associated with increased risk of inflammatory disorders, malignant tumors, diabetes, and other infected diseases9. A prospective study10 explored that association between low HDL level and postoperative infection was increased. HDL levels may be used as predictive parameter for postoperative infections. Preoperative screening for low-HDL may be beneficial in controlling the risk for postoperative complications such as postoperative infection among surgical patients. Clinically, postoperative infection patients accompanied with significantly decreased HDL, and multiple studies have shown that HDL plays an important role in infected patients11,12.

Mendelian randomization (MR) is a method that uses genetic variations closely linked to modifiable exposures to generate more reliable evidence about which interventions should provide health benefits13. MR essence lies in using genetic data as a bridge to explore the causal connection between a specific exposure and outcome. Unlike observational studies, Mendelian randomization (MR) leverages genetic variants as instrumental variables, which are randomly assigned at conception, thus mitigating biases from confounding factors and reverse causation. This approach provides stronger evidence for causality compared to prior epidemiological studies. No existing comprehensive MR studies have focused on BMI, lipids and postoperative infection. The present study explored the genetic relationship and causal relationships between BMI, lipids and postoperative infection with genetic statistics (Fig. 1). We searched the FinnGen Biobank (Round 9) bring into BMI, and Using summary data from Global Lipids Genetics Consortium GWAS across multiple lipid traits, including HDL-C, LDL-C, nonHDL-C, TC and TG. We searched the UK Biobank for postoperative infection according to ICD-10 (Version: 2016). This study used genetic statistical methods to conduct MR and genetic association analysis on lipid and BMI GWAS and postoperative infections GWAS. Exploring Genetic Correlations and Causal Associations of BMI and lipids with postoperative infection and providing genetic statistical guidance for the role of BMI and lipids in postoperative infection in clinical practice.

Fig. 1
figure 1

Mendelian randomization study design. GWAS, Genome-wide association studies; BMI, body mass index; SNP, single nucleotide polymorphisms; LDSC, linkage disequilibrium score regression; MR, Mendelian randomization.

Materials and methods

GWAS summary data source

We included five lipid-related traits (HDL-C, LDL-C, nonHDL-C, TC and TG) and BMI as exposures in this study. The postoperative infection was chosen as the outcome factor. The GWAS summary data of lipid-related traits were derived from the published research14. The Global Lipids Genetics Consortium aggregated GWAS results from 1,654,960 individuals. To keep all patients in this study were of European, our study used European group including 1,320,016 individuals. The GWAS summary data of BMI and postoperative infection used in this study were obtained from the FinnGen R9 release and UK Biobank, including 266,130 and 406,832 individuals (Table 1). Based on literature related to BMI, lipid and infection15,16,17,18, we found that research on lipids often focuses on the HDL in modulating cytokines and inflammatory factors during infections. On infections, tend to concentrate on the mechanisms of sepsis development, which also primarily involves the expression of blood cells, cytokines and immunoglobulins. Therefore, we selected 21 types of mediators (Additional file 1), including counts of basophils, eosinophils, lymphocytes, monocytes, neutrophils, white blood cells, IgA, IgM, IgG, IgE, IL-1α, IL-6, IL-12, IL-4, IL-10, IL-13, TGF-β1, TGF-β2, TGF-β3, TNF-α, IFN-γ and Had major operations. These mediators may lie in the pathway from BMI and lipids to postoperative infection, and thus are considered as mediating factors in MR analysis. Since all analyses in this article are based on publicly available summary data, this study does not require ethical approval from the institutional review board. This study is reported in line with the STROBE-MR guidance (Additional file 2), with the checklist available in the Supporting information19,20.

Table 1 Exposures and outcome from GWAS datasets.

Data processing

Sample overlapping of GWAS summary data

This study included The Global Lipid Genetics Consortium’s five lipid-related GWAS, FinnGen’s BMI GWAS and the UK Biobank’s postoperative infection GWAS. These GWAS are derived from different databases. In MR analyses, sample overlap can lead to biased estimates of causal effects due to overfitting and the inclusion of non-independent samples. To further confirm the overlap between exposure and outcome datasets, Genetic Covariance analysis was utilized in the GWAS, calculated between the exposures and the outcome21. Genetic Covariance refers to the degree of shared genetic variation between two or more traits. It describes the interrelationship of genetic variations among different traits, reflecting whether they are influenced by similar or related genetic factors.

GWAS quality control

All GWAS data could be used for genetic analysis after stringent quality control filtering. Firstly, the 1000 Genome Project (1KGP) Phase 3 European population was used as the reference panel, reserving all the gene with minor allele frequency (MAF) ≥ 0.01, and restricted to biallelic allelicity. Secondly, when matched, single nucleotide polymorphisms (SNPs) without a rsID or repeating rsID were discarded. Thirdly, all the SNPs need to matched the chromosomal position with hg19 as the human reference genome coordinate.

Linkage disequilibrium score regression

LDSC estimates the heritability of individual traits or the genetic correlation between pairs of traits by constructing a regression relationship between LD score and GWAS test statistics. We used univariate linkage disequilibrium (LD) score regression (LDSC) to estimate the GWAS heritability of each trait22. To explore the shared genetic components between LDL-C, HDL-C, TG, TC, nonHDL-C, and BMI with postoperative infection, we further conducted global genetic correlation analysis using bivariate LDSC. The LD score was calculated using European ancestry reference data from 1000 Genomes, limited to 1.2 million well-controlled HapMap3 SNPs, excluding SNPs in the major histocompatibility complex (MHC) region due to the complex LD relations affecting the estimation of genetic correlations. Due to unknown sample overlap, in LDSC analysis, we did not constrain the intercept, using it instead to assess potential population stratification in individual trait GWAS or potential sample overlap between pairs of GWAS. A significance threshold (q < 0.05) was set post false discovery rate (FDR) correction (BH method) for P < 0.05.

Mendelian randomization analysis

For MR analysis, the following three assumptions must be met and align with instrumental variables (IVs). First, IVs that the SNPs were screened from the exposure must be closely related to exposures; Second, IVs are independent of confounding factors; Third, IVs should only influence the outcome through their impact on exposure and not directly or through other pathways.

In this study, SNPs closely related to exposures were used as IVs to investigate the causal relationship between exposure and outcomes. We looked for IVs closely related to exposures with linkage disequilibrium of r2 < 0.001, genome-wide significance of p < 5 × 10−8, and a clumping window of 10,000 kb. The F statistic (F > 10) is used to ensure a strong correlation between the IVs and exposure. After this, we conducted bidirectional two-sample Mendelian randomization23 to investigate causal links between lipid profiles (LDL-C, HDL-C, TG, TC, nonHDL-C) and BMI with postoperative infection. Cochrane’s Q value is used to assess heterogeneity. Considering the heterogeneity introduced by multiple instrumental variables, we opted for a random effects IVW (inverse variance weighted) model instead of a fixed-effect model for our outcome measures. The primary method, IVW was used for a meta-analysis of SNP Wald ratios, yielding a more accurate overall effect, even amid instrumental variable heterogeneity. We also used MR-Egger24 and weighted median methods25 as supplements to IVW. Using the scatter plot visualizes the relationship between the genetic associations with the exposure (on one axis) and the genetic associations with the outcome (on the other axis). Each point on the scatter plot represents a different genetic variant (or SNP single nucleotide polymorphism). The slope of the line fitted through these points can indicate the magnitude of the causal effect of the exposure on the outcome, assuming no pleiotropy or other biases are affecting the analysis. To ensure the accuracy of MR, further supplementary analyses were conducted: (1) MR-Egger intercept test for horizontal pleiotropy. (2) MR-PRESSO test single SNP pleiotropy; (3) leave-one-out analysis to assess if a single SNP drives the causal effect; (4) MR-Steiger directionality test to confirm the correct direction of causal estimation. (5) Stepwise mediation MR analysis is utilized to eliminate the potential influence of mediating factors. Finally, for data requiring multiple hypothesis correction, the Benjamini–Hochberg (BH) method is used to adjust the threshold of p-values, thereby reducing the likelihood of accidentally discovering significant results. FDR correction (BH method) post-analysis with a P < 0.05 as the significance threshold (q < 0.05). All statistical analyses were conducted using the Mendelian Randomization (0.4.2), TwoSampleMR (0.5.7), MR-PRESSO (1.0) packages in R, version 4.2.2 (https://www.r-project.org/).

Result

GWAS overlapping

Potential sample overlap was assessed for all GWAS datasets used in this study. The LDSC intercept values did not indicate significant sample overlap or population stratification, suggesting that the genetic correlation estimates are not biased due to overlapping samples. Specifically, no significant evidence of sample overlap was found between the GWAS datasets for Postoperative Infection and BMI (P > 0.1), Postoperative Infection and HDL-C (P > 0.1), Postoperative Infection and LDL-C (P > 0.1), Postoperative Infection and nonHDL-C (P > 0.1), Postoperative Infection and TG (P > 0.1), or Postoperative Infection and TC (P > 0.1). Based on these findings, we conclude that there is no substantial overlap between the exposure and outcome GWAS datasets, and thus all data can be reliably used for further Mendelian randomization (MR) and genetic correlation analyses.

Genetic correlation between BMI, lipids and postoperative infection

Initially, we estimated the heritability of individual traits for both exposure and outcome using univariate LDSC. The results showed that all traits exhibited significant heritability (P < 0.05), confirming their polygenic nature. We then applied bivariate LDSC to assess the genetic correlations between BMI, lipid traits, and postoperative infection. After false discovery rate (FDR) correction (Q < 0.05), significant genetic correlations were observed between BMI, HDL-C, nonHDL-C, TG, and postoperative infection (P < 0.05). Specifically, HDL-C showed a negative genetic correlation with postoperative infection (r = − 0.414), indicating that a higher HDL-C level is associated with a lower genetic predisposition to postoperative infection. In contrast, BMI, nonHDL-C, and TG showed positive genetic correlations with postoperative infection, with correlation coefficients of r = 0.430, r = 0.137, and r = 0.417, respectively, suggesting shared genetic influences predisposing individuals to both higher BMI/lipid levels and increased postoperative infection risk. LDL-C and TC did not exhibit statistically significant genetic correlations with postoperative infection (P > 0.05), indicating no strong shared genetic basis between these traits (Table 2).

Table 2 Genetic correlation and genetic overlap estimations between six pairwise traits.

Causality between BMI, lipids and postoperative infection

Selection of instrumental variables

By identifying SNPs closely associated with exposure in BMI, HDL-C, LDL-C, nonHDL-C, TC, and TG with linkage disequilibrium r2 < 0.001 and filtering for genome-wide significance P < 5 × 10−8 and a clumping window of 10,000 kb, we obtained instrumental variables for six exposure factors. The F statistic was used to ensure strong correlation between the instrumental variables and exposures. An F statistic greater than 10 is generally considered indicative of strong correlation. (All instrumental variables are provided in Additional file 3.)

Mendelian randomization analysis

We performed bidirectional Mendelian randomization analyses on six pairs of exposure-outcome traits. Using the random effects IVW method, after Benjamini–Hochberg correction, two pairs of exposure-outcome traits were found to have causal associations (q < 0.05). Specifically, HDL-C showed a strong negative correlation with postoperative infection (OR = 0.87), and BMI exhibited a significant positive correlation (OR = 1.36). TG also showed a positive correlation with postoperative infection (OR = 1.14, q-value = 0.082). However, no apparent causal relationships were found between LDL-C, nonHDL-C, TC, and postoperative infection (q > 0.1) (Fig. 2). Through the scatter plot (Fig. 3), we could clearly see that BMI has a significant positive correlation with postoperative infection, while HDL-C shows a strong negative correlation with postoperative infection.

Fig. 2
figure 2

Forest plot to visualize the causal effect of BMI and lipids on postoperative infection using four methods and meta-analysis.

Fig. 3
figure 3

Scatter plot to visualize the causal effect of BMI and lipids on postoperative infection using five methods.

The F statistics for instrumental variables (IVs) and the estimated power for all analyses are presented in Additional file 3. The F statistics for these IVs all exceed the threshold of 10. Mild heterogeneity was detected in the analysis of certain exposures (Additional file 4), therefore, we further utilized MR-PRESSO to identify for heterogeneity biases in the MR analyses of BMI, HDL-C, and postoperative infection. There was no significant outlier SNPs were detected upon individual SNP testing (Additional file 5). In the analysis of all exposures and outcomes through MR-Egger intercept test, no pleiotropy was detected (Additional file 6). The MR-Egger method for the pairs of BMI, HDL, and TG with postoperative infection provided significant estimates consistent with those obtained through IVW, indicating that causal associations still exist in these directions even after considering horizontal pleiotropy (Additional file 7). Leave-one-out analysis was used to analyze the six pairs of exposure-outcome traits. Only BMI-postoperative infection and HDL-postoperative infection, there were no instances of a single SNP driving the overall causal effect (Additional file 8). Using the MR-Steiger directionality test to confirm the correct direction of causal estimation, the results showed that the directionality was consistent across all six pairs of exposure-outcome traits. (Additional file 9). To explore the potential for BMI and lipids to impact postoperative infection risk through intermediary factors, we included mediators related to lipids and infection such as Cytokines, immunoglobulins, and blood cells. In the stepwise mediation MR analysis, we observed significant associations between exposure factors and several mediating factors, as well as between certain mediating factors and postoperative infection outcomes. However, no mediating factors showed a significant association with both exposure and outcome simultaneously. This suggests that these mediators do not serve as confounding variables in the causal pathway between exposure and postoperative infection. Therefore, the observed relationships between BMI, lipids, and postoperative infection remain robust without being driven by indirect mediating effects (Fig. 4 presents the main results, with detailed outcomes available in Additional file 10). The use of stepwise mediation MR analysis further enhanced the reliability of the MR analysis results26.

Fig. 4
figure 4

Forest plot to visualize the causal effect of mediators in MR analysis using the inverse variance-weighted method.

Reverse Mendelian randomization analysis

We conducted reverse MR analysis, treating postoperative infection as the exposure factor. Due to the absence of SNPs with P < 5 × 10−8 in the GWAS for postoperative infection, the selection criteria were adjusted to P < 5 × 10−6, with other filtering criteria remaining the same as in the MR analysis. The analysis revealed that when postoperative infection is considered as an exposure factor, it does not have a significant causal relationship with outcome factors (P > 0.05). (Additional file 11 and Additional file 12).

Discussion

In this study, through LDSC analysis, we explored the genetic correlation between BMI, lipid, and postoperative infection, revealing strong genetic correlations between BMI, HDL-C, nonHDL-C, TG, and postoperative infection. MR analysis explored causal associations between BMI, HDL, and postoperative infections, avoiding biases from confounders and reverse causality often present in observational studies. MR sits between intervention epidemiology and observational epidemiology in terms of evidence level27. Notably, BMI showed a significant positive causal relationship with postoperative infection, HDL-C demonstrated a significant negative causal relationship, and TG was identified as a potential risk factor for increased infection risk. These findings are consistent with the LDSC results, demonstrating genetic causal relationships between BMI, HDL, and postoperative infection. Through mediator factor analysis, we did not find any potential associations between cytokines, immunoglobulins, blood cells, and the relationships among BMI, lipids, and postoperative infection. These factors do not mediate the causal relationship between BMI, lipids, and postoperative infection. While prior observational studies10,28 have identified associations between BMI, HDL-C, and postoperative infection, they could not establish causality due to confounding and reverse causation. Our MR study addresses this gap by using genetic instrumental variables, providing stronger evidence that BMI increases risk while HDL-C serves as a protective factor.

The World Health Organization defines obesity as conditions characterized by excessive or abnormal fat accumulation that poses a risk to health. The prevalence of obesity is continually increasing worldwide. We discussed the impact of obesity on postoperative infection using BMI as a proxy. Obese patients have a significantly increased risk of hospital-acquired infections29, like catheter infections in ICU patients30. Recent studies on COVID-19 also mentioned that surgical weight reduction can significantly improve COVID-19 outcomes31. The many pro-inflammatory mediators and adipokines in the adipose tissue of obese patients are associated with chronic low-grade inflammation, which might enhance the characteristic COVID-19 cytokine storm32. Our study focuses on postoperative infection patients. Traditional views suggest that surgery-induced endogenous danger signals triggering a nonspecific inflammatory response are beneficial to patients, but they reduce resistance to infection33. Using genetic statistics, we explored the connections between lipids, obesity, and postoperative infections, seeking reasons for the increased risk of infection in postoperative patients. Zhai et al.6 showed a significant increase in the risk of surgical site infections post-colorectal cancer surgery in obese patients, and Chakaroun et al.4 indicated that bariatric surgery could reduce the risk of postoperative complications and infections, which aligns with our findings of a positive correlation between BMI and postoperative infection.

HDL has traditionally been considered protective against cardiovascular diseases34. Increasing evidence now indicates other roles of high-density lipoprotein, including its promotion of cholesterol efflux, and its apolipoprotein composition’s anti-inflammatory, antioxidant, and anti-diabetic properties35. Research has shown that lipids are involved in the development of infections, with low lipid and lipoprotein concentrations linked to poor prognosis. Serum lipoproteins decrease in quantity during the acute phase of infection, marking them as significant negative reactants5. HDL is considered a transporter of lipopolysaccharides in plasma, binding with lipopolysaccharides entering the bloodstream and transporting them to target sites for clearance. A decrease in HDL levels may increase the risk of postoperative infection10. A prospective observational study on cardiac surgery with cardiopulmonary bypass showed that low cholesterol levels pre-surgery might be a simple biomarker for early identification of patients at high risk of sepsis36. Trinder M and colleagues demonstrated that inhibiting cholesterol ester transfer protein preserves HDL cholesterol and improves survival rates in sepsis patients37. These findings are consistent with our study’s result of a significant negative correlation between HDL-C and postoperative infection. The study by Feng et al.38 indicated that LDL-C levels are not directly associated with the risk of sepsis or adverse outcomes in hospitalized patients with infections. This aligns with the results of our study, where no causal link was found between LDL-C and postoperative infection.

Currently, there are few MR studies on the relationship between obesity, lipids, and postoperative infections. This paper is the first to explore the genetic and causal connections between them, clarifying that obesity and HDL have genetic associations with postoperative infections, with obesity positively correlated and HDL negatively correlated. It provides statistical genetic guidance for perioperative treatment of surgical patients and for predicting outcomes using obesity and lipid markers in postoperative patients. Our findings extend existing epidemiological evidence by confirming a genetic causal association between BMI, Lipid, and postoperative infections. The MR approach overcomes biases inherent in observational research, reinforcing the importance of BMI and lipid management in perioperative care. There are some limitations in this study. The research population consisted solely of European individuals, which may not adequately represent other ethnic groups; the study also did not distinguish between different genders and age groups. Further validation with GWAS from more diverse populations is needed. Many studies have shown a U-shaped association between obesity and certain diseases39, but MR analysis does not demonstrate such a U-shaped relationship between obesity and some diseases, making it challenging to identify a similar association with postoperative infections. Although HDL-C is commonly used clinically to represent HDL concentration, many of HDL’s functions are exerted by the entire particle or components other than cholesterol17, meaning HDL-C does not fully describe all functions of HDL.

Conclusion

In this study, through LDSC and MR analyses, we identified genetic correlations and causal links between BMI, HDL, and postoperative infection. It was found that BMI might increase the risk of postoperative infection, whereas HDL could potentially lower the risk of developing postoperative infection.