migrate wiki for release 1.0 authored by Calvin Eiber's avatar Calvin Eiber
# Files
ViNERS generates intermediate and final output data-files, which are organised in a SPARC dataset structure. ViNERS uses [tools.file](../Tools/file.m) to manage subject-, sample-, and run-specific file-paths transparently.
## Data file types
All model outputs are saved as [MATLAB v7 .mat datafiles](https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html). The internals of these files will vary depending on the particular model stage in question:
- [models.axon_population](Models/axon_population.m): `sub~/axons/`[axons (name).mat](Data/axons.mat)
- [models.nerve_anatomy](Models/nerve_anatomy.m): `sub~/eidors/`[sensitivity (name).mat](Data/eidors_sensitivity.mat) and `sub~/eidors/`[stimulus (name).mat](Data/eidors_stimulus.mat)
- [models.membrane_currents](Models/membrane_currents.m): `sub~/axons/[name]/[type]/`[index.mat](Data/membrane_currents.mat)
- [models.axon_sfap](Models/axon_sfap.m): `sub~/sfap/`[sensitivity (name).mat](Data/axon_sfap.mat)
- [models.axon_thresholds](Models/axon_thresholds.m): `sub~/thresholds/[name]/`[type-fascicle0.mat](Data/axon_thresholds.mat)
- [models.nerve_stimulation](Models/nerve_stimulation.m):
`sub~/stim/[name]/`[type-fascicle0.mat](Data/nerve_stimulation.mat)
- [models.nerve_recording](Models/nerve_recording.m):
`sub~/waves/[activity (name)]/`[epoch_(...).mat](Data/nerve_recording.mat)
- [models.ECAP_recording](Models/ecap_recording.m):
`sub~/waves/stimulus (name)/`[stim_(...).mat](Data/ecap_recording.mat)
See [+models](Models/Overview) for more about the individual model steps.
## Organisation
![files+notes](uploads/25e3a29bf9a75416766ec5a0777c5cbe/files+notes.png)
Shows an example data organisation and the code which generates each data file or folder