Ejemplo n.º 1
0
def allExpIDsByCat():
    '''
    Returns a dictionary with all neuron categories as keys and lists of corresponding Experiment Ids as values
    :return: dict
    '''

    return getExpIDsByCategory(excel, excelSheet, categories, spike2Path)
Ejemplo n.º 2
0
categories = [
    # 'DL-Int-1',
    # 'DL-Int-2',
    # 'JO neuron',
    # 'MB neurons',
    'BilateralN',
    # 'DescendingN',
    # 'AscendingN',
    # 'Bilateral Descending N',
    # 'JO terminal local neuron'
]

mdDF = parseMetaDataFile(excel, excelSheet, spike2Path)
expNames = map(str, mdDF.index)

expIDsByCat = getExpIDsByCategory(excel, excelSheet, categories, spike2Path)
# **********************************************************************************************************************
# # NIXPath = os.path.join(homeFolder, 'DataAndResults/GJEphys/NIXFiles/')
# # # expIDsByCat = {'DL-Int-1': ['130313-4Rh']}
# # expIDsByCat = {"BilateralN": ["130529-2Al",
# #             "131113-1Al"]}
# expIDsByCat = {'DL-Int-1': ['130605-1LY']}
# **********************************************************************************************************************
# NIXPath = os.path.join(homeFolder, 'DataAndResults/GJEphys/NIXFiles/')
# expIDsByCat = {
#                 'AscendingN':               ['130205-1LY'],
#                 'Bilateral Descending N':   ['130313-3LY'],
#                 'BilateralN':               ['130514-1LY'],
#                 'DL-Int-1':                 ['140424-1LY'],
#                 'DL-Int-2':                 ['130205-2LY'],
#                 'DescendingN':              ['130320-1Rh'],
Ejemplo n.º 3
0
    nixPath = os.path.join(homeFolder, 'DataAndResults/GJEphys/NIXFiles')
    toIgnoreFile = os.path.join(
        homeFolder, 'DataAndResults/GJEphys/NIXFiles/toIgnore.json')
    excel = os.path.join(
        homeFolder,
        'DataAndResults/GJEphys/spike2Files/neuron_database_20150720ha_ver6_modAK.xlsx'
    )
    excelSheet = 'Kai-san final report150803'
    resDir = os.path.join(homeFolder, 'DataAndResults/GJEphys/Results/')

    filterExpIDs = os.path.join(
        homeFolder, 'DataAndResults/GJEphys/expIDFilters/Ai2017_DL-Int-1.xlsx')

    filterExpIDsDF = pd.read_excel(filterExpIDs)

    expIDsByCat = getExpIDsByCategory(excel, excelSheet, ["DL-Int-1"],
                                      spike2Path)

    expNames = filterExpIDsDF.loc[:, mdFN["expID"]]

    filterStub = os.path.split(filterExpIDs)[1][:-5]
    filterOutDir = os.path.join(resDir, filterStub)
    if not os.path.isdir(filterOutDir):
        os.mkdir(filterOutDir)
    outFile = os.path.join(filterOutDir, "spontAct3Sec.xlsx")
    outPDFFile = os.path.join(filterOutDir, "spontAct3SecVsPrevFreqs.pdf")

    if sys.argv[1] == "saveXL":

        saveSpontActivityRates(outFile=outFile,
                               toIgnoreFile=toIgnoreFile,
                               nixPath=nixPath,