Skip to main content

A python module for dealing with unstructured or semi-structured neuroimaging datasets which do not conform to the BIDS data structure

Reason this release was yanked:

Nisupply now uses official versioning. Version 2023.3.10 refers to the date this version was uploaded which was a bad idea, because pip now thinks this is the newest version (right now, 1.0.0 is the newest version). This release will sooner or later be deleted.

Project description

nisupply

A python module for dealing with unstructured or semi-structured neuroimaging datasets which do not conform to the Brain Imaging Data Structure (BIDS).

Aims

Though more and more datasets become available in the standardized BIDS-format, researchers will still often find themelves in situations, were:

  1. The dataset is not BIDS-formatted at all (this is often the case with old 'in-house' datasets that were aquired during a time were BIDS didn't exist yet).
  2. It is not possible to convert the datasets to BIDS, because you 1.) Don't have access to the original DICOM-files 2.) Not the time and ressources to do so 3.) Lack information, but the maintainer has left your research department
  3. The dataset is wrongly BIDS-formatted because it sticks to an outdated BIDS version or because the maintainers made errors (as a consequence, verification tools like the BIDS-validator will throw errors)

As a consequence, one cannot use tools from the BIDS Apps universe which by default require the files to be BIDS-conform in order to work. The idea behind the nisupply module is to provide helper functions that facilitate the often tedious data-wrangling work that can happen with unstructured data sets.

Docs

The nisupply package provides three main modules:

  1. nisupply.io for input-output-operations (finding files, renaming them, copying them over to a different directory). The main function within this module is the nisupply.io.get_filepath_df function.
  2. nisupply.bids (helper functions to create a BIDS-like data structures. Note, that without having the original DICOM files one will never be able to create 100% valid BIDS-datasets with this module)
  3. nisupply.utils (unarchiving files which is needed for neuroimaging software like SPM and other functions that do not fit to the first two modules)

Note

The nisupply module does not provide any functions to convert DICOM files to NIFTI files. If you are looking for tools to do that, check out tools like heudiconv or bidscoin that can do that for you.

Similar Projects

There are similar projects out there following the same idea:

  1. Have a look at Stephen Larroque's pathmatcher package which works primarily with regex.
  2. The interfaces.io module from nipype (especially the DataFinder class)

The focus of nisupply is to avoid quite unreadable regex-matches as much as possible. It therefore is best suited for semi-structured datsets that are neither completely unordered but also 100% standardized.

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

nisupply-2023.3.10.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

nisupply-2023.3.10-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file nisupply-2023.3.10.tar.gz.

File metadata

  • Download URL: nisupply-2023.3.10.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for nisupply-2023.3.10.tar.gz
Algorithm Hash digest
SHA256 ec01b0b19e70577d1ff7b57f5b50c72c50bfee8705619488c459e172de0e62d5
MD5 063bd03f7085428cb020994d1f0b2659
BLAKE2b-256 ec7732c4faafbc1ff79b40915229cb28837f71b0c8c55c548c87552c2f65dbce

See more details on using hashes here.

File details

Details for the file nisupply-2023.3.10-py3-none-any.whl.

File metadata

  • Download URL: nisupply-2023.3.10-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for nisupply-2023.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 354c7d51d11bb1b3523fc65fd4bcad2e11fc29f8f0a2955d02ca8923d29c260c
MD5 0630c2a574c237702c690d66f35649ef
BLAKE2b-256 929dbc8584eae32fd41ca5e8216bbdaee15816c65e811f1c8ac5a88bd140a17b

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