Created
April 22, 2015 20:42
-
-
Save gatoravi/b6accca1658a4e89223e to your computer and use it in GitHub Desktop.
Parse read-counts from Bam-Readcount output.
This file contains hidden or 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
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