Skip to content

Instantly share code, notes, and snippets.

@ipurusho
Created December 22, 2014 17:16
Show Gist options
  • Save ipurusho/7ef9806459af9fe152f4 to your computer and use it in GitHub Desktop.
Save ipurusho/7ef9806459af9fe152f4 to your computer and use it in GitHub Desktop.
Sorts gene clusters after clusterbed is performed.
#!/bin/bash
filename=$1
awk -F "\t" '{split($9,a,";");print a[1], $10}' -v awk_file=filename | cut -d ' ' -f2,3 | sort -u | sort -k2 -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment