{"api_version":2,"name":"galaxy_sam_reheader","version":"1.0","description":"Replace SAM metadata while preserving the reference dictionary.","icon":{"path":"M4 3h12l4 4v14H4zM8 11h8M8 15h8m-8 4h5"},"inputs":{"source":{"representations":["bytes"],"formats":[]}},"parameters":{"type":"object","properties":{"header_lines":{"type":"array","default":["@HD\tVN:1.6\tSO:unknown","@SQ\tSN:chr1\tLN:10"],"maxItems":128,"items":{"type":"string","default":"","description":"One SAM metadata line without line terminators."},"description":"Complete replacement SAM header lines; the ordered reference dictionary must match."}},"additionalProperties":false,"required":[]},"documentation":{"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.","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.","example":["@HD\tVN:1.6\tSO:unknown","@SQ\tSN:chr1\tLN:10"]}},"example_job":"name: Replace SAM metadata while preserving the reference dictionary.\nsteps:\n- id: read\n  operator: item_source@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: {}\n- id: receive_result\n  operator: client_sink@1.0\n  inputs:\n    result: process\n"},"execution":{"executor":"jvm","entrypoint":"xstream.galaxy.SamReheader","config":{}},"runtime":{"image":"sha256:23732819bf6777f314efc0454034fb8509caac9dc81b84538e52104274cb4af3","archive":{"sha256":"c2292f636d53fb70c0de30cf95b589b9eebd1d60c805465281a6980ff2889288","size":104964639,"filename":"jvm-arrow-2.1.tar.gz"}},"source_public":true,"provenance":{"source_archive":{"sha256":"7508f58074e70d1eeb6254a6dd579441b079fd01582c965f4ca8e4423794c795","size":1910052,"filename":"galaxy_sam_reheader-sources.zip"},"source_repository":"https://github.com/galaxyproject/tools-iuc","source_revision":"a9914e6c25a7aee16191a11c654ea25d72d0017c","license":"AFL-3.0 AND MIT","license_file":{"sha256":"b5c47c1fc99e3f0f24de342af06da7bbaf8f394f1b6be0295d0d2ebcf7e874cf","size":12526,"filename":"GALAXY-LICENSE.txt"},"build_instructions":"Compile every src/*.scala against the shared SDK using the jvm-arrow@2.1 Scala builder; include resources/ in the thin JAR. No external runtime dependencies. See README, extra-specs.json, upstream manifests and dependency evidence for supported scopes, licenses and tests."},"artifact":{"sha256":"ff1d53d4bbee39351daf6a714cd916f6864638705b5dd8870a056ae17b0869e3","size":491416,"filename":"operator.jar"},"categories":["Galaxy","Genomics","Alignments"],"role":"transform","type":"sdk","outputs":{"result":{"view":"bytes"}},"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1794231915298},"publication":{"author":"dacp-examples","submitted_at_ms":1794231845653,"approved_at_ms":1794231915298,"last_submitted_at_ms":1794231845653,"last_approved_at_ms":1794231915298},"download_count":3}