Users are required to utilize this function in order to convert BED format files into a list, which is an essential prerequisite for subsequent analyses

get_beds(bedpaths, names = NULL, pattern = ".bed")

Arguments

bedpaths

The vector contains the paths of bed files, can be dir_path.

names

Define the names of input files.

pattern

The suffix of the bed files. Default: '.bed'.

Value

A list which can be used for calculating intersection of each beds

Examples

get_beds(c('./Encode_bed/ccc.bed', './peak/xxx.bed','./peak/zzz.bed'), names=c('A1','A2','A3'))
#> Warning: Assigned names can not match the number of bed files, use file name...
#> Error in strsplit(current_path, "/"): non-character argument