bedToGRanges {diffloop} | R Documentation |
bedToGRanges
takes a string corresponding to a file
and creates a GRanges object, retaining meta-data
bedToGRanges(file) ## S4 method for signature 'character' bedToGRanges(file)
file |
A string specifiying .bed file location |
Useful function to read in a .bed file to create a GRanges object
where the meta-data is presevered. Useful for later functions like
annotateAnchors
A GRanges object
#Read in CTCF Jurkat peaks in ctcf_j <- system.file('extdata','Jurkat_CTCF_chr1.narrowPeak',package = 'diffloop') ctcf <- bedToGRanges(ctcf_j)