跳转到主要内容

TemplateFlow的Pydra任务

项目描述

pydra-templateflow

PyPI - Version PyPI - Python Version PyPI - Downloads


Pydra的TemplateFlow任务。

Pydra是一个数据流引擎,它提供了一组用于DAG构建、操作和分布式执行的轻量级抽象。

TemplateFlow为公开托管和分发人类和非人类大脑的神经影像学模板提供了一个框架。

目录

可用任务

此软件包提供了一个get_template任务,它需要一个必需的template_id参数和一个可选的从输出名称到其相应查询实体的映射output_queries

以下示例展示了如何使用get_template下载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

请在此处查看可用模板列表 here

安装

pip install pydra-templateflow

开发

此项目由Hatch管理

pipx install hatch

运行测试套件

hatch run test

修复linting问题

hatch run lint:fix

许可证

本项目遵循Apache License, Version 2.0条款进行分发。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

pydra_templateflow-0.0.2.tar.gz (8.4 kB 查看哈希值)

上传时间 源代码

构建分发

pydra_templateflow-0.0.2-py3-none-any.whl (7.4 kB 查看哈希值)

上传时间 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面