Skip to main content

Midpoint Profiles

cfdna midpoints writes <prefix>.midpoint_profiles.zarr. Load midpoint profile Zarr stores and extract count arrays or data frames by group, fragment length bin, and midpoint position.

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

Quick Use

import cfdnalab as cfl

profiles = cfl.read_midpoints("sample.midpoint_profiles.zarr")

groups = profiles.group_metadata()
length_bins = profiles.length_bins()
positions = profiles.positions()

profile = profiles.data_frame(groups="LYL1", with_lengths=167)

Notes

  • Select groups or length bins before expanding to a data frame when the store is large.
  • Python indices are zero-based. R indices are one-based.

Function Index

SymbolTypeSummary
read_midpointsfunctionOpen a cfDNAlab midpoint profile Zarr store.
MidpointProfilesclassHelper for loading and slicing midpoint profile Zarr output.

Full details: Python API.