{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "fq_subsample",
  "description": "fq subsample outputs a subset of records from single or paired FASTQ files.",
  "type": "object",
  "$defs": {
    "input": {
      "title": "Input",
      "type": "object",
      "description": "No description",
      "properties": {
        "input_1": {
          "type": "string",
          "format": "path",
          "exists": true,
          "description": "First input fastq file to subsample",
          "help_text": "Type: `file`, multiple: `False`, required, direction: `input`. "
        },
        "input_2": {
          "type": "string",
          "format": "path",
          "description": "Second input fastq files to subsample",
          "help_text": "Type: `file`, multiple: `False`, direction: `input`. "
        }
      }
    },
    "output": {
      "title": "Output",
      "type": "object",
      "description": "No description",
      "properties": {
        "output_1": {
          "type": "string",
          "format": "path",
          "description": "Sampled read 1 fastq files",
          "help_text": "Type: `file`, multiple: `False`, default: `\"$id.$key.output_1\"`, direction: `output`. ",
          "default": "$id.$key.output_1"
        },
        "output_2": {
          "type": "string",
          "format": "path",
          "description": "Sampled read 2 fastq files",
          "help_text": "Type: `file`, multiple: `False`, default: `\"$id.$key.output_2\"`, direction: `output`. ",
          "default": "$id.$key.output_2"
        }
      }
    },
    "options": {
      "title": "Options",
      "type": "object",
      "description": "No description",
      "properties": {
        "probability": {
          "type": "number",
          "description": "The probability a record is kept, as a percentage (0.0, 1.0)",
          "help_text": "Type: `double`, multiple: `False`. "
        },
        "record_count": {
          "type": "integer",
          "description": "The exact number of records to keep",
          "help_text": "Type: `integer`, multiple: `False`. "
        },
        "seed": {
          "type": "integer",
          "description": "Seed to use for the random number generator",
          "help_text": "Type: `integer`, multiple: `False`. "
        }
      }
    },
    "nextflow input-output arguments": {
      "title": "Nextflow input-output arguments",
      "type": "object",
      "description": "Input/output parameters for Nextflow itself. Please note that both publishDir and publish_dir are supported but at least one has to be configured.",
      "properties": {
        "publish_dir": {
          "type": "string",
          "description": "Path to an output directory.",
          "help_text": "Type: `string`, multiple: `False`, required, example: `\"output/\"`. "
        }
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/input"
    },
    {
      "$ref": "#/$defs/output"
    },
    {
      "$ref": "#/$defs/options"
    },
    {
      "$ref": "#/$defs/nextflow input-output arguments"
    }
  ]
}
