Search
Question: AnnotatedDataFrame is not a defined class
0
gravatar for nonCodingGene
3.9 years ago by
nonCodingGene10 wrote:

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!

ADD COMMENTlink modified 3 months ago • written 3.9 years ago by nonCodingGene10
2
gravatar for Martin Morgan
3.9 years ago by
Martin Morgan ♦♦ 22k
United States
Martin Morgan ♦♦ 22k wrote:

Is this a simple typo -- AnnotatedDataFrame rather than ...DAtaFrame ?

ADD COMMENTlink written 3.9 years ago by Martin Morgan ♦♦ 22k

Thanks, that was the solution. I din't see that.

Sorry.

Thanks!

ADD REPLYlink written 3.9 years ago by nonCodingGene10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 353 users visited in the last hour