pydra-templateflow
Pydra tasks for TemplateFlow.
Pydra is a dataflow engine which provides a set of lightweight abstractions for DAG construction, manipulation, and distributed execution.
TemplateFlow provides a framework for publicly hosting and distributing neuroimaging templates for human and nonhuman brains.
Table of contents
Available tasks
This package provides a get_template task, which takes a mandatory template_id argument
and an optional output_queries mapping from output names to their respective query entities.
The following example showcases using get_template to download the template image,
brain and head masks for the Linear ICBM Average Brain (ICBM152).
from pydra.tasks import templateflow
task = templateflow.get_template(
template_id="MNI152Lin",
output_queries={
"brain_mask": {"resolution": "1", "suffix": "mask", "desc": "head"},
"head_mask": {"resolution": "1", "suffix": "mask", "desc": "brain"},
"t1w_image": {"resolution": "1", "suffix": "T1w"},
},
)
result = task()
# result.output.brain_mask
# result.output.head_mask
# result.output.t1w_image
Please check the list of available templates here.
Installation
pip install pydra-templateflow
Development
This project is managed with Hatch:
pipx install hatch
To run the test suite:
hatch run test
To fix linting issues:
hatch run lint:fix
License
This project is distributed under the terms of the Apache License, Version 2.0.
Metadata
Release files for pydra-templateflow 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydra_templateflow-0.0.2.tar.gz | 8.4 kB | Without provenance | Details for pydra_templateflow-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydra_templateflow-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pydra_templateflow-0.0.2-py3-none-any.whl |
Total release size: 15.8 kB
Release files / pydra_templateflow-0.0.2.tar.gz
| Download URL | pydra_templateflow-0.0.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a583c2c7ff63a1879127962929ac64821a38c69634d4aa252cfbffdf427739e
|
|
BLAKE2b-256 checksum How to use checksums |
4e16082fd3b0366bee046f1e946eae0b568c8cca0f515b728b9684554c10167a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / pydra_templateflow-0.0.2-py3-none-any.whl
| Download URL | pydra_templateflow-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8e806fd2ca482f41007d705e7241f00391aedc5f760cd1e1c4ad10b2a3688f5
|
|
BLAKE2b-256 checksum How to use checksums |
46c7ba29bca57b7db3f6844968dfeafc7bebb09293f6af4b52162adc698b23b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for pydra-templateflow 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.