View source: R/tidy_peakfile.R
tidy_peakfile | R Documentation |
This function filters peak files by removing peaks in blacklisted regions and in non-standard chromosomes. It also checks that the input list of peakfiles is named. If no names are provided, default file names will be used.
tidy_peakfile(peaklist, blacklist)
peaklist |
A named list of peak files as GRanges object.
Objects must be named and listed using |
blacklist |
Peakfile specifying blacklisted regions as GRanges object. |
list of GRanges object
### Load Data ###
data("encode_H3K27ac") # example peakfile GRanges object
data("CnT_H3K27ac") # example peakfile GRanges object
data("hg19_blacklist") # blacklist region for hg19 genome
### Create Named Peaklist ###
peaklist <- list("encode"=encode_H3K27ac, "CnT"=CnT_H3K27ac)
### Run ###
peaklist_tidy <- tidy_peakfile(peaklist = peaklist,
blacklist = hg19_blacklist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.