{"api_version":2,"name":"galaxy_head","version":"1.0","description":"Return the first N text lines, preserving their line endings and draining the input.","icon":{"path":"M4 5h16M4 10h16m-16 5h10m-10 5h6M18 13v8m-3-5 3-3 3 3"},"inputs":{"source":{"representations":["bytes"],"formats":[]}},"parameters":{"type":"object","properties":{"lines":{"type":"integer","minimum":0,"maximum":1000000,"default":10,"description":"Number of lines to select or discard."}},"required":[],"additionalProperties":false},"documentation":{"inputs":{"source":"UTF-8 text bytes. Column tools use the selected delimiter, without CSV quote interpretation."},"outputs":{"result":"Return the first N text lines, preserving their line endings and draining the input."},"parameters":{"lines":{"description":"Number of lines to select or discard.","help":"Use a nonnegative integer. Tail is limited to 10000 lines and an 8 MiB-character rolling buffer.","example":2}},"example_job":"name: Return the first N text lines, preserving their line endings and draining the\n  input.\nsteps:\n- id: read\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/galaxy/table.tsv\n    view: bytes\n- id: process\n  operator: galaxy_head@1.0\n  inputs:\n    source: read\n  params:\n    lines: 2\n- id: receive_result\n  operator: client_sink@1.0\n  inputs:\n    result: process\n"},"execution":{"executor":"jvm","entrypoint":"xstream.galaxy.Head","config":{}},"runtime":{"image":"sha256:23732819bf6777f314efc0454034fb8509caac9dc81b84538e52104274cb4af3","archive":{"sha256":"c2292f636d53fb70c0de30cf95b589b9eebd1d60c805465281a6980ff2889288","size":104964639,"filename":"jvm-arrow-2.1.tar.gz"}},"source_public":true,"provenance":{"source_archive":{"sha256":"c87b1d3bbb47dd9a8c8510269d291732bef3c0df8c8c7b568455c2273b04a932","size":108005,"filename":"galaxy_head-sources.zip"},"source_repository":"https://github.com/galaxyproject/tools-devteam","source_revision":"ddbe2a1e6eded54877d786fbcfc18e594fb12932","license":"AFL-3.0 AND MIT","license_file":{"sha256":"b5c47c1fc99e3f0f24de342af06da7bbaf8f394f1b6be0295d0d2ebcf7e874cf","size":12526,"filename":"GALAXY-LICENSE.txt"},"build_instructions":"Scala adaptation sources are src/Galaxy.scala and src/Sequences.scala. Compile against the shared SDK with the registered jvm-arrow@2.1 Scala builder; include resources/ in the thin JAR. No external libraries beyond the shared runtime. README files document upstream behavior and deliberate fixes; upstream/ retains original tools and fixtures."},"artifact":{"sha256":"d16a5708834102ccdd4a5bc70eb4355581705aa93432f6fbdf5fa5b1d14cf940","size":52273,"filename":"operator.jar"},"categories":["Galaxy","Text processing","Tabular data"],"role":"transform","type":"sdk","outputs":{"result":{"view":"bytes"}},"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1794146880901},"publication":{"author":"dacp-examples","submitted_at_ms":1794146851246,"approved_at_ms":1794146880901,"last_submitted_at_ms":1794146851246,"last_approved_at_ms":1794146880901},"download_count":4}