GEOparse icon indicating copy to clipboard operation
GEOparse copied to clipboard

Some samples don't have table data!

Open halioui opened this issue 7 years ago • 6 comments

I got the following error while parsing GSM2795971 SOFT file:

File "pandas/_libs/parsers.pyx", line 565, in pandas._libs.parsers.TextReader.__cinit__
pandas.errors.EmptyDataError: No columns to parse from file

halioui avatar Jan 11 '18 15:01 halioui

Hi, The file just do not have any tabular data. I will make a bug-fix to return an empty one.

guma44 avatar Jan 11 '18 15:01 guma44

So this was an issue with python 3 only. I check now if there is anything in the file.

guma44 avatar Jan 12 '18 07:01 guma44

Hello - I am encountering this issue also in Python 3 (all tables imported are empty). Are there any updates on this issue?

kmuench avatar Apr 16 '20 00:04 kmuench

Hi @kmuench, thanks for reporting. Could you give an example? I thought it was solved last time.

guma44 avatar Apr 17 '20 05:04 guma44

Sure thing, thanks for checking it out. Here is the code I'm running:

import GEOparse
# get sample info
gse = GEOparse.get_GEO(geo="GSE97168", destdir="./")
metadata = gse.phenotype_data # pandas data frame
samples = metadata.index.astype(str) 
s = samples[1]
gse.gsms[s].table.size

It does seem to identify the samples and the metadata - it's just the data stored that seems to be an issue.

kmuench avatar Apr 19 '20 23:04 kmuench

What data are you expecting to see here? I don't see any here: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM2553018

CholoTook avatar May 17 '21 14:05 CholoTook