text: user4332: I want to open the expression data GSE9838 dataset from GEO using GEOquery R package.
  gset <- getGEO(filename="GSE9838_family.soft.gz")
  
  The result of this code said it's S4 object of class GSE.
  How can I get the expression data of GSE9838?
  
  user4306: Well, if you use a SOFT formatted files:
  #You can read your file 
  gds <- getGEO(filename="GSE9838_family.soft.gz")
  
  # and check it
  class(gds)
  show(gds)
  
  #then you usually would try to use  an exprs() accessor to retrieve the expression matrix:
  exprs (gds[[1]])
  
  # but in this case you will get an error revealing that it is a GSE datastructure
  # eg. is composite structure having GSM and GPL object lists: 
  names(GSMList(gds))
  names(GPLList(gds))
  
  # now GPLList is probably not interesting in this case
  # but you can look at the GSM-objects from GSMList:
  first <- GSMList(gds)[[1]]
  first
  class(first)
  Meta(first)
  
  # at this point if you read the results you´ll notice that 
  #    title 
  #    [1] "X_intercept"
  
  # and 
  #   An object of class "GEODataTable"
  #   ****** Column Descriptions ******
  #   [1] Column      Description
  #   <0 rows> (or 0-length row.names)
  #   ****** Data Table ******
  #   data frame with 0 columns and 0 rows
  
  So here you would probably wonder if the data you want is these objects. If you go back go GEO page for GSE9838, you can find that "Raw data provided as supplementary file. Processed data is available on Series record". So one may want to check series record instead:
  # you can query the GSE9838 like this: 
  data = getGEO("GSE9838")    
  
  # then you can check what you´ve got
  names(data)
  #[1] "GSE9838_series_matrix.txt.gz"
  class(data$GSE9838_series_matrix.txt.gz)
  
  # and check what´s inside:
  exprs(data$GSE9838_series_matrix.txt.gz)
  # but apparently it just shows one header row. 
  
  So it wasn´t there either. And if you check the size of the file, you´ll find that it is just 4.8 kb. My educated guess would be that the expression values are not in the dataset itself but probably in some of the supplementary files?
  If you want to download them, you can:
  filePaths = getGEOSuppFiles("GSE9838")
  filePaths
  untar("GSE9838/GSE9838_RAW.tar", exdir = "GSE9838/CEL")
  list.files("GSE9838/CEL")
  
  ...what will allow you to see all the CEL files with the data. 
  
original_text: 4332: <p>I want to open the expression data GSE9838 dataset from GEO using GEOquery R package.</p>
  
  <pre><code>gset &lt;- getGEO(filename="GSE9838_family.soft.gz")
  </code></pre>
  
  <p>The result of this code said it's S4 object of class GSE.</p>
  
  <p>How can I get the expression data of GSE9838?</p>
   4306: <p>Well, if you use a SOFT formatted files:</p>
  
  <pre><code>#You can read your file 
  gds &lt;- getGEO(filename="GSE9838_family.soft.gz")
  
  # and check it
  class(gds)
  show(gds)
  
  #then you usually would try to use  an exprs() accessor to retrieve the expression matrix:
  exprs (gds[[1]])
  
  # but in this case you will get an error revealing that it is a GSE datastructure
  # eg. is composite structure having GSM and GPL object lists: 
  names(GSMList(gds))
  names(GPLList(gds))
  
  # now GPLList is probably not interesting in this case
  # but you can look at the GSM-objects from GSMList:
  first &lt;- GSMList(gds)[[1]]
  first
  class(first)
  Meta(first)
  
  # at this point if you read the results you´ll notice that 
  #    title 
  #    [1] "X_intercept"
  
  # and 
  #   An object of class "GEODataTable"
  #   ****** Column Descriptions ******
  #   [1] Column      Description
  #   &lt;0 rows&gt; (or 0-length row.names)
  #   ****** Data Table ******
  #   data frame with 0 columns and 0 rows
  </code></pre>
  
  <p>So here you would probably wonder if the data you want is these objects. If you go back go GEO page for GSE9838, you can find that <em>"Raw data provided as supplementary file. Processed data is available on Series record"</em>. So one may want to check series record instead:</p>
  
  <pre><code># you can query the GSE9838 like this: 
  data = getGEO("GSE9838")    
  
  # then you can check what you´ve got
  names(data)
  #[1] "GSE9838_series_matrix.txt.gz"
  class(data$GSE9838_series_matrix.txt.gz)
  
  # and check what´s inside:
  exprs(data$GSE9838_series_matrix.txt.gz)
  # but apparently it just shows one header row. 
  </code></pre>
  
  <p>So it wasn´t there either. And if you check the size of the file, you´ll find that it is just 4.8 kb. My educated guess would be that the expression values are not in the dataset itself but probably in some of the supplementary files?</p>
  
  <p>If you want to download them, you can:</p>
  
  <pre><code>filePaths = getGEOSuppFiles("GSE9838")
  filePaths
  untar("GSE9838/GSE9838_RAW.tar", exdir = "GSE9838/CEL")
  list.files("GSE9838/CEL")
  </code></pre>
  
  <p>...what will allow you to see all the CEL files with the data. </p>
  