{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/module/protocol/1.0.0/channel",
  "description": "Information about a single microscope channel.",
  "additionalProperties": false,
  "required": [
    "channel_name",
    "excitation_wavelength",
    "filter_range",
    "exposure_time",
    "multiplexed"
  ],
  "title": "Channel",
  "name": "channel",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/protocol/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/channel"
    },
    "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.  If there is an accompanying codebook, this name should correspond to a channel name used in the codebook.",
      "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": "Were multiple targets detected simultaneously in this channel? Should be yes or no.",
      "type": "string",
      "enum": [
        "yes",
        "no"
      ],
      "example": "yes",
      "user_friendly": "Is this a multiplexed experiment?"
    },
    "target_fluorophore": {
      "description": "The name of the fluorophore this channel is designed to assay.",
      "type": "string",
      "example": "Alexa 647",
      "user_friendly": "Target fluorophore"
    },
    "exposure_time": {
      "description": "Acquisition time for a single image per channel in miliseconds",
      "type": "number",
      "example": "400",
      "user_friendly": "Exposure time"
    }
  }
}
