Code for: Ambient RNA creates and its correction removes inferred cell–cell interactions in the developing human heart
Abstract
Software record for the source code accompanying the manuscript “Ambient RNA creates and its correction removes inferred cell–cell interactions in the developing human heart.” The archive contains the analysis scripts and helper files used for expression-data preparation, LIANA-based ligand–receptor inference, ambient-RNA correction, empirical ambient-profile spike-in and sensitivity analyses, lineage-plausibility checks, independent-atlas validation, spatial analyses, and figure generation. AbstractLigand–receptor inference from single-cell RNA sequencing assumes that each transcript belongs to the cell in which it was captured. We tested this assumption in first-trimester human hearts, where cardiomyocyte transcripts dominate the ambient RNA pool. In three libraries with ambient fractions of 0.17–0.40, cardiomyocyte genes were detected in 60–100% of non-myocytes and inferred interactions were inflated up to 2.90-fold. Spiking the empirical ambient profile into clean data reproduced the inflation and re-ranking. Correction with the true fraction removed only part of the false positives, and removing most of them deleted genuine interactions, mainly of broadly expressed receptors such as ITGB1. In two independent fetal heart atlases, droplet- and plate-based, interactions placing lineage-restricted genes in the wrong cells almost never replicated, whereas interactions removed only by the stronger correction often did. Combining correction, lineage audits and replication yielded a robust communication map of the early human heart. Authors and affiliationsHuasheng Lv (1); Guohui Han (2); Fengyu Sun (3); Teng Yuan (2); Haiquan Ai (4); You Chen (2).(1) Department of Cardiology, The First Affiliated Hospital of Shandong First Medical University & Shandong Provincial Qianfoshan Hospital, Shandong Medicine and Health Key Laboratory of Cardiac Electrophysiology and Arrhythmia, Jinan, China.(2) Department of Cardiology, The First Affiliated Hospital of Xinjiang Medical University, Urumqi, China.(3) Department of Pediatrics, Xinjiang Medical University, Urumqi, China.(4) Reproductive Medicine Center, The First Affiliated Hospital of Xinjiang Medical University, Urumqi, China. FundingTop Young Scientific and Technological Talents of the Tianshan Talent Cultivation Program in Xinjiang (2024TSYCCX0101) and the Excellence Talent Training Program of the First Affiliated Hospital of Xinjiang Medical University (Dangzi2023-52), awarded to You Chen; Graduate Research and Innovation Project of Xinjiang Uygur Autonomous Region (XJ2026G168), awarded to Teng Yuan. Package and reuse notesThe ZIP contains 34 source/helper files, a README, and a SHA-256 manifest. Input matrices, validation datasets, result tables, manuscript files, supplementary materials, and figures are not included; consult the manuscript and README for data sources and setup details. Some scripts retain the original local directory layout and require path updates before reuse. This deposit preparation packaged the source files; it did not execute the analyses.