scglue
latest

Contents:

  • Installation guide
  • Tutorials
  • Example datasets
  • API documentation
    • scglue
      • scglue.check
      • scglue.data
      • scglue.genomics
        • scglue.genomics.cis_regulatory_ranking
        • scglue.genomics.dist_power_decay
        • scglue.genomics.ens_trim_version
        • scglue.genomics.get_chr_len_from_fai
        • scglue.genomics.interval_dist
        • scglue.genomics.read_bed
        • scglue.genomics.read_ctx_grn
        • scglue.genomics.read_gtf
        • scglue.genomics.regulatory_inference
        • scglue.genomics.rna_anchored_guidance_graph
        • scglue.genomics.rna_anchored_prior_graph
        • scglue.genomics.window_graph
        • scglue.genomics.write_links
        • scglue.genomics.write_scenic_feather
        • scglue.genomics.Bed
        • scglue.genomics.Gtf
      • scglue.graph
      • scglue.metrics
      • scglue.models
      • scglue.num
      • scglue.plot
      • scglue.typehint
      • scglue.utils
  • Release notes
  • Developer guide
  • Credits
scglue
  • API documentation
  • scglue
  • scglue.genomics
  • scglue.genomics.write_links
  • Edit on GitHub

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 graph

  • source (scglue.genomics.Bed) – Genomic coordinates of source nodes

  • target (scglue.genomics.Bed) – Genomic coordinates of target nodes

  • file (os.PathLike) – Output file

  • keep_attrs (typing.Optional[typing.List[str]]) – A list of attributes to keep for each link

Return type:

None

Previous Next

© Copyright Gao Lab, 2022. Revision fc6c2093.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
v0.3.2
v0.3.1
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.1
Downloads
On Read the Docs
Project Home
Builds