library(PepBedR)
library(VennDiagram)
library(ggplot2)
library(gplots)
bedFileDataPepGenome <- readBedFile("/Users/yperez/IdeaProjects/github-repo/BDP/benchmark/PepGenome-PeptideAtlas.bed");
bedFileDataPepGenome <- setBed12Columns(bedFileDataPepGenome);
bedFileDataPGx <- readBedFile("/Users/yperez/IdeaProjects/github-repo/BDP/benchmark/PGx-PeptideAtlas-Human.bed")
bedFileDataPGx <- setBed12Columns(bedFileDataPGx);
#Generate Venn Diagram Overlap the overlap of peptides.
peptideLists <-list(PepGenome = bedFileDataPepGenome$name, PGx = bedFileDataPGx$name)
venn.plot <- venn.diagram(peptideLists , filename = "../benchmark/PepGenome.png", fill=c("red", "green"), alpha=c(0.2,0.2), cex = 1, cat.fontface=1, cat.cex=1, category.names=c("PepGenome", "PGx"), main="Number of Peptides map to the Human ENSEMBL Genome", scaled = FALSE, cat.default.pos='text')
peptideListsPositions <-list(PepGenome = paste0(bedFileDataPepGenome$name, bedFileDataPepGenome$chromStart, bedFileDataPepGenome$chromEnd), PGx = paste0(bedFileDataPGx$name, bedFileDataPGx$chromStart, bedFileDataPGx$chromEnd))
venn.plot <- venn.diagram(peptideListsPositions , filename = "../benchmark/PepGenomeWithPositions.png", fill=c("red", "green"), alpha=c(0.2,0.2), cex = 1, cat.fontface=1, cat.cex=1, category.names=c("PepGenome", "PGx"), main="Number of Peptides map to the Human ENSEMBL Genome (Compare using Chromosome Positions)", scaled = FALSE, cat.default.pos='text')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.