resources/META-INF/galaxy-operator.json
1{"categories": ["Galaxy", "Genomics", "Alignments"], "description": "Replace SAM metadata while preserving the reference dictionary.", "documentation": {"example_job": "name: Replace SAM metadata while preserving the reference dictionary.\nsteps:\n- id: read\n operator: read_item@1.0\n inputs: {}\n params:\n uri: context:/galaxy/extended/sam_reheader.txt\n view: bytes\n- id: process\n operator: galaxy_sam_reheader@1.0\n inputs:\n source: read\n params: {}\noutputs:\n result: process\n", "inputs": {"source": "UTF-8 bytes stream. Replaces header text only; requires an identical ordered @SQ dictionary, so alignments remain valid. UTF-8 SAM text only, no BAM/CRAM or indexed random access. Requires @SQ for mapped reads; validates flags, coordinates, CIGAR, sequence and quality. At most 100000 reference sequences."}, "outputs": {"result": "Replace SAM metadata while preserving the reference dictionary. Replaces header text only; requires an identical ordered @SQ dictionary, so alignments remain valid. UTF-8 SAM text only, no BAM/CRAM or indexed random access. Requires @SQ for mapped reads; validates flags, coordinates, CIGAR, sequence and quality. At most 100000 reference sequences."}, "parameters": {"header_lines": {"description": "Complete replacement SAM header lines; the ordered reference dictionary must match.", "example": ["@HD\tVN:1.6\tSO:unknown", "@SQ\tSN:chr1\tLN:10"], "help": "Complete replacement SAM header lines; the ordered reference dictionary must match. Replaces header text only; requires an identical ordered @SQ dictionary, so alignments remain valid. UTF-8 SAM text only, no BAM/CRAM or indexed random access. Requires @SQ for mapped reads; validates flags, coordinates, CIGAR, sequence and quality. At most 100000 reference sequences."}}}, "entrypoint": "xstream.galaxy.SamReheader", "fixture": {"data": "@HD\tVN:1.6\tSO:unsorted\n@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\n", "expected": "@HD\tVN:1.6\tSO:unknown\n@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\n", "params": {}}, "icon": {"color": "#5265ad", "path": "M4 3h12l4 4v14H4zM8 11h8M8 15h8m-8 4h5"}, "implementation": "AlignmentStreams", "name": "galaxy_sam_reheader", "parameters": {"additionalProperties": false, "properties": {"header_lines": {"default": ["@HD\tVN:1.6\tSO:unknown", "@SQ\tSN:chr1\tLN:10"], "description": "Complete replacement SAM header lines; the ordered reference dictionary must match.", "items": {"default": "", "description": "One SAM metadata line without line terminators.", "type": "string"}, "maxItems": 128, "type": "array"}}, "required": [], "type": "object"}, "params": {}, "scope": "Replaces header text only; requires an identical ordered @SQ dictionary, so alignments remain valid. UTF-8 SAM text only, no BAM/CRAM or indexed random access. Requires @SQ for mapped reads; validates flags, coordinates, CIGAR, sequence and quality. At most 100000 reference sequences.", "upstream": {"path": "tool_collections/samtools/samtools_reheader/samtools_reheader.xml", "repository": "https://github.com/galaxyproject/tools-iuc"}, "version": "1.0"}