{
  "checksum": [
    {
      "checksum": "0997e951f13133fedb2da13eec3c3b92edd0c8af30c68e49dbc98b164f83805c",
      "type": "sha-256"
    }
  ],
  "content": "{\n  \"$schema\": \"https://raw.githubusercontent.com/elixir-cloud-aai/ga4gh-io-schema/main/schemas/ga4gh-io-profile.schema.json\",\n  \"title\": \"I/O Schema demo\",\n  \"description\": \"Filters aligned reads by mapping quality and flags, sorts and indexes them, and reports alignment statistics.\",\n  \"x-ga4gh-workflow\": {\n    \"descriptor_type\": \"WDL\",\n    \"descriptor_type_version\": \"1.1\",\n    \"entry_point\": \"io_schema_demo\",\n    \"checksum\": [\n      {\n        \"type\": \"sha-256\",\n        \"checksum\": \"752bcc3fafff87dbd85121975b05264735021a7aaf07d5e802183100be862c1b\"\n      }\n    ],\n    \"trs_tool_id\": \"ga4gh-io-schema-demo\",\n    \"trs_version_id\": \"1.0.0\",\n    \"primary_descriptor_path\": \"demo.wdl\"\n  },\n  \"type\": \"object\",\n  \"properties\": {\n    \"inputs\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"reads\": {\n          \"type\": \"string\",\n          \"x-ga4gh-file\": {\n            \"kind\": \"file\",\n            \"ontology\": \"http://edamontology.org/format_2572\",\n            \"schemes\": [\n              \"https\",\n              \"s3\"\n            ]\n          },\n          \"description\": \"Reads aligned to a reference, in BAM format, in any order.\",\n          \"title\": \"Aligned reads (BAM)\",\n          \"x-ga4gh-parameter\": {\n            \"type\": \"File\"\n          },\n          \"examples\": [\n            \"https://raw.githubusercontent.com/nf-core/test-datasets/3e548a3b34994380db1602506e0721fadbad6de1/data/genomics/sarscov2/illumina/bam/test.paired_end.bam\"\n          ]\n        },\n        \"min_mapq\": {\n          \"type\": \"integer\",\n          \"description\": \"Reads with a lower mapping quality are removed (0 keeps all reads).\",\n          \"title\": \"Minimum mapping quality\",\n          \"default\": 0,\n          \"x-ga4gh-parameter\": {\n            \"type\": \"Int\"\n          },\n          \"minimum\": 0,\n          \"maximum\": 60,\n          \"x-ga4gh-ui-widget\": \"slider\",\n          \"x-ga4gh-error-message\": \"The minimum mapping quality is a whole number from 0 to 60\"\n        },\n        \"read_filter\": {\n          \"type\": \"string\",\n          \"description\": \"Which reads to keep besides the mapping quality: all, properly paired only, or primary alignments only.\",\n          \"title\": \"Read filter\",\n          \"enum\": [\n            \"none\",\n            \"proper_pairs\",\n            \"primary_only\"\n          ],\n          \"default\": \"none\",\n          \"x-ga4gh-parameter\": {\n            \"type\": \"String\"\n          },\n          \"x-ga4gh-ui-widget\": \"radio\"\n        }\n      },\n      \"required\": [\n        \"reads\"\n      ],\n      \"additionalProperties\": false\n    },\n    \"outputs\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"filtered_bam\": {\n          \"type\": \"string\",\n          \"x-ga4gh-file\": {\n            \"kind\": \"file\",\n            \"ontology\": \"http://edamontology.org/format_2572\"\n          },\n          \"description\": \"The filtered reads, sorted by coordinate.\",\n          \"title\": \"Filtered reads (BAM)\",\n          \"x-ga4gh-parameter\": {\n            \"type\": \"File\"\n          }\n        },\n        \"filtered_bam_index\": {\n          \"type\": \"string\",\n          \"x-ga4gh-file\": {\n            \"kind\": \"file\",\n            \"ontology\": \"http://edamontology.org/format_3327\"\n          },\n          \"description\": \"The index of the filtered reads.\",\n          \"title\": \"Index of the filtered reads (BAI)\",\n          \"x-ga4gh-parameter\": {\n            \"type\": \"File\"\n          }\n        },\n        \"report\": {\n          \"type\": \"string\",\n          \"x-ga4gh-file\": {\n            \"kind\": \"file\",\n            \"mediaType\": \"text/html\"\n          },\n          \"description\": \"Statistics of the reads before and after filtering.\",\n          \"title\": \"Alignment report (HTML)\",\n          \"x-ga4gh-parameter\": {\n            \"type\": \"File\"\n          },\n          \"x-ga4gh-ui-widget\": \"html-viewer\"\n        }\n      },\n      \"required\": [\n        \"filtered_bam\",\n        \"filtered_bam_index\",\n        \"report\"\n      ],\n      \"additionalProperties\": false\n    }\n  }\n}\n"
}
