nwbParams.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. '''
  2. NWB parameters common across all animals and recording sessions
  3. Parameters that may change:
  4. dataset
  5. '''
  6. import pathlib
  7. import os
  8. import re
  9. global rawDataFolder, derivedDataFolder, derivedDataFolderNWB
  10. projectName = 'Brainwide Infraslow Activity Dynamics'
  11. experimenter = 'Martynas Dervinis'
  12. institution = 'University of Leicester'
  13. publications = []
  14. lab = 'Michael Okun lab'
  15. dataset = 'neuronexus'
  16. videoFrameRate = 25.0 # Hz
  17. # Find the repository root folder
  18. rootFolderName = 'convert2nwbPyNnx'
  19. rootFolderCandidate = pathlib.Path(__file__).parent.resolve()
  20. endInd = re.search(rootFolderName, str(rootFolderCandidate)).end()
  21. rootFolder = str(rootFolderCandidate)[:endInd]
  22. # Assign data folders
  23. if 'neuronexus' in dataset:
  24. rawDataFolder = os.path.join(rootFolder, 'nnx_raw_derived_data'); # Raw and certain derived Neuronexus data for all animals
  25. derivedDataFolder = os.path.join(rootFolder, 'nnx_derived_data'); # Neuroscience Gateway analysis scripts, functions, and downloaded processed Neuronexus data for all animals
  26. derivedDataFolderNWB = os.path.join(rootFolder, 'nnx_derived_data_nwb'); # Derived Neuronexus data for all animals placed in NWB format
  27. elif 'neuropixels' in dataset:
  28. rawDataFolder = os.path.join(rootFolder, 'npx_raw_derived_data'); # Raw and certain derived Neuropixels data for all animals
  29. derivedDataFolder = os.path.join(rootFolder, 'npx_derived_data'); # Neuroscience Gateway analysis scripts, functions, and downloaded processed Neuropixels data for all animals
  30. derivedDataFolderNWB = os.path.join(rootFolder, 'npx_derived_data_nwb'); # Derived Neuropixels data for all animals placed in NWB format