Description Usage Arguments Details Value Author(s) References Examples
View source: R/computeOptimal.R
ChIPanalyser
contains a set of functions some of which require two
parameters known as lambdaPWM
and as
boundMolecules
. These two paramters are not always known.
computeOptimal
will compute these values by maximising the
correlation and minimising the Mean Squared Error between a predicted
ChIP-seq-like profile and a real ChIP-seq profile for a given loci.
1 2 3 | computeOptimal(genomicProfiles,DNASequenceSet, ChIPScore,chromatinState = NULL,
parameterOptions = NULL, optimalMethod = "all",rank=FALSE,returnAll=TRUE,
peakMethod="moving_kernel",cores=1)
|
genomicProfiles |
|
DNASequenceSet |
|
ChIPScore |
|
chromatinState |
|
parameterOptions |
|
optimalMethod |
|
rank |
|
returnAll |
|
peakMethod |
|
cores |
|
In order to backward infer the values of lambdaPWM
and boundMolecules
, it is possible to use the
computeOptimal
to find these parameters.
It should be noted that this functions requires a ChIP-seq data input.
ChIPScore
(ChIP-seq data). This should be the output of the processingChIP
function.
computeOptimal
returns a list respectivly described as the optimal
set of Parameters (lambda - lambdaPWM
and
boundMolecules
), the optimal matrix (a matrix containing
accuracy estimates dependant on the parameter chosen), and finally the
chosen parameter. If the parameter that was chosen was "all",
then each element of this list will contain the optimal set of
parameters, optimal matricies for all of the aforementioned paramters (see optimalMethod
).
Patrick C. N. Martin <pm16057@essex.ac.uk>
Zabet NR, Adryan B (2015) Estimating binding properties of transcription factors from genome-wide binding profiles. Nucleic Acids Res., 43, 84–94.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #Data extraction
data(ChIPanalyserData)
# path to Position Frequency Matrix
PFM <- file.path(system.file("extdata",package="ChIPanalyser"),"BCDSlx.pfm")
#As an example of genome, this example will run on the Drosophila genome
if(!require("BSgenome.Dmelanogaster.UCSC.dm3", character.only = TRUE)){
if (!requireNamespace("BiocManager", quietly=TRUE))
install.packages("BiocManager")
BiocManager::install("BSgenome.Dmelanogaster.UCSC.dm3")
}
library(BSgenome.Dmelanogaster.UCSC.dm3)
DNASequenceSet <- getSeq(BSgenome.Dmelanogaster.UCSC.dm3)
eveLocusChip<-processingChIP(eveLocusChip,eveLocus)
#Building data objects
GPP <- genomicProfiles(PFM=PFM,BPFrequency=DNASequenceSet)
OPP <- parameterOptions()
#Computing Optimal set of Parameters
optimalParam <- computeOptimal(genomicProfiles = GPP,
DNASequenceSet = DNASequenceSet,
ChIPScore = eveLocusChip,
chromatinState = Access,
parameterOptions = OPP,
parameter = "all",
peakMethod="moving_kernel")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.