{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "bbknn",
  "description": "BBKNN network generation\n",
  "type": "object",
  "$defs": {
    "arguments": {
      "title": "Arguments",
      "type": "object",
      "description": "No description",
      "properties": {
        "input": {
          "type": "string",
          "format": "path",
          "exists": true,
          "description": "Input h5mu file",
          "help_text": "Type: `file`, multiple: `False`, required, direction: `input`. "
        },
        "modality": {
          "type": "string",
          "description": "Which modality from the input MuData file to process.\n",
          "help_text": "Type: `string`, multiple: `False`, default: `\"rna\"`. ",
          "default": "rna"
        },
        "obsm_input": {
          "type": "string",
          "description": "The dimensionality reduction in `.obsm` to use for neighbour detection",
          "help_text": "Type: `string`, multiple: `False`, default: `\"X_pca\"`. ",
          "default": "X_pca"
        },
        "obs_batch": {
          "type": "string",
          "description": ".obs column name discriminating between your batches.",
          "help_text": "Type: `string`, multiple: `False`, default: `\"batch\"`. ",
          "default": "batch"
        },
        "output": {
          "type": "string",
          "format": "path",
          "description": "Output .h5mu file.",
          "help_text": "Type: `file`, multiple: `False`, required, default: `\"$id.$key.output.h5mu\"`, direction: `output`, example: `\"output.h5mu\"`. ",
          "default": "$id.$key.output.h5mu"
        },
        "uns_output": {
          "type": "string",
          "description": "Mandatory .uns slot to store various neighbor output objects.",
          "help_text": "Type: `string`, multiple: `False`, default: `\"neighbors\"`. ",
          "default": "neighbors"
        },
        "obsp_distances": {
          "type": "string",
          "description": "In which .obsp slot to store the distance matrix between the resulting neighbors.",
          "help_text": "Type: `string`, multiple: `False`, default: `\"distances\"`. ",
          "default": "distances"
        },
        "obsp_connectivities": {
          "type": "string",
          "description": "In which .obsp slot to store the connectivities matrix between the resulting neighbors.",
          "help_text": "Type: `string`, multiple: `False`, default: `\"connectivities\"`. ",
          "default": "connectivities"
        },
        "n_neighbors_within_batch": {
          "type": "integer",
          "description": "How many top neighbours to report for each batch; total number of neighbours in the initial k-nearest-neighbours computation will be this number times the number of batches.",
          "help_text": "Type: `integer`, multiple: `False`, default: `3`. ",
          "default": 3
        },
        "n_pcs": {
          "type": "integer",
          "description": "How many dimensions (in case of PCA, principal components) to use in the analysis.",
          "help_text": "Type: `integer`, multiple: `False`, default: `50`. ",
          "default": 50
        },
        "n_trim": {
          "type": "integer",
          "description": "Trim the neighbours of each cell to these many top connectivities",
          "help_text": "Type: `integer`, multiple: `False`. "
        },
        "output_compression": {
          "type": "string",
          "description": "Compression format to use for the output AnnData and/or Mudata objects.\nBy default no compression is applied.\n",
          "help_text": "Type: `string`, multiple: `False`, example: `\"gzip\"`, choices: ``gzip`, `lzf``. ",
          "enum": [
            "gzip",
            "lzf"
          ]
        }
      }
    },
    "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/arguments"
    },
    {
      "$ref": "#/$defs/nextflow input-output arguments"
    }
  ]
}
