AnnotatedDataFrame is not a defined class
1
0
Entering edit mode
@noncodinggene-7018
Last seen 5.7 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!

annotatedDataFrame R Biobase • 4.3k views
ADD COMMENT
2
Entering edit mode
@martin-morgan-1513
Last seen 6 weeks ago
United States

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

ADD COMMENT
0
Entering edit mode

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

Sorry.

Thanks!

ADD REPLY

Login before adding your answer.

Traffic: 883 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6