phac-nml / irida-wf-ga2xml

Create an IRIDA workflow from a Galaxy workflow file
Apache License 2.0
1 stars 3 forks source link

Pretty print Galaxy .ga file when constructing directory of files for IRIDA #7

Closed apetkau closed 4 years ago

innovate-invent commented 4 years ago

Not sure if this helps, but you can use the jq tool to do this:

jq '(..|select(type == "object")) |= (to_entries|sort_by(.key|(tonumber? // .))|from_entries)' < file.ga > pretty.ga