Skip to content

Instantly share code, notes, and snippets.

@skurscheid
Last active October 27, 2016 22:47
Show Gist options
  • Save skurscheid/9cfaded118044b6dfea25cc460b4b61a to your computer and use it in GitHub Desktop.
Save skurscheid/9cfaded118044b6dfea25cc460b4b61a to your computer and use it in GitHub Desktop.
using awk to re-format BED file chromosome IDs
awk 'BEGIN {OFS = "\t";} {$1="chr"$1; print $0}' < [input.bed] > [output.bed]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment