【发布时间】:2021-10-26 11:58:48
【问题描述】:
我有一个包含以下列的示例 csv 文件:
SMFID,Fastq1,Fastq2
我尝试使用以下 yaml 来验证 snakemake 中的架构:
$schema: "https://json-schema.org/draft/2020-12/schema"
description: an entry in the sample sheet
properties:
SMFID:
type: string
description: sample name/identifier
Fastq1:
type: string
description: path to fastq file (first mate)
Fastq2:
type: string
description: path to fastq file (second mate)
required:
- SMFID
- Fastq1
- Fastq2
但我收到以下错误:
WorkflowError:验证的数据类型不受支持。
有没有办法指定输入文件是csv?
【问题讨论】:
-
您可以尝试使用 pandas-schema:pypi.org/project/pandas-schema
标签: jsonschema snakemake