Skip to main content

End-Motif Counts

cfdna ends writes <prefix>.end_motifs.zarr. Load dense or sparse end-motif count Zarr stores and extract motif count tables, dense arrays, or sparse matrices.

This is loader API documentation, not command-line help. See cfdna ends for command flags and output generation.

Quick Use

import cfdnalab as cfl

ends = cfl.read_end_motifs("sample.end_motifs.zarr")

storage = ends.storage_mode()
row_mode = ends.row_mode()
motifs = ends.motifs_metadata()

motif_counts = ends.data_frame(motifs="_AA")
motif_matrix = ends.sparse_counts_matrix(motifs="_AA")

Notes

  • Sparse stores stay sparse unless a dense helper explicitly receives a densify option.
  • Windowed and grouped outputs can filter rows by max_blacklisted_fraction.

Function Index

SymbolTypeSummary
read_end_motifsfunctionOpen a cfDNAlab end-motif count Zarr store.
EndMotifCountsclassCommon API for global, windowed, and grouped end-motif outputs.
GlobalEndMotifCountsclassEnd-motif counts for global output.
WindowedEndMotifCountsclassEnd-motif counts for fixed-size or BED-window output.
GroupedEndMotifCountsclassEnd-motif counts for grouped BED output.

Full details: Python API.