Skip to content
Snippets Groups Projects
Commit c8f21f96 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Overlap of enhancers plot.

parent 7a9a34d2
Branches
Tags
No related merge requests found
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
You can go to Intervene Shiny App https://asntech.shinyapps.io/Intervene-app/ and copy/paste the following intersection data to get more interactive figures.
H3K27ac_enhancers=12592,H3K27ac_enhancers&H3K4me1_enhancers=55720,H3K4me1_enhancers=153356,GRO-seq_enhancers&H3K27ac_enhancers&H3K4me1_enhancers=179,GRO-seq_enhancers&H3K27ac_enhancers=49,GRO-seq_enhancers=907,GRO-seq_enhancers&H3K4me1_enhancers=189
\ No newline at end of file
#!/usr/bin/env Rscript
if (suppressMessages(!require("UpSetR"))) suppressMessages(install.packages("UpSetR", repos="http://cran.us.r-project.org"))
library("UpSetR")
pdf("/Users/venkatmalladi/Projects/PITTED/intervene_test/Intervene_results/intervene_genomic_UpSet_plot.pdf", width=10, height=8, onefile=FALSE)
expressionInput <- c('H3K27ac_enhancers'=12592,'H3K27ac_enhancers&H3K4me1_enhancers'=55720,'H3K4me1_enhancers'=153356,'GRO-seq_enhancers&H3K27ac_enhancers&H3K4me1_enhancers'=179,'GRO-seq_enhancers&H3K27ac_enhancers'=49,'GRO-seq_enhancers'=907,'GRO-seq_enhancers&H3K4me1_enhancers'=189)
upset(fromExpression(expressionInput), nsets=3, nintersects=30, show.numbers="yes", main.bar.color="#108DCC", sets.bar.color="#E62128", empty.intersections=NULL, order.by = "degree", number.angles = 0, mainbar.y.label ="No. of Intersections", sets.x.label ="No. of Unique Enhancers")
invisible(dev.off())
File added
This diff is collapsed.
This diff is collapsed.
# Make overlap of enhancer data
cp ../H3K4me1_filtered_peaks.bed H3K4me1_enhancers.bed
cp ../H3K27ac_filtered_peaks.bed H3K27ac_enhancers.bed
cp ../SUNP_filtered_peaks.bed .
cp ../SUNP_filtered_peaks.bed .
cut -f1,2,3 SUNP_filtered_peaks.bed > t
cut -f1,2,3 SSP_filtered_peaks_merged.bed >> t
sort-bed t > GRO-seq_filtered_peaks.bed
intervene upset -i *enhancers.bed --filename --order degree --sxlabel "No. of Unique Enhancers" --dpi 1200 --figsize 10 8 --mbcolor "#108DCC" --sbcolor "#E62128"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment