TemplateFlow的Pydra任务
项目描述
pydra-templateflow
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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4a583c2c7ff63a1879127962929ac64821a38c69634d4aa252cfbffdf427739e |
|
MD5 | bd72197810fddf4a6ac820be77cf48b3 |
|
BLAKE2b-256 | 4e16082fd3b0366bee046f1e946eae0b568c8cca0f515b728b9684554c10167a |
关闭
pydra_templateflow-0.0.2-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f8e806fd2ca482f41007d705e7241f00391aedc5f760cd1e1c4ad10b2a3688f5 |
|
MD5 | 2c5a66e74bbc562e64e6aa68a28dba2d |
|
BLAKE2b-256 | 46c7ba29bca57b7db3f6844968dfeafc7bebb09293f6af4b52162adc698b23b9 |