scglue.genomics.write_links
- scglue.genomics.write_links(graph, source, target, file, keep_attrs=None)[source]
Export regulatory graph into a links file
- Parameters:
graph (
Graph) – Regulatory graphsource (
scglue.genomics.Bed) – Genomic coordinates of source nodestarget (
scglue.genomics.Bed) – Genomic coordinates of target nodesfile (
os.PathLike) – Output filekeep_attrs (
typing.Optional[typing.List[str]]) – A list of attributes to keep for each link
- Return type: