Closed blue-moon22 closed 8 years ago
Spoke too soon! Just used getAnnotationParams() and selected the same options from the list:
d <- setAnnotationParams() getGOFromFeatures(featureNames(dunkley2006), params = d)
I think the issue is that the annotation params don't match the feature names:
> q <- setAnnotationParams(inputs = c("Arabidopsis thaliana", "TAIR locus model"))
Using species Arabidopsis thaliana genes (TAIR10 (2010-09-TAIR10))
Using feature type TAIR locus model ID(s)
Connecting to Biomart...
> getGOFromFeatures(featureNames(dunkley2006), params = q)
[1] tair_locus_model go_accession go_namespace_1003 go_name_1006
[5] go_linkage_type
<0 rows> (or 0-length row.names)
Replacing TAIR locus model
by TAIR locus ID
(number 8 when you create the annotation parameters interactively) yields:
> q2 <- setAnnotationParams(inputs = c("Arabidopsis thaliana", "TAIR locus ID"))
Using species Arabidopsis thaliana genes (TAIR10 (2010-09-TAIR10))
Using feature type TAIR locus ID(s)
Connecting to Biomart...
> head(getGOFromFeatures(featureNames(dunkley2006), params = q2))
tair_locus go_accession go_namespace_1003 go_name_1006
2 AT1G15210 GO:0005886 cellular_component plasma membrane
4 AT1G15210 GO:0009507 cellular_component chloroplast
5 AT1G15210 GO:0016020 cellular_component membrane
6 AT1G15210 GO:0016020 cellular_component membrane
7 AT1G15210 GO:0016021 cellular_component integral component of membrane
9 AT1G69460 GO:0005783 cellular_component endoplasmic reticulum
go_linkage_type
2 IDA
4 IDA
5 IEA
6 IDA
7 IEA
9 IDA
No errors, but empty data frame. Am I missing something?