{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/module/protocol/0.0.0/channels",
  "description": "Information about a single microscope channel.",
  "additionalProperties": false,
  "required": [
    "channel_name",
    "excitation_wavelength",
    "filter_range",
    "exposure_time",
    "multiplexed"
  ],
  "title": "Imaging channel",
  "name": "imaging_channel",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/process/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/imaging_channels"
    },
    "schema_version": {
      "description": "The version number of the schema in major.minor.patch format.",
      "type": "string",
      "pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
      "example": "4.6.1"
    },
    "channel_name": {
      "description": "User given name e.g. blue.  If there is an accompanying code book, the name here should correspond to a channel number used in the code book.",
      "type": "string",
      "example": "far red",
      "user_friendly": "Channel name"
    },
    "excitation_wavelength": {
      "description": "Excitation wavelength of the lightsource in nanometers.",
      "type": "number",
      "example": "640",
      "user_friendly": "Excitation wavelength"
    },
    "filter_range": {
      "description": "Wavelength range of the emission filter in nanometers.",
      "type": "string",
      "example": "665 - 705",
      "user_friendly": "Filter range"
    },
    "multiplexed": {
      "description": "Is this channel part of a multiplexed experiment? Should be yes or no.",
      "type": "string",
      "enum": [
        "yes",
        "no"
      ],
      "example": "yes",
      "user_friendly": "Multiplexed?"
    },
    "target_fluorophore": {
      "description": "The name(s) of the fluorophore(s) this channel is designed to assay.",
      "type": "string",
      "example": "Alexa 647",
      "user_friendly": "Target fluorophore"
    },
    "exposure_time": {
      "description": "Exposure time - as a floating point number - in miliseconds",
      "type": "number",
      "example": "400",
      "user_friendly": "Exposure time"
    }
  }
}
