Skip to main content

An automated production tool provided by the GeneDock team.

Project description

gdflowon

包含使用DAG描述的自动流模型渲染工具、样品信息表的定义等,可通过简单的配置结合样品信息表中的 subprojectsamplelane等模型快速地描述分析流程。

渲染DAG及绑定顶点活动的资源

以子项目为单位,通过配置中的顶点模板映射DAG的各个顶点。首先需要定义顶点的模板,顶点模板包含以下元素:

<顶点类型>:
    scope: <资源类型>  # 指定该顶点类型使用到的资源类型:`subproject` | `sample` | `lane`
    dependencies: <依赖到的顶点类型>

以WGS分析流程为例,人工操作需要完成以下步骤:

  1. 按Lane上传,无依赖项
  2. 按Lane比对,依赖绑定的资源(Lane)上传完成
  3. 按样本WGS分析,依赖绑定的资源(样本下所有Lane)全部比对完成
  4. 按整个子项目合并处理报告,依赖绑定的资源(子项目下所有的样本)全部分析完成
  5. 按整个子项目下载结果,依赖绑定的资源(子项目)报告处理完成
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)

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

gdmetro-flowon-0.1.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

gdmetro_flowon-0.1.3-py2.py3-none-any.whl (16.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gdmetro-flowon-0.1.3.tar.gz.

File metadata

  • Download URL: gdmetro-flowon-0.1.3.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gdmetro-flowon-0.1.3.tar.gz
Algorithm Hash digest
SHA256 78649b51a52f8f6b61a956211885c15186ce8d4b4240b24b5968c1fc27cb4be1
MD5 680b49bbe9b8e4953919f1765bad9a58
BLAKE2b-256 85f28a4e79d90dec3582a6bb9ecd67810c9672b3bcfbb9067c5f20bbff44f222

See more details on using hashes here.

File details

Details for the file gdmetro_flowon-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: gdmetro_flowon-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for gdmetro_flowon-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 77ef682f6bcf1573cdca0c8f9d1e5c3ce9e2ea73a9ca8ab2cb220a4442067f05
MD5 1ad652dd2fb81e33d2a47c8c4156a195
BLAKE2b-256 7a574b059a21236ba644225cede868f3b1b73267a8fa95aafb61bf7bd94e9568

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page