给定一个QC管道的输出目录和一个阈值配置文件,解析出所需的度量并根据阈值评估它们。

qc-metric-aggregator的Python项目详细描述


质量控制度量聚合器

Build Status

分析基因组数据的QC结果目录中的单个指标,并输出包含所需指标和样本总体通过/失败状态的报告。在

安装

pip install qc-metric-aggregator


用法


usage: aggregate-qc-metrics [-h]
                            sample_name metrics_dir output_file threshold_file

positional arguments:
  sample_name     The sample name or id for which the QC metrics apply
  metrics_dir     The directory to search for metric files, often a cromwell
                  run directory
  output_file     File path to store the finalized mertrics TSV
  threshold_file  Path to the yml thresholds file to validate against

optional arguments:
  -h, --help      show this help message and exit

调用示例:

^{pr2}$

输出格式

很快就要来了。。。在


Threshold文件

您将需要通过一个YAML文件,其中包含您感兴趣的度量的通过/失败阈值测试。文件格式包含一个对象列表,每个对象包含以下键:

KeyValueComments
^{}Name of the metric to checkThis can be any supported metric and should be the value returned by ^{}.
^{}Which operation to use to compare the metric value to the PASS/FAIL threshold^{},^{},^{},^{}, and ^{} are all supported. If you instead specify ^{} the metric will be reported in the final output, but not factored into the PASS/FAIL status.
^{}The PASS/FAIL threshold to compare the metric value toThis field is optional if ^{} is specified for the ^{}.

例如found here


支持的指标

^{tb2}$

添加其他指标

要添加对其他度量的支持,只需将Metric子类并在AvailableMetrics中注册即可

{tsqc}在cda5}中,有很多度量可以更容易地输出到cda5}中,因为这是一个非常简单的类。所有当前支持的度量都使用此帮助器,因此您应该能够查看它们的示例。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java引用MediaPlayer中断脚本?NullPointerException(JavaFX)   用于查找字符串的java正则表达式模式包含一些单词,而没有其他单词   使用Jfreechart和Runnable接口在java上显示实时数据的多线程处理   java如何在获取imei信息时获取dialogFragment中的上下文   安卓 Java在一个循环中打印每个i   apache kafka主题上的java流媒体没有输出   java是在Akka中模拟大量HTTP连接的最佳方法   java如何使用ibatis注释进行批插入   硬件如何在Linux、Windows和Mac上使用Java+JNI检索硬盘的唯一ID   java声明实例变量并实现getter方法?   java正则表达式和新行   java有没有办法使用安卓的Play Core安装本地apk?   java将Graphics2D绘制到另一个Graphics2D   使用Spring和Glassfish的JtaTransactionManager的java JNDI初始上下文   java是一个JPanel问题   网络Java UDP数据包丢失。50%   java如何从字符串正则表达式中提取数据   java 安卓不录制或编码声音