给定一个QC管道的输出目录和一个阈值配置文件,解析出所需的度量并根据阈值评估它们。
qc-metric-aggregator的Python项目详细描述
质量控制度量聚合器
分析基因组数据的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文件,其中包含您感兴趣的度量的通过/失败阈值测试。文件格式包含一个对象列表,每个对象包含以下键:
Key | Value | Comments |
---|---|---|
^{ | Name of the metric to check | This 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 | ^{ |
^{ | The PASS/FAIL threshold to compare the metric value to | This field is optional if ^{ |
支持的指标
^{tb2}$添加其他指标
要添加对其他度量的支持,只需将Metric子类并在AvailableMetrics中注册即可
{tsqc}在cda5}中,有很多度量可以更容易地输出到cda5}中,因为这是一个非常简单的类。所有当前支持的度量都使用此帮助器,因此您应该能够查看它们的示例。在
- 项目
标签: