sam wolfe
sam wolfe

Reputation: 111

Trouble reading .mat files in Python

Whenever I try to read a .mat file in Python, I get the following error message

ValueError: Unknown mat file type, version 9, 99

The particular dataset I want to open is here, named "GSE137764_HCT_GaussiansGSE137764_mooth_scaled_autosome.mat".

I have tried to follow the multiple solutions available here, but I keep getting the same error. In particular, I do not use MATLAB, so I can't really do save('myfile.mat','-v7'), for example. Any ideas?

Upvotes: 0

Views: 106

Answers (1)

Daraan
Daraan

Reputation: 3780

It is a "normal" csv file, just not named like one.

pd.read_csv("GSE137764_HCT_GaussiansGSE137764_mooth_scaled_autosome.mat", delimiter="\t", low_memory=False)

Upvotes: 1

Related Questions