Skip to content

Instantly share code, notes, and snippets.

@gatoravi
Created April 22, 2015 20:42
Show Gist options
  • Save gatoravi/b6accca1658a4e89223e to your computer and use it in GitHub Desktop.
Save gatoravi/b6accca1658a4e89223e to your computer and use it in GitHub Desktop.
Parse read-counts from Bam-Readcount output.
ls *tsv | xargs -i echo 'cut -f 1-4,6-9 {} |tr ":" "\t" | cut -f 1-4,6,20,34,48 | perl -ne '\''chomp$_; @array=split("\t"); if($array[3] == $array[4] || $array[3] == $array[5] || $array[3] == $array[6] || $array[3] == $array[7]){next;} else {print "$_\n";}'\'' > {}.formatted '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment