From: Heng Li Date: Thu, 5 Aug 2010 20:03:23 +0000 (+0000) Subject: minor X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6df2741e66faa911a11f38a5ee1c42c1f1a523ef;p=samtools.git minor --- diff --git a/examples/Makefile b/examples/Makefile index f54cc63..b12f882 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -43,4 +43,6 @@ calDepth:../libbam.a calDepth.c gcc -g -Wall -O2 -I.. calDepth.c -o $@ -lm -lz -L.. -lbam clean: - rm -fr *.bam *.bai *.glf* *.fai *.pileup* *~ calDepth *.dSYM ex1*.rg ex1.bcf \ No newline at end of file + rm -fr *.bam *.bai *.glf* *.fai *.pileup* *~ calDepth *.dSYM ex1*.rg ex1.bcf + +# ../samtools pileup ex1.bam|perl -ape '$_=$F[4];s/\^.//g;$x=tr/A-Z/X/;$y=tr/a-z/x/;s/(\d+)(X)/$x-=$1,$2/eg;s/(\d+)(x)/$y-=$1,$2/eg;$_=join("\t",@F[0,1],$x,$y)."\n"' \ No newline at end of file