# get library
library(bPeaks)
# STEP 1: get PDR1 data (ChIP-seq experiments, IP and control samples,
# related to the transcription factor Pdr1 in yeast Saccharomyces
# cerevisiae)
data(dataPDR1)
# STEP 2 : bPeaks analysis (only 10 kb of chrIV are analyzed here,
# as an illustration)
bPeaksAnalysis(IPdata = dataPDR1$IPdata[40000:50000,],
controlData = dataPDR1$controlData[40000:50000,],
cdsPositions = dataPDR1$cdsPositions,
windowSize = 150, windowOverlap = 50,
IPcoeff = 4, controlCoeff = 2,
log2FC = 1, averageQuantiles = 0.5,
resultName = "bPeaks_example")
# --> Result files (PDF and BED) are written in the working directory.
## Not run:
# # -> bPeaks analysis, all chromosome IV and default parameters (optimized for yeasts)
#
# # STEP 1: get PDR1 data (ChIP-seq experiments, IP and control samples,
# # related to the transcription factor Pdr1 in yeast Saccharomyces
# # cerevisiae)
# data(dataPDR1)
#
# # STEP 2: bPeaks analysis
# bPeaksAnalysis(IPdata = dataPDR1$IPdata,
# controlData = dataPDR1$controlData,
# cdsPositions = dataPDR1$cdsPositions,
# windowSize = 150, windowOverlap = 50,
# IPcoeff = 2, controlCoeff = 2,
# log2FC = 2, averageQuantiles = 0.9,
# resultName = "bPeaks_PDR1",
# peakDrawing = TRUE)
#
# # STEP 3 : procedure to locate peaks according to
# # gene positions
# peakLocation(bedFile = "bPeaks_PDR1_bPeaks_allGenome.bed",
# cdsPositions = yeastCDS$Saccharomyces.cerevisiae,
# outputName = "bPeakLocation_finalPDR1", promSize = 800)
#
# # -> Note that cds (genes) positions are stored in bPeaks package for several yeast
# # species
# data(yeastCDS)
#
# summary(yeastCDS)
# # Length Class Mode
# # Debaryomyces.hansenii 31370 -none- character
# # Eremothecium.gossypii 23615 -none- character
# # Kluyveromyces.lactis 25380 -none- character
# # Pichia.sorbitophila 55875 -none- character
# # Saccharomyces.kluyveri 27790 -none- character
# # Yarrowia.lipolytica 32235 -none- character
# # Zygosaccharomyces.rouxii 24955 -none- character
# # Saccharomyces.cerevisiae 5 data.frame list
# # Candida.albicans 5 data.frame list
# # Candida.glabrata 5 data.frame list
# ## End(Not run)
Run the code above in your browser using DataLab