$schema: "http://json-schema.org/draft-04/schema#"
description: row of the units.tsv, representing a sequencing unit, i.e. single-end or paired-end data
type: object
properties:
  sample_name:
    type: string
    pattern: "^[a-zA-Z_0-9-]+$"
    description: sample name/id the unit has been sequenced from (alphanumeric string, that may additionally contain '_' and '-')
  unit_name:
    type: string
    pattern: "^[a-zA-Z_0-9-]+$"
    description: unit id (alphanumeric string, that may additionally contain '_' and '-')
  fq1:
    type: string
    pattern: "^[^ \t]+$"
    description: path to FASTQ file (may not contain whitespace)
  fq2:
    type: string
    description: path to second FASTQ file (leave empty in case of single-end)
  sra:
    type: string
    description: SRA id for automatic download of unit
  adapters:
    type: string
    description: cutadapt adapter trimming settings to use (see https://cutadapt.readthedocs.io)

required:
  - sample_name
  - unit_name
