R/peak_calling.R
separate_BAM_into_clusters.RdSeparate BAM files into cell cluster BAM files
separate_BAM_into_clusters(affectation, odir, merged_bam)
| affectation | An annotation data.frame containing cell_id and cell_cluster columns |
|---|---|
| odir | A valid output directory path |
| merged_bam | A list of merged bam file paths @importFrom Rsamtools filterBam ScanBamParam |
Create one BAM per cluster from one BAM per condition