format_haplotypes_dlp.RdConverts raw haplotype data from DLP+ sequencing to the format required by signals. This includes binning haplotypes to match copy number bin coordinates and converting from long to wide format.
format_haplotypes_dlp(haplotypes, CNbins, hmmcopybinsize = 5e+05)A data.frame with raw haplotype allele counts. Required columns: `cell_id`, `chr`, `start`, `end`, `hap_label`, `allele_id`, `readcount`.
A data.frame with copy number bin coordinates. Used to align haplotype bins. Required columns: `chr`, `start`, `end`.
Bin size used by HMMcopy for copy number calling. Default 0.5e6 (500kb).
A data.frame with formatted haplotypes containing columns: * `cell_id`: Cell identifier * `chr`: Chromosome * `start`, `end`: Bin coordinates (aligned to CNbins) * `hap_label`: Haplotype block identifier * `allele1`, `allele0`: Read counts for each allele * `totalcounts`: Total read counts (allele1 + allele0)
[format_haplotypes()] for adding phasing information