Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

nwbAnimalParams.py 1.3 KB

1234567891011121314151617181920212223242526272829
  1. '''
  2. NWB parameters for an animal
  3. Parameters that are likely to change:
  4. animalID
  5. dob
  6. firstProcedureDate
  7. sex
  8. weight
  9. description
  10. '''
  11. import datetime
  12. import os
  13. animalID = 'M190114_A_MD'
  14. dob = '20181104'
  15. dob = datetime.datetime(int(dob[0:4]), int(dob[4:6]), int(dob[6:8])) # Convert to datetime format
  16. firstProcedureDate = '20190114'
  17. firstProcedureDate = datetime.datetime(int(firstProcedureDate[0:4]), int(firstProcedureDate[4:6]), int(firstProcedureDate[6:8]))
  18. ageInDays = (firstProcedureDate - dob).days
  19. age = 'P' + str(ageInDays) + 'D' # Convert to ISO8601 format: https://en.wikipedia.org/wiki/ISO_8601#Durations
  20. strain = 'C57BL/6J'
  21. sex = 'M'
  22. species = 'Mus musculus'
  23. weight = 24.2
  24. description = '002' # Animal testing order.
  25. animalRawDataFolder = os.path.join(rawDataFolder, animalID) # Raw and certain derived data for the animal. Probe map and unit waveforms files are stored here.
  26. animalDerivedDataFile = os.path.join(derivedDataFolder, animalID, animalID + '.mat') # Spiking, behavioural, and certain analysis data produced after running analyses routines on the Neuroscience Gateway Portal are stored here in a single mat file.
  27. animalDerivedDataFolderNWB = os.path.join(derivedDataFolderNWB, animalID) # The output folder: The location where derived data after converting to the NWB format is stored.