sys.path.append(settings.ALLCELLS_PATH)
allcells = importlib.import_module(allcellsFileName)

numOfCells = len(
    allcells.cellDB
)  #number of cells that were clustered on all sessions clustered

outputDir = '/home/languo/data/ephys/' + subject + '/'

binWidth = 0.020  # Size of each bin in histogram in seconds

clusNum = 12  #Number of clusters that Klustakwik speparated into
numTetrodes = 8  #Number of tetrodes

CellInfo = celldatabase.CellInfo  #This is for creating subdatabase for responsive and modulated cells
responsiveCellDB = celldatabase.CellDatabase()
nonModulatedCellDB = celldatabase.CellDatabase()

################################################################################################
##############################-----Minimum Requirements------###################################
################################################################################################
#qualityList = [1,6]#[1,4,5,6,7]#range(1,10)
minZVal = 3.0
#maxISIviolation = 0.02
minPValue = 0.05
################################################################################################
################################################################################################

subject = allcells.cellDB[0].animalName
behavSession = ''
processedDir = os.path.join(outputDir, subject + '_stats')
'''
List of all isolated units from one animal
'''

from jaratoolbox import celldatabase
eSession = celldatabase.EphysSessionInfo  # Shorter name to simplify code

cellDB = celldatabase.CellDatabase()
'''
oneES = eSession(animalName='adap015',
                 ephysSession = '2016-03-16_10-04-37',
                 clustersEachTetrode = {1:range(1,13),2:range(1,13),3:range(1,13),4:range(1,13),5:range(1,13),6:range(1,13),7:range(1,13),8:range(1,13)},
                 behavSession = '20160316a')
cellDB.append_session(oneES)

oneES = eSession(animalName='adap015', #CRASHES BECAUSE SKIPPED TRIAL IS LAST TRIAL
                 ephysSession = '2016-03-03_14-27-14',
                 clustersEachTetrode = {1:range(1,13),2:range(1,13),3:range(1,13),4:range(1,13),5:range(1,13),6:range(1,13),7:range(1,13),8:range(1,13)},
                 behavSession = '20160303a')
cellDB.append_session(oneES)

oneES = eSession(animalName='adap015',
                 ephysSession = '2016-02-23_14-12-34',
                 clustersEachTetrode = {1:range(1,13),2:range(1,13),3:range(1,13),4:range(1,13),5:range(1,13),6:range(1,13),7:range(1,13),8:range(1,13)},
                 behavSession = '20160223a')
cellDB.append_session(oneES)

oneES = eSession(animalName='adap015',
                 ephysSession = '2016-02-18_14-53-11',
                 clustersEachTetrode = {1:range(1,13),2:range(1,13),3:range(1,13),4:range(1,13),5:range(1,13),6:range(1,13),7:range(1,13),8:range(1,13)},
                 behavSession = '20160218a')
Ejemplo n.º 3
0
sys.path.append(settings.ALLCELLS_PATH)
allcells = importlib.import_module(allcellsFileName)

numOfCells = len(
    allcells.cellDB
)  #number of cells that were clustered on all sessions clustered

outputDir = '/home/languo/data/ephys/' + subject + '/'

binWidth = 0.020  # Size of each bin in histogram in seconds

clusNum = 12  #Number of clusters that Klustakwik speparated into
numTetrodes = 8  #Number of tetrodes

CellInfo = celldatabase.CellInfo  #This is for creating subdatabase for responsive and modulated cells
allCellDB = celldatabase.CellDatabase()
modulatedCellDB = celldatabase.CellDatabase()

################################################################################################
##############################-----Minimum Requirements------###################################
################################################################################################
qualityList = [1, 6]  #[1,4,5,6,7]#range(1,10)
minZVal = 3.0
#maxISIviolation = 0.02
minPValue = 0.05
################################################################################################
################################################################################################

subject = allcells.cellDB[0].animalName
behavSession = ''
processedDir = os.path.join(outputDir, subject + '_stats')