Skip to content

Instantly share code, notes, and snippets.

View Yale73's full-sized avatar
☺️

Yale Liu Yale73

☺️
View GitHub Profile
@tomsing1
tomsing1 / ggplot2_volcano.R
Created November 1, 2017 23:35
ggplot2 volcano plot
library(ggplot2)
library(scales)
# set up an example dataset (see ?lmFit)
sd <- 0.3*sqrt(4/rchisq(100,df=4))
y <- matrix(rnorm(100*6,sd=sd),100,6)
rownames(y) <- paste("Gene",1:100)
y[1:2,4:6] <- y[1:2,4:6] + 2
design <- cbind(Grp1=1,Grp2vs1=c(0,0,0,1,1,1))
options(digits=3)
@adefelicibus
adefelicibus / conda-r.md
Last active February 12, 2021 18:12
How to install R 3.2.2 using a conda environment on CentOS

Download Miniconda

  • Python 2.7
    # 32 bits
    $ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86.sh
    # 64 bits
    $ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh