TLR7 and cancer: •New findings: In this study, we proposed a computational framework to comprehensively study the roles of TLR7 in COVID-19 and pan-cancers at genetic, gene expression, protein, epigenetic, and single-cell levels.