Description Usage Arguments Details Value Note Author(s) References See Also Examples
Filters peak intervals that overlap a blacklist (from ENCODE or user supplied.) Filter peak intervals that overlap a greylist, either user supplied or generated based on aligned reads for control samples (e.g. Inputs).
1 2 3 | dba.blacklist(DBA, blacklist=DBA$config$doBlacklist,
greylist=DBA$config$doGreylist,
Retrieve, cores=DBA$config$cores)
|
DBA |
DBA object |
blacklist |
If not equal to If equal to A user specified blacklist can be specified by setting this parameter to
a Otherwise, this parameter may be set to one of the following constants, indicating which of the ENCODE blacklists should be applied:
|
greylist |
If not equal to If equal to The The following constants map to a subset of possible
A user specified greylist can also be specified by setting this parameter to
a |
Retrieve |
If present, some aspects of a previous run of the function is retrieved instead
of returning a If If If
Note that the if |
cores |
Parallel cores to use when running greylist generation. |
This function is intended to filter peak intervals that fall in regions of the genome that are known to be problematic for ChIP analysis. Blacklists, which are derived for a reference genome and should be applied for any experiments that use that reference, are distinguished from greylists, which are derived on a per-experiment basis using anomalous pileups in the control tracks (such as Inputs).
A core set of blacklists have been defined as part of the ENCODE project (see references).
Greylists can be generated using this function, which serves as a front-end to the GreyListChIP
package.
See the details of that package for more information on how it works.
Note that the GreyListChIP
package can be utilized separately to generate greylists
with more fine-grained control, with the results passed back to DiffBind
to filter peaks.
DBA
object, with peaks filtered (unless Retrieve
is specified.)
The p
threshold can be altered by setting DBA$config$greylist.pval
.
The default is 0.999
.
See GreyListChIP::
calcThreshold
for details.
Ideally, Blacklists and Greylists will be applied to the aligned reads prior
to calling peaks, as removing reads in anomalous regions
will yield better background noise models.
Once greylists have been generated, peaks can be
re-called and read into DiffBind
.
Rory Stark with thanks to Gord Brown
Amemiya HM, Kundaje A, Boyle AP. The ENCODE blacklist: identification of problematic regions of the genome. Sci Rep. 2019 Dec; 9(1) 9354 DOI: 10.1038/s41598-019-45839-z
ENCODE Project Consortium. An integrated encyclopedia of DNA elements in the human genome. Nature. 2012 Sep 6;489(7414):57-74. doi: 10.1038/nature11247.
Brown, Gord. Generating Grey Lists from Input Libraries. Bioconductor. https://bioconductor.org/packages/release/bioc/html/GreyListChIP.html
GreyListChIP (GreyList)
, BSgenome
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(tamoxifen_peaks)
## Not run: tamoxifen <- dba.blacklist(tamoxifen, blacklist=TRUE,
greylist="BSgenome.Hsapiens.UCSC.hg19")
## End(Not run)
data(tamoxifen_greylist)
tamoxifen <- dba.blacklist(tamoxifen, blacklist=DBA_BLACKLIST_HG19,
greylist=tamoxifen.greylist$master)
dba.blacklist(tamoxifen,Retrieve=DBA_GREYLIST)
data(tamoxifen_counts)
tamoxifen <- dba.count(tamoxifen, peaks=NULL, score=DBA_SCORE_CONTROL_READS)
tamoxifen <- dba.blacklist(tamoxifen, blacklist=DBA_BLACKLIST_HG19,
greylist=tamoxifen.greylist$master)
blacklisted <- dba.blacklist(tamoxifen, Retrieve=DBA_BLACKLISTED_PEAKS)
mean(blacklisted[[1]]$cReads)
mean(dba.peakset(tamoxifen,peaks=1,bRetrieve=TRUE)$Score)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.