🍺 BREW Explorer

← all formulae

bioawk

brew install bioawk v1.0 HPND

AWK modified for biological data

9
30-day installs · #9058
17
90-day · #10166
95
365-day · #9330
641
★ GitHub stars · updated 4y ago

GitHub topics

bioinformatics sequence-analysis

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "AWK modified for biological data",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:52+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "bioawk",
  "github_default_branch": "master",
  "github_last_commit_at": "2022-08-11T01:06:45Z",
  "github_readme_excerpt": "### Introduction\n\nBioawk is an extension to [Brian Kernighan\u0027s awk][1], adding the support of\nseveral common biological data formats, including optionally gzip\u0027ed BED, GFF,\nSAM, VCF, FASTA/Q and TAB-delimited formats with column names. It also adds a\nfew built-in functions and an command line option to use TAB as the\ninput/output delimiter. When the new functionality is not used, bioawk is\nintended to behave exactly the same as the original BWK awk.\n\nThe original awk requires a YACC-compatible parser generator (e.g. Byacc or\nBison). Bioawk further depends on [zlib][zlib] so as to work with gzip\u0027d files.\n\n### New functionality\n\n##### Command line option `-t`\n\nUsing this option is equivalent to\n\n    bioawk -F\u0027\\t\u0027 -v OFS=\"\\t\"\n\n##### Command line option `-c arg`\n\nThis option specifies the input format. When this option is in use, bioawk will\nseamlessly add variables that name the fields, based on either the format or\nthe first line of the input, depending *arg*. This option also enables bioawk\nto read gzip\u0027d files. The argument *arg* may take the following values:\n\n* `help`. List the supported formats and the naming variables.\n\n* `hdr` or `header`. Name each column based on the first line in the input.\n  Special characters in the first are converted to underscore. For example:\n\n        grep -v ^## in.vcf | bioawk -tc hdr \u0027{print $_CHROM,$POS}\u0027\n\n  prints the `CHROM` and `POS` columns of the input VCF file.\n\n* `sam`, `vcf`, `bed` and `gff`. SAM, VCF, BED and GFF formats.\n\n* `fastx`. This option regards a FASTA or FASTQ as a TAB delimited file with\n  four columns: sequence name, sequence, quality and FASTA/Q comment, such that\n  various fields can be retrieved with column names. See also example 4 in the\n  following.\n\n##### New built-in functions\n\nSee `awk.1`.\n\n### Examples\n\n1. List the supported formats:\n\n        bioawk -c help\n\n2. Extract unmapped reads without header:\n\n        bioawk -c sam \u0027and($flag,4)\u0027 aln.sam.gz\n\n3. Extract mapped reads with header:\n\n        bioawk ",
  "github_repo": "lh3/bioawk",
  "github_stars": 641,
  "github_topics": [
    "bioinformatics",
    "sequence-analysis"
  ],
  "homepage": "https://github.com/lh3/bioawk",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 9,
  "installs_365d": 95,
  "installs_90d": 17,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "HPND",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "bioawk",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 9058,
  "rank_365d": 9330,
  "rank_90d": 10166,
  "raw_hash": "af3530aac1f40d74",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/bioawk.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "bison": "build"
    }
  ],
  "version_head": null,
  "version_stable": "1.0",
  "versioned_formulae": [],
  "why_use_this": null
}