Dear Rnbead team,
I am trying to work though the package. As a start I have tried the Ziller dataset and with this command it worked fine.
## Trying with Ziller dataset #
data.dir <- "/Volumes/dsm-pathology-genomics-1/Aniruddha_Chatterjee/Working/Ziller2011_PLoSGen_450K"
idat.dir <- file.path(data.dir, "idat")
sample.annotation <- file.path(data.dir, "sample_annotation.csv")
# Directory where the output should be written to
analysis.dir <- "/Volumes/dsm-pathology-genomics-1/Aniruddha_Chatterjee/Working/Ziller2011_PLoSGen_450K/analysis"# Directory where the report files should be written to report.dir <- file.path(analysis.dir, "reports")
# Directory where the report files should be written to #
report.dir <- file.path(analysis.dir, "reports")
# Re-intitilaze a report directory for tailor analysis ##
report.dir <- file.path(analysis.dir, "reports_details")
rnb.initialize.reports(report.dir)
#[1] FALSE
logger.start(fname=NA)
data.source <- c(idat.dir, sample.annotation)
source("
https://bioconductor.org/biocLite.R")
biocLite("RnBeads.hg19")
result <- rnb.run.import(data.source=data.source,data.type="infinium.idat.dir", dir.reports=report.dir)
#worked fine#
rnb.set <- result$rnb.set
rnb.set ## see how it looks.
#Object of class RnBeadRawSet
12 samples
485577 probes
of which: 482421 CpG, 3091 CpH, and 65 rs
Region types:
138358 regions of type tiling
31033 regions of type genes
31195 regions of type promoters
26662 regions of type cpgislands
Intensity information is present
Detection p-values are present
Bead counts are present
Quality control information is present
Summary of normalization procedures:
The methylation data was not normalized.
No background correction was performed.##
# Visualize the bimodal distribution of beta values in sample 5#
hist(meth(rnb.set)[, 5])
# WORKS FINE
Then I tried importing my one dataset in similar fashion. I have 21 sample and I have checked that I have 42 IDAT files (21 grn and 21 red), its exactly same as shown in Zillers. However, I am getting this error.
## set directory where 450K data is there ##
library(RnBeads)
data.dir <- "/Volumes/dsm-pathology-genomics-1/Aniruddha_Chatterjee/Working/450K_Shohei"
idat.dir <- file.path(data.dir, "21_idat")
sample.annotation <- file.path(data.dir, "sample_annotation_HB_mod.csv")
# Directory where the report files should be written to report.dir <- file.path(analysis.dir, "reports")#
analysis.dir <- "/Volumes/dsm-pathology-genomics-1/Aniruddha_Chatterjee/Working/450K_Shohei/analysis"
# Directory where the report files should be written to #
report.dir <- file.path(analysis.dir, "reports")
# Re-intitilaze a report directory for tailor analysis ##
report.dir <- file.path(analysis.dir, "reports_details")
rnb.initialize.reports(report.dir)
# logger.start(fname=NA) # if you dont want report #
data.source <- c(idat.dir, sample.annotation)
result <- rnb.run.import(data.source=data.source,data.type="infinium.idat.dir", dir.reports=report.dir)
## error message:
2017-02-08 13:34:06 0.4 STATUS STARTED Loading Data
2017-02-08 13:34:07 0.4 INFO Number of cores: 1
2017-02-08 13:34:09 0.4 INFO Loading data of type "infinium.idat.dir"
2017-02-08 13:34:10 0.4 STATUS STARTED Loading Data from IDAT Files
2017-02-08 13:34:12 0.4 WARNING The sample sheet table has only one column. Please check import.table.separator option
2017-02-08 13:34:13 0.4 INFO Added column barcode to the provided sample annotation table
2017-02-08 13:34:14 0.4 ERROR Some IDAT files are not present in the supplied base directory, for instance 1,2.00E+11,R01C01,2,N,2N_1,2.00E+11,R01C01,2,N,2N_Red.idat, 1,2.00E+11,R01C01,2,N,2N_1,2.00E+11,R01C01,2,N,2N_Grn.idat, 2,2.00E+11,R02C01,2,E,2E_2,2.00E+11,R02C01,2,E,2E_Red.idat, 2,2.00E+11,R02C01,2,E,2E_2,2.00E+11,R02C01,2,E,2E_Grn.idat, 3,2.00E+11,R03C01,2,M,2M_3,2.00E+11,R03C01,2,M,2M_Red.idat, 3,2.00E+11,R03C01,2,M,2M_3,2.00E+11,R03C01,2,M,2M_Grn.idat
Error in logger.error(txt) :
Some IDAT files are not present in the supplied base directory, for instance 1,2.00E+11,R01C01,2,N,2N_1,2.00E+11,R01C01,2,N,2N_Red.idat, 1,2.00E+11,R01C01,2,N,2N_1,2.00E+11,R01C01,2,N,2N_Grn.idat, 2,2.00E+11,R02C01,2,E,2E_2,2.00E+11,R02C01,2,E,2E_Red.idat, 2,2.00E+11,R02C01,2,E,2E_2,2.00E+11,R02C01,2,E,
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X Yosemite 10.10.5
locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/en_NZ.UTF-8/C/en_NZ.UTF-8/en_NZ.UTF-8
attached base packages:
[1] grid stats4 parallel stats graphics
[6] grDevices utils datasets methods base
other attached packages:
[1] RnBeads.hg19_1.6.0
[2] BiocInstaller_1.24.0
[3] RnBeads_1.6.1
[4] plyr_1.8.4
[5] methylumi_2.20.0
[6] minfi_1.20.2
[7] bumphunter_1.14.0
[8] locfit_1.5-9.1
[9] iterators_1.0.8
[10] foreach_1.4.3
[11] Biostrings_2.42.1
[12] XVector_0.14.0
[13] SummarizedExperiment_1.4.0
[14] FDb.InfiniumMethylation.hg19_2.2.0
[15] org.Hs.eg.db_3.4.0
[16] TxDb.Hsapiens.UCSC.hg19.knownGene_3.2.2
[17] GenomicFeatures_1.26.2
[18] AnnotationDbi_1.36.2
[19] reshape2_1.4.2
[20] scales_0.4.1
[21] Biobase_2.34.0
[22] illuminaio_0.16.0
[23] matrixStats_0.51.0
[24] limma_3.30.10
[25] gridExtra_2.2.1
[26] gplots_3.0.1
[27] ggplot2_2.2.1
[28] fields_8.10
[29] maps_3.1.1
[30] spam_1.4-0
[31] ff_2.2-13
[32] bit_1.1-12
[33] cluster_2.0.5
[34] RColorBrewer_1.1-2
[35] MASS_7.3-45
[36] GenomicRanges_1.26.2
[37] GenomeInfoDb_1.10.3
[38] IRanges_2.8.1
[39] S4Vectors_0.12.1
[40] BiocGenerics_0.20.0
loaded via a namespace (and not attached):
[1] nlme_3.1-131 bitops_1.0-6
[3] httr_1.2.1 tools_3.3.2
[5] doRNG_1.6 nor1mix_1.2-2
[7] R6_2.2.0 KernSmooth_2.23-15
[9] DBI_0.5-1 lazyeval_0.2.0
[11] colorspace_1.3-2 base64_2.0
[13] preprocessCore_1.36.0 pkgmaker_0.22
[15] rtracklayer_1.34.1 caTools_1.17.1
[17] genefilter_1.56.0 quadprog_1.5-5
[19] stringr_1.1.0 digest_0.6.12
[21] Rsamtools_1.26.1 siggenes_1.48.0
[23] GEOquery_2.40.0 RSQLite_1.1-2
[25] mclust_5.2.2 BiocParallel_1.8.1
[27] gtools_3.5.0 RCurl_1.95-4.8
[29] magrittr_1.5 Matrix_1.2-8
[31] Rcpp_0.12.9 munsell_0.4.3
[33] stringi_1.1.2 zlibbioc_1.20.0
[35] gdata_2.17.0 lattice_0.20-34
[37] splines_3.3.2 multtest_2.30.0
[39] annotate_1.52.1 beanplot_1.2
[41] rngtools_1.2.4 codetools_0.2-15
[43] biomaRt_2.30.0 XML_3.98-1.5
[45] data.table_1.10.4 gtable_0.2.0
[47] openssl_0.9.6 reshape_0.8.6
[49] assertthat_0.1 xtable_1.8-2
[51] survival_2.40-1 tibble_1.2
[53] GenomicAlignments_1.10.0 registry_0.3
[55] memoise_1.0.0
I will really appreciate your help. Thank you in advance.