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

Parse isnt working when trying to read in cs_sig.gtcx from query results #85

Open
JManickam13 opened this issue Dec 7, 2023 · 0 comments

Comments

@JManickam13
Copy link

I am trying to parse a gctx project using the cmapPy functions but I keep getting the following error:

`---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
in <cell line: 4>()
2
3 # Parse the GCT file
----> 4 gct_data = parse(gct_file_path, convert_neg_666=True)

2 frames
/usr/local/lib/python3.10/dist-packages/cmapPy/pandasGEXpress/parse_gctx.py in parse_metadata_df(dim, meta_group, convert_neg_666)
258 # convert all values to str in temp_array so that
259 # to_numeric works consistently with gct and gct_x parser
--> 260 temp_array = temp_array.astype('str')
261 header_values[str(k)] = temp_array
262 array_index = array_index + 1

UnicodeDecodeError: 'ascii' codec can't decode byte 0xb5 in position 3: ordinal not in range(128)`
I am running this on Google Colab. The parser is running into an issue with decoding and I am wondering if this is because Google Colab runs on python 3 and not python 2.7.11. However, other functions such as the API client, which is also part of cmapPy worked well so it seemed like compatibility wasn't the issue. If someone could take a look at this soon I would appreciate it.

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

No branches or pull requests

1 participant