Edit (1st September 2018): see a quick distinction of the GEO files, here: A: Parsing values from GSE file
----------------------------
With your first chunk of code, you are obtaining the 'series matrix' data, which, in the vast majority of cases, is already normalized and transformed by log (base 2). Your object data is stored in an ExpressionSet object, which is the standard way to store microarray data:
data <- getGEO('GSE2034', GSEMatrix=TRUE)
data
$GSE2034_series_matrix.txt.gz
ExpressionSet (storageMode: lockedEnvironment)
assayData: 22283 features, 286 samples
element names: exprs
protocolData: none
phenoData
sampleNames: GSM36777 GSM36778 ... GSM37062 (286 total)
varLabels: title geo_accession ... bone relapses (1=yes, 0=no):ch1
(28 total)
varMetadata: labelDescription
featureData
featureNames: 1007_s_at 1053_at ... AFFX-TrpnX-M_at (22283 total)
fvarLabels: ID GB_ACC ... Gene Ontology Molecular Function (16 total)
fvarMetadata: Column Description labelDescription
experimentData: use 'experimentData(object)'
Annotation: GPL96
You can proceed to downstream analyses with this data, accessed via exprs[data[[1]]]
------------------------------------------------
Note that, on the home page for GSE2034 (HERE), there's a big blue button at the bottom labelled ANALYZE WITH GEO2R
Click on that and then go to the R script tab. There, you'll find a ready-made way to read in what is [usually] the normalized data.
Kevin
Thank you for your response! I am sorry I made a mistake here. library(GEOquery) will download 'series matrix' data. I met the problem when I try to directly read in downloaded series matrix data:
And got the error. I am just looking for a way to use local files instead of downloading everytime. data <- getGEO('GSE2034') will download the data again right?
What is the error? Yes, you can just download the series matrix file and then load it with:
Then, access the normalised expression values with:
...or:
--------------------------------
If you run
getGEO('GSE2034', GSEMatrix=TRUE)
twice in the same session, then it will use the data that was already downloaded:Now i downloaded the data fresh and i see
i manage to fix it .Now its working