Entering edit mode
nonCodingGene
▴
10
@noncodinggene-7018
Last seen 6.4 years ago
Hi!
I'm doing a draft script just before I use it with the real data.
I'm creating an Expressionset, everything goes ok until I get the an error, which I have not been able to solve. I have not seen a solution for this on the internet.
Error en getClass(Class, where = topenv(parent.frame())) : “AnnotatedDAtaFrame” is not a defined class
This is the draft script:
library(Biobase) matriz <- matrix(data = c(seq(16)), nrow = 4, ncol = 4, byrow = FALSE) rownames(matriz) <- c("Gen 1", "Gen 2", "Gen 3", "Gen 4") setwd("/home/Escritorio") list.files() samples <- read.csv(file = "samples.txt", header = TRUE, sep = "\t", check.names = FALSE) samples <- as.data.frame(samples) varInfo <- read.table(file = "meta.txt", header = TRUE, colClasses = "character", check.names = FALSE) pd <- new("AnnotatedDAtaFrame", data = samples, varMetadata = varInfo)
This is the sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=es_ES.UTF-8 LC_NUMERIC=C LC_TIME=es_ES.UTF-8 [4] LC_COLLATE=es_ES.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=es_ES.UTF-8 [7] LC_PAPER=es_ES.UTF-8 LC_NAME=C LC_ADDRESS=C [10] LC_TELEPHONE=C LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] parallel stats graphics grDevices utils datasets methods base other attached packages: [1] Biobase_2.22.0 BiocGenerics_0.8.0 loaded via a namespace (and not attached): [1] tools_3.0.2
I have update Biobase packages.
Thanks!
Thanks, that was the solution. I din't see that.
Sorry.
Thanks!