Skip to content

Instantly share code, notes, and snippets.

@crazyhottommy
Created August 25, 2015 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyhottommy/37e9b5302ebe169cb5d4 to your computer and use it in GitHub Desktop.
Save crazyhottommy/37e9b5302ebe169cb5d4 to your computer and use it in GitHub Desktop.
compare mutect results overlapping
for i in {1..22} X Y
do
same=$(comm -12 <(cut -f1,2,4,5 keep_original_bam/TCGA-06-0125_$i.call.keep.txt | sort) <(cut -f1,2,4,5 keep_realigned_bam/TCGA-06-0125_$i.call.keep.txt| sort) | wc -l | tr -d " ")
original=`wc -l keep_original_bam/TCGA-06-0125_$i.call.keep.txt | awk '{print $1}'`
realigned=`wc -l keep_realigned_bam/TCGA-06-0125_$i.call.keep.txt | awk '{print $1}'`
printf "chromosome $i, original_bam:$original, realigned_bam:$realigned, common:$same \n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment