|
@@ -11,6 +11,7 @@ from scipy import stats
|
|
|
from importlib import reload
|
|
|
import pickle
|
|
|
import spatint_utils
|
|
|
+import os
|
|
|
|
|
|
# reload modules
|
|
|
reload(spatint_utils)
|
|
@@ -26,17 +27,20 @@ class Fig4:
|
|
|
def __init__(self):
|
|
|
"""Init class"""
|
|
|
|
|
|
+ parentdir = os. path. dirname(os. getcwd())
|
|
|
+ filename = parentdir + '/data/params_mouse.yaml'
|
|
|
+
|
|
|
# read trn size tuning dataframe
|
|
|
self.trn_sztun_df = pandas.read_pickle(
|
|
|
- filepath_or_buffer='./to_publish/data/trn_sztun_df.pkl')
|
|
|
+ filepath_or_buffer= parentdir + '/data/trn_sztun_df.pkl')
|
|
|
|
|
|
# read dict for trn_sztun_ex
|
|
|
- with open('./to_publish/data/trn_sztun_ex_dict.pkl', 'rb') as f:
|
|
|
+ with open(parentdir + '/data/trn_sztun_ex_dict.pkl', 'rb') as f:
|
|
|
self.trn_sztun_ex_dict = pickle.load(f)
|
|
|
|
|
|
# read trn retinotopy dataframe
|
|
|
self.trn_retino_df = pandas.read_pickle(
|
|
|
- filepath_or_buffer='./to_publish/data/trn_retino_df.pkl')
|
|
|
+ filepath_or_buffer=parentdir + '/data/trn_retino_df.pkl')
|
|
|
|
|
|
# get data for trn retinotopy example series
|
|
|
self.trn_retino_ex = self.trn_retino_df[(self.trn_retino_df.m == 'BL6_2018_0003') &
|
|
@@ -44,11 +48,11 @@ class Fig4:
|
|
|
|
|
|
# read trn/lgn rf area dataframe
|
|
|
self.rf_area_df = pandas.read_pickle(
|
|
|
- filepath_or_buffer='./to_publish/data/rf_area_df.pkl')
|
|
|
+ filepath_or_buffer=parentdir + '/data/rf_area_df.pkl')
|
|
|
|
|
|
# read lgn size tuning dataframe
|
|
|
self.lgn_sztun_df = pandas.read_pickle(
|
|
|
- filepath_or_buffer='./to_publish/data/lgn_sztun_df.pkl')
|
|
|
+ filepath_or_buffer=parentdir + '/data/lgn_sztun_df.pkl')
|
|
|
|
|
|
def exrfs(self):
|
|
|
"""Plot example receptive fields (Fig. 4d,h)
|