Convertor for NWB(Neural Data without Border) Files to Compatible Tiff Files to be used with various tools like Caiman or DeepLabCut.
This project provides a command line tool for processing Neurodata Without Borders (NWB) files. It includes functionalities to load NWB files, convert them to various formats, and utilize tools for further analysis.
The tool leverages the pynapple
library to load NWB files. This allows seamless integration with NWB files and provides a foundation for subsequent operations.
The project supports the conversion of NumPy arrays to TIFF format. This functionality is useful for transforming numerical data into an image format for visualization or analysis.
The tool integrates with tiffit
to convert TIFF files into a workable format. This step ensures that the TIFF files are processed and formatted in a way that is conducive to further analysis.
- Clone the repository:
git clone https://github.com/NileshArnaiya/NWB-TiFF-CONVERTOR.git
pip install -r requirements.txt
python main.py --input_file your_nwb_file.nwb output_file_name.tiff
or
python main.py --dandiset_id 000582 --file_path sub-10073_ses-17010302_behavior+ecephys.nwb --output_path output_file.tiff
License
This project is licensed under the Creative Commons License - see the LICENSE.md file for details
To use the command line tool, follow the steps below:
- Run the command line tool with the appropriate input parameters.
- Load the NWB file using
pynapple
or you can load DANDI datasets. - Convert NumPy arrays to TIFF files.
- Utilize
tiffit
to process TIFF files for analysis. - Choose the option to convert NWB files to DLC or point to additional tools in the NWB ecosystem.
- Python (version 3.8 and above)
- Additional dependencies in
requirements.txt