Skip to content

Instantly share code, notes, and snippets.

View mbk0asis's full-sized avatar

Byungkuk Min mbk0asis

  • Korea Research Institute of Bioscience and Biotechnology (KRIBB)
  • Daejeon, S.Korea
  • 10:46 (UTC +09:00)
View GitHub Profile
library(ggplot2)
All <- read.csv("~/00-NGS/RNAseq/bov/niceM/Sham_Corrected/TopHat_UMD3.1_NCBI/log10_log2_mean.csv")
colnames(All) = c("chr","MI","MN","FI","FN",
"log10_MN_MI","log10_FI_MI","log10_FN_MI",
"log2_MN_MI","log2_FI_MI","log2_FN_MI")
head(All)
# set chr in natural order
All$chr <- factor(All$chr,
levels=c("1","2","3","4","5","6","7","8","9","10",
@mbk0asis
mbk0asis / cufflinks.txt
Last active January 19, 2018 01:19
cufflinks pipeline
library(ggplot2)
library(ggpmisc)
p <- ggplot(df2,aes(log2(df2$high_mean),log2(df2$low_mean)),
xlab="log2(Setdb1_high)", ylab="log2(Setdb1_low)")
p + xlim(0,10) + ylim(0,10)+ theme_bw() +
geom_point(size=1,alpha=.3,col="black") +
stat_density2d(aes(fill=..level..,alpha=..level..),geom='polygon',colour='grey50',bins=10, show.legend = F) +
scale_fill_continuous(low="yellow",high="red") +