mergeBedpe.Rd
Given a list of BEDPE files, a resolution, and a selector column, this function will use dbscan to merge loops by genomic distance.
mergeBedpe(
bedpeFiles,
res = 5000,
selectCol = 12,
dist_method = "manhattan",
minPts = 2
)
Character vector of BEDPE file paths to be merged.
Integer - resolution in base-pairs of all BEDPE interactions. Used to
determine the epsilon value for dbscan()
(i.e. eps = res*2
).
Integer or character string denoting the column to be used to select clustered interactions.
Character string - distance measure used in the dist function. For
available methods see ?dist()
.
Integer - minimum number of interactions to form a DBSCAN cluster.
Returns a data table of selected BEDPE interactions