R/peak_calling.R
annotation_from_merged_peaks.RdFind nearest peaks of each gene and return refined annotation
annotation_from_merged_peaks(scExp, odir, merged_peaks, geneTSS_annotation)
| scExp | A SingleCellExperiment object |
|---|---|
| odir | An output directory where to write the mergedpeaks BED file |
| merged_peaks | A list of GRanges object containing the merged peaks |
| geneTSS_annotation | A GRanges object with reference genes |
A data.frame with refined annotation