Description Usage Arguments Details Value Author(s) References Examples
View source: R/plotOccupancyDev.R
plotOccupancyProfile
plots the predicted profiles.
If provided, this functions will also plot ChIP-seq profiles,
PWMScores (or Occupancy), chromatin States, Goodness of Fit estimates and gene information.
1 2 3 |
predictedProfile |
|
ChIPScore |
|
chromatinState |
|
occupancy |
|
goodnessOfFit |
|
PWM |
|
geneRef |
|
axis |
|
... |
Any other graphical Parameter of the following : col, density, border, lty, lwd, cex, cex.axis, xlab, ylab, xlim, ylim, las and axislables. Each Parameter will be parsed in the same order as the arguments to this function. If the name of the argument is specified, the argument value will be parsed to the correct internal plotting. See examples below |
Once the predicted ChIP-seq like profiles have been computed, it is possible to plot these profiles.
Returns a profile plot with "Occupancy" on the y axis and DNA position on the the X- axis. If the orange line is the predicted profile, the grey shaded area represents real ChIP-seq data. The yellow boxes represent regions on NON-accessible DNA. On the lower part of the plot, gene information is plotted with respect to the strand they are localised on. Finally, the blue vertical lines represent sites of either high Occupancy or high PWM score depending on which had been selected. The minimal plot will only contain the predicted profile. The more data is provided the more will be plotted. IMPORTANT: the colours described above represent the default colour values. If colours are provided by the user, they will be updated in plotting order or if the argument has been speicified assigned to said argument.
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<e2><80><93>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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #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)
#Building data objects
GPP <- genomicProfiles(PFM=PFM,BPFrequency=DNASequenceSet)
# Computing Genome Wide
GenomeWide <- computeGenomeWideScores(DNASequenceSet = DNASequenceSet,
genomicProfiles = GPP)
#Compute PWM Scores
PWMScores <- computePWMScore(DNASequenceSet = DNASequenceSet,
genomicProfiles = GenomeWide,
loci = eveLocus, chromatinState = Access)
#Compute Occupnacy
Occupancy <- computeOccupancy(genomicProfiles = PWMScores)
#Compute ChIP profiles
chipProfile <- computeChipProfile(loci = eveLocus,
genomicProfiles = Occupancy)
#Plotting Profile
plotOccupancyProfile(predictedProfile=chipProfile,
ChIPScore = eveLocusChip,
chromatinState = Access,
occupancy = Occupancy,
geneRef =geneRef)
## Changing graphical Parameters
#### In this examples ####
### predictedProfile will be red
### chipProfile will be blue
### and DNAAccessibility will be green
plotOccupancyProfile(predictedProfile=chipProfile,
ChIPScore = eveLocusChip,
chromatinState = Access,
occupancy = Occupancy,
geneRef =geneRef,col=c("red","blue","green"))
### If name is specified
plotOccupancyProfile(predictedProfile=chipProfile,
ChIPScore = eveLocusChip,
chromatinState = Access,
occupancy = Occupancy,
geneRef =geneRef,col=c("DNAAccessibility"="red","blue","green"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.