Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some samples don't have table data! #36

Open
halioui opened this issue Jan 11, 2018 · 6 comments
Open

Some samples don't have table data! #36

halioui opened this issue Jan 11, 2018 · 6 comments
Labels

Comments

@halioui
Copy link

halioui commented Jan 11, 2018

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
@guma44
Copy link
Owner

guma44 commented Jan 11, 2018

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

@guma44 guma44 added the bug label Jan 11, 2018
@halioui halioui changed the title Some sample dont have any table columns Some samples don't have table data! Jan 11, 2018
guma44 pushed a commit that referenced this issue Jan 12, 2018
@guma44 guma44 closed this as completed in c85aa90 Jan 12, 2018
@guma44
Copy link
Owner

guma44 commented Jan 12, 2018

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

@kmuench
Copy link

kmuench commented Apr 16, 2020

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

@guma44
Copy link
Owner

guma44 commented Apr 17, 2020

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

@guma44 guma44 reopened this Apr 17, 2020
@kmuench
Copy link

kmuench commented Apr 19, 2020

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.

@CholoTook
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants