発表スライド(PDF)は,こちら.
Rのインストールは行いません.予めご準備ください.できればライブラリのインストールも(下記のコマンドをR上で実行).
source("http://bioconductor.org/biocLite.R")
biocLite("GEOquery")
R_LIBS="C:/Program Files/R/myRlib"
R_LIBS="$HOME/lib/R:/usr/local/lib/R-contrib"
data(iris)
head(iris)
plot(iris[,c(3,4)])
points(iris[iris$Species == "setosa", c(3,4)], col=2, pch=16)
points(iris[iris$Species == "versicolor", c(3,4)], col=3, pch=16)
points(iris[iris$Species == "virginica", c(3,4)], col=4, pch=16)
library("GEOquery")
gds <- getGEO("GDS2861")
gds @ header
gds @ dataTable @ columns
head(gds @ dataTable @ table)
d <- gds @ dataTable @ table
str(d)
# 文字(character)を数字(numeric)に変換
for (i in 3:8) d[i] <- as.numeric (d[[i]])
str(d)
boxplot (d[3:8])
plot (d[,c(3,6)])
mean_wt <- apply (d[,3:5], 1, mean)
mean_ox <- apply (d[,6:8], 1, mean)
plot (mean_wt, mean_ox)
abline (log2(3), 1)
abline (-log2(3), 1)
subset (d, mean_treat - mean_cont > log2(3))