Skip to main content

Convert various patch-clamp data formats to NWBv2

Project description

Actions Status PyPI - Downloads PyPI - Python Version

Converting ABF/DAT files to NWB

The script x-to-nwb allows to convert ABF/DAT files to NeurodataWithoutBorders v2 files.

For programmatic use the function convert is designed as public interface.

from x_to_nwb import convert
help(convert)

ABF specialities

As of 9/2018 PClamp/Clampex does not record all required amplifier settings. For gathering these please see the mcc_get_settings.py script in the ipfx repository which gathers all amplifier settings from all active amplifiers and writes them to a file in JSON output.

In case you don't have a JSON settings file pass --no-searchSettingsFile to avoid warnings.

By default all AD and DA channels are outputted into the NWB file. You can select to only export some AD channels with

x-to-nwb --includeChannel ABCD 2018_03_20_0000.abf

Or to discard some AD channels use

x-to-nwb --discardChannel ABCD 2018_03_20_0000.abf

Required input files

  • ABF files acquired with Clampex/pCLAMP.
  • If custom waveforms are used for the stimulus protocol, the source ATF files are required as well.

Examples

Convert a single file
x-to-nwb 2018_03_20_0000.abf
Convert a single file with overwrite and use a directory for finding custom waveforms

Some acquired data might use custom wave forms for defining the stimulus protocols. These custom waveforms are stored in external files and don't reside in the ABF files. We therefore allow the user to pass a directory where these files should be searched. Currently only custom waveforms in ATF (Axon Text format) are supported.

x-to-nwb --overwrite --protocolDir protocols 2018_03_20_0000.abf
Convert a folder with ABF files

The following command converts all ABF files which reside in someFolder to a single NWB file.

x-to-nwb --fileType ".abf" --overwrite someFolder

Disabling compression

The following command disables compression of the HDF5 datasets (intended for debugging purposes).

x-to-nwb --no-compression 2018_03_20_0000.abf

DAT specialities

Required input files

DAT files acquired with Patchmaster version 2x90.

Examples

Convert a single file creating one NWB file per Group
x-to-nwb H18.28.015.11.12.dat
Convert a single file creating one NWB file with all Groups
x-to-nwb --multipleGroupsPerFile H18.28.015.11.12.dat

Outputting DAT/ABF metadata files for debugging purposes

x-to-nwb --outputMetadata *.dat *.abf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x-to-nwb-0.2.2.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x_to_nwb-0.2.2-py2.py3-none-any.whl (40.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file x-to-nwb-0.2.2.tar.gz.

File metadata

  • Download URL: x-to-nwb-0.2.2.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for x-to-nwb-0.2.2.tar.gz
Algorithm Hash digest
SHA256 41c974c49747ee66b3d215d8a63774076a2627d1d12f285e98ab5640e3c2c444
MD5 16287863d1b396d3cc1bd6bad96fd575
BLAKE2b-256 12958333adf11bf62b25318bc01f7cdb1508127303e0f44b93230f4b1abf2dcf

See more details on using hashes here.

File details

Details for the file x_to_nwb-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: x_to_nwb-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 40.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for x_to_nwb-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bd44efe8f3dffe98ba42e752257b4953991923916513a2eec2842d251a848f3f
MD5 6945750f26f8684e69a9e7a2860f34a4
BLAKE2b-256 ca73a52eabf37b7afe4756fad80d70ee38ddd4b6acb143de092b3d250fb32dea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page