Description
Hi, I am trying out ethoscopy to analyse my ethoscope data on my windows 11 Pro.
When I load my metadata.csv file (which I have been able to use with the Rethomics analysis software in R), it says that it is not readable.
I am using docker desktop for windows.
See the code below:
etho.__version__
'1.2.9'
import ethoscopy as etho import pandas as pd
meta_loc = '/c/Users/franc/Desktop/Ethoscope_results/ethoscope_data/ethoscope_data 2/metadata.csv'
remote = '/c/Users/franc/Desktop/Ethoscope_results/ethoscope_data/ethoscope_data 2/results/00190f0080e54d9c906f304a8222fa8c/ETHOSCOPE_001/2022-08-23_03-33-59/'
the data is saved on my computer after being downloaded from the node
local = '/c/Users/franc/Desktop/Ethoscope_results/ethoscope_data/ethoscope_data 2/results/00190f0080e54d9c906f304a8222fa8c/ETHOSCOPE_001/2022-08-23_03-33-59/'
meta = etho.link_meta_index(meta_loc, remote, local)
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[49], line 1
----> 1 meta = etho.link_meta_index(meta_loc, remote, local)
File /usr/local/lib/python3.10/dist-packages/ethoscopy/load.py:239, in link_meta_index(metadata, remote_dir, local_dir)
237 print("An error occurred: ", e)
238 else:
--> 239 raise FileNotFoundError("The metadata is not readable")
241 if len(meta_df[meta_df.isna().any(axis=1)]) >= 1:
242 print(meta_df[meta_df.isna().any(axis=1)])
FileNotFoundError: The metadata is not readable
This is the format of my metadata.csv file:
<style> </style>machine_name | date | region_id | condition |
---|---|---|---|
ETHOSCOPE_001 | 2022-08-23 | 1 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 2 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 3 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 4 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 5 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 6 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 7 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 8 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 9 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 10 | HPD |
ETHOSCOPE_001 | 2022-08-23 | 11 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 12 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 13 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 14 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 15 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 16 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 17 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 18 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 19 | HSD |
ETHOSCOPE_001 | 2022-08-23 | 20 | HSD |
It is saved as a UTF-8(Comma delimited) (*.csv). Thank you