cellink.tl.external.load_roadmap_links#
- cellink.tl.external.load_roadmap_links(roadmap_file, tissue=None, eid_map_file=None)#
Load Roadmap enhancer-gene links from the combined all-tissue file.
The actual file in the GCS bucket is
RoadmapUABCannot_regions_to_genes.txt.gz, a single combined file for all tissues. Per-tissue files (Roadmap_BLD_E.txt.gzetc.) do not exist in the bucket; cellink filters the combined file here instead.- Parameters:
roadmap_file (
str|Path) – Path toRoadmapUABCannot_regions_to_genes.txt.gz, downloaded bydownload_sclinker_enhancer_links().tissue (
str|None(default:None)) – Tissue code to filter to (e.g."BLD"). If None, returns all rows. UsesRoadmap_map_EID_names.txt(eid_map_file) to match EIDs to tissue names. Ifeid_map_fileis None, thetissuefilter is applied as a case-insensitive substring match on the EID/tissue column.eid_map_file (
str|Path|None(default:None)) – Path toRoadmap_map_EID_names.txtfor EID→tissue mapping. Only used whentissueis not None.
- Return type:
DataFrame- Returns:
pd.DataFrame with columns: chr, start, end, Gene, EID, activity (score).