gdflowon
包含使用DAG描述的自动流模型渲染工具、样品信息表的定义等,可通过简单的配置结合样品信息表中的 subproject、sample、lane等模型快速地描述分析流程。
渲染DAG及绑定顶点活动的资源
以子项目为单位,通过配置中的顶点模板映射DAG的各个顶点。首先需要定义顶点的模板,顶点模板包含以下元素:
<顶点类型>:
scope: <资源类型> # 指定该顶点类型使用到的资源类型:`subproject` | `sample` | `lane`
dependencies: <依赖到的顶点类型>
以WGS分析流程为例,人工操作需要完成以下步骤:
- 按Lane上传,无依赖项
- 按Lane比对,依赖绑定的资源(Lane)上传完成
- 按样本WGS分析,依赖绑定的资源(样本下所有Lane)全部比对完成
- 按整个子项目合并处理报告,依赖绑定的资源(子项目下所有的样本)全部分析完成
- 按整个子项目下载结果,依赖绑定的资源(子项目)报告处理完成
upload:
scope: lane
dependencies: null
mapping:
scope: lane
dependencies: upload
wgs:
scope: sample
dependencies: mapping
report:
scope: subproject
dependencies: wgs
download:
scope: subproject
dependencies: report
样品信息表 <-> DAG的映射方式如下:
@startuml 通过子项目映射到DAG
!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/core.puml
start
:子项目/
split
:子项目下的Lane列表/
:映射|
:顶点列表(upload)/
split again
:子项目下的Lane列表/
:映射|
:顶点列表(mapping)/
split again
:子项目下的样品列表/
:映射|
:顶点列表(wgs)/
split again
:子项目/
:映射|
:顶点(report)/
split again
:子项目/
:映射|
:顶点(download)/
end split
:处理依赖关系,生成DAG;
stop
@enduml
使用方式
from gdflowon import dag
# flow_config: 使用DAG描述的流程模板
# subproject: 样品信息表
graph = dag.subproject_2_dag(subproject, flow_config)
Release files for gdmetro-flowon 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gdmetro-flowon-0.1.3.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gdmetro_flowon-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 31.8 kB
Release files / gdmetro-flowon-0.1.3.tar.gz
| Download URL | gdmetro-flowon-0.1.3.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78649b51a52f8f6b61a956211885c15186ce8d4b4240b24b5968c1fc27cb4be1
|
|
BLAKE2b-256 checksum How to use checksums |
85f28a4e79d90dec3582a6bb9ecd67810c9672b3bcfbb9067c5f20bbff44f222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15
|
Release files / gdmetro_flowon-0.1.3-py2.py3-none-any.whl
| Download URL | gdmetro_flowon-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
77ef682f6bcf1573cdca0c8f9d1e5c3ce9e2ea73a9ca8ab2cb220a4442067f05
|
|
BLAKE2b-256 checksum How to use checksums |
7a574b059a21236ba644225cede868f3b1b73267a8fa95aafb61bf7bd94e9568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15
|