Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Attaching package: 'Biobase'
The following object is masked from 'package:MatrixGenerics':
rowMedians
The following objects are masked from 'package:matrixStats':
anyMissing, rowMedians
Loading required package: Biostrings
Warning: package 'Biostrings' was built under R version 4.3.1
Loading required package: XVector
Warning: package 'XVector' was built under R version 4.3.1
Attaching package: 'Biostrings'
The following object is masked from 'package:base':
strsplit
Loading required package: bumphunter
Warning: package 'bumphunter' was built under R version 4.3.1
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
Loading required package: locfit
Warning: package 'locfit' was built under R version 4.3.1
# This code is not executed due to limit size (50 mb) of github# Please load the 450karrar_processed.rds data that is the resulto of this code# If you want to do this with the original data, you can find this data on: # https://github.com/genomicsclass/tcgaMethylationSubsettargets$Basename <-paste0(getwd(),"/notebooks/", targets$Basename)dat <-read.metharray(targets$Basename, verbose = T)pData(dat) <-as(targets, "DataFrame")## preprocessingdat <-preprocessIllumina(dat)dat <-mapToGenome(dat)dat <-ratioConvert(dat, type="Ilumina")index_tissue =which(pData(dat)$Tissue !="breast")dat <- dat[,index_tissue]index_chr =which(seqnames(dat)=="chr22")dat <- dat[index_chr,]
In [3]:
Code
dat <-readRDS(file ="450karray_processed.rds")X <-model.matrix(~pData(dat)$Tissue)library(doParallel)detectCores()
# remember that this is only the chromosome 22tab <- res$table[res$table$fwer <=0.05, ]tab <-makeGRangesFromDataFrame(tab, keep.extra.columns =TRUE)tab