Last active
April 19, 2024 14:10
-
-
Save SJShaw/ec9114a3ff0a65182940cd2874a440c0 to your computer and use it in GitHub Desktop.
Build simple regions TSV from antiSMASH JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Requires JQ, on debian/ubuntu derivatives, this can be installed with "apt install jq" | |
# | |
# Either provide an antiSMASH JSON results file as the argument or pipe it in | |
jq -r '.records[].areas[] | [.start, .end, (.products | join(","))] | flatten | @tsv' "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment