muon.atac.tl.locate_fragments

muon.atac.tl.locate_fragments#

muon.atac.tl.locate_fragments(data: AnnData | MuData, fragments: str, return_fragments: bool = False)#

Parse fragments file and add a variable to access it to the .uns[“files”][“fragments”]

Fragments file is never read to memory, and connection to the file is closed upon function completion.

Parameters:
  • data – AnnData object with peak counts or multimodal MuData object with ‘atac’ modality.

  • fragments – A path to the compressed tab-separated fragments file (e.g. atac_fragments.tsv.gz).

  • return_fragments – If return the Tabix connection the fragments file. False by default.