I’m trying to calculate the ephys features of some cells from the Allen Cell Types Database as it’s done in this paper by Gouwens, Sorensen, Berg et al, 2019 : “Classification of electrophysiological and morphological neuron types in the mouse visual cortex”.
To do so I’m first using the IPFX module in order to extract the feature vectors, but I’m encountering some problems. Here are my steps :
1/I took the cell ids from the Supplementary dataset 3 of the paper and split them into an inhibitory csv and an excitatory csv (one id per line). Since some ids in this dataset are not present in the Allen Cell Types Database, my inhibitory csv has 972 cells (instead of 1010) and my excitatory csv has 885 cells (instead of 923).
2/Then I tried to run the run_feature_vector_extraction.py script by only changing in the CollectFeatureVectorParameters class the default argument the output_dir by the destination of my future output file, and the default argument of the input by my inhibitory (or excitatory) csv file.
3/While the script is running it downloaded all the ephys.nwb and ephys_sweeps.json files of each cell id. But then I get this error :
Traceback (most recent call last):
File “E:/MARGAUX/…/ipfx_test_2.py”, line 339, in
if name == “main”: main()
File “E:/MARGAUX/…/ipfx_test_2.py”, line 334, in main
File “E:/MARGAUX/…/ipfx_test_2.py”, line 311, in run_feature_vector_extraction
used_ids, results, error_set = su.filter_results(specimen_ids, results)
TypeError: cannot unpack non-iterable NoneType object
Can someone explain me what I do wrong ?