Skip to main content

Read Siemens raw data.

Project description

RawDatarInator

Python bindings for BART’s twixread function ([1]). This new version of rawdatarinator replaces the old Python port of a MATLAB script. Consequently, this one runs much faster and breaks less often. A cleaner interface is provided which will break all old code. See usage for examples. In general, this new release has fewer features that work better.

The name of the project pays homage to the naming convention of the main antagonist in Disney’s hit cartoon “Phineas and Ferb” ([2]).

Installation

This package is known to work with Python 3.6.8 using Ubuntu 18.04. If it doesn’t work on your system, please submit an issue and we can try to figure something out. The goal is to provide a simple pip-installable Python interface for BART’s twixread function. The Cythonized BART code is compiled during the installation, so you will need a C compiler installed.

Use pip to install:

pip install rawdatarinator

Usage

You get a few functions:

# BART's twixread function can be invoked right from a Python
# script:
from rawdatarinator import twixread
twixread('path/to/input/data.dat', 'path/to/output')

# A pair of .cfl, .hdr will be created: path/to/output.[cfl/hdr]
# as BART normally does.  However, if you're using these Python
# bindings, you might want to just grab the data straight away.
# You can do this by not providing any output file:
data = twixread('path/to/data.dat', A=True)

# You can read existing BART files like this:
from rawdatarinator import read
data = read('path/to/file/without/extentsion')

# If you've used BART's Python interface, this is a modified
# verison of readcfl.  It works just like that.  Similarly,
# BART's writecfl functionality can be found:
from rawdatarinator import write
write('path/to/out', data)

References

[1]Uecker, Martin, et al. “Berkeley advanced reconstruction toolbox.” Proc. Intl. Soc. Mag. Reson. Med. Vol. 23. 2015.
[2]List of Doofenshmirtz’s schemes and inventions

Project details


Download files

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

Files for rawdatarinator, version 1.3.2
Filename, size File type Python version Upload date Hashes
Filename, size rawdatarinator-1.3.2-cp36-cp36m-macosx_10_9_x86_64.whl (137.6 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp36-cp36m-manylinux1_i686.whl (472.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp36-cp36m-manylinux1_x86_64.whl (505.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp36-cp36m-manylinux2010_i686.whl (472.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp36-cp36m-manylinux2010_x86_64.whl (505.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp37-cp37m-macosx_10_9_x86_64.whl (136.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp37-cp37m-manylinux1_i686.whl (474.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp37-cp37m-manylinux1_x86_64.whl (508.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp37-cp37m-manylinux2010_i686.whl (474.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp37-cp37m-manylinux2010_x86_64.whl (508.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp38-cp38-macosx_10_9_x86_64.whl (137.1 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp38-cp38-manylinux1_i686.whl (534.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp38-cp38-manylinux1_x86_64.whl (571.5 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp38-cp38-manylinux2010_i686.whl (534.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp38-cp38-manylinux2010_x86_64.whl (571.5 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp39-cp39-macosx_10_9_x86_64.whl (138.7 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp39-cp39-manylinux1_i686.whl (508.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp39-cp39-manylinux1_x86_64.whl (542.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp39-cp39-manylinux2010_i686.whl (508.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-cp39-cp39-manylinux2010_x86_64.whl (542.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-pp36-pypy36_pp73-manylinux1_x86_64.whl (122.9 kB) File type Wheel Python version pp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-pp36-pypy36_pp73-manylinux2010_x86_64.whl (122.9 kB) File type Wheel Python version pp36 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-pp37-pypy37_pp73-manylinux1_x86_64.whl (122.9 kB) File type Wheel Python version pp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2-pp37-pypy37_pp73-manylinux2010_x86_64.whl (122.9 kB) File type Wheel Python version pp37 Upload date Hashes View
Filename, size rawdatarinator-1.3.2.tar.gz (170.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page