Skip to main content

Handling experimental metadata, mainly paths needed for various pipeline applications

Project description

xpmtd

This package is for keeping track of rawdata and derivatives directory structures. The core principle is that filepaths are deterministic following the NIU NeuroBlueprint principles (https://neuroblueprint.neuroinformatics.dev/latest/index.html)

Ideally, this package should free users from having to define paths to any of their data and provide a comfortable api for accessing different data.

TODO: combine with datashuttle

The user needs to specify the path to the root raw data, and the path to the root derivatives data and a mouse name.

This will then be used to look for and organise the different data sources, where they have been specified. E.g. for Behaviour, Neuropixels, and Histological data.

Some example code:

from metadata import MouseMetadata

rawdata_directory = "/path/to/rawdata/"
derivatives_directory = "/path/to/derivatives/"
mouse_id = "mouse_1"

metadata = MouseMetadata(
                           mouse_id,
                           rawdata_directory,
                           derivatives_directory,
                           )                           

This metadata object can then be used directly in different python scripts to access and generate filepaths of different types down to the session and run level when needed and only needs to be defined once per mouse. e.g.:

import run_behaviour analysis # (or whatever)
for s in metadata.sessions:
    behaviour_directory = s.behav_derivatives
    run_behaviour_analysis(behaviour_directory)

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

xpmtd-0.1.5.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

xpmtd-0.1.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file xpmtd-0.1.5.tar.gz.

File metadata

  • Download URL: xpmtd-0.1.5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for xpmtd-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f9278dc2c340d36d810cb077a1fe5bd377e7bbb819b987b0b19e35e30411857d
MD5 654eaefb671451cbb168957b32dd879c
BLAKE2b-256 295e6781e38b49a9d93715c6cb7a0ef894a603a4243c7103a1a02898a5d75505

See more details on using hashes here.

File details

Details for the file xpmtd-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: xpmtd-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for xpmtd-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 20b536dbc4afede9c2f19e3208f509764b0a281598a862d266af0a7858b9cb68
MD5 571d4d92bde85d9fe33c51d9f301725a
BLAKE2b-256 45a7bca194a93683b3de1a06bdf31bc60ae05f5d12b437c0050e2d386ef15597

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