annotate LINKYX_mpileup_wrapper.sh @ 6:3941ba0da626

added license
author biomonika <biomonika@psu.edu>
date Fri, 20 Feb 2015 18:12:20 -0500
parents 0d8315be76b7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
1 #!/bin/bash
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
2 results=$1;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
3 bam_file=$2;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
4 reference=$3;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
5
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
6 sorted_bam=${bam_file}_sorted
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
7
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
8 samtools mpileup -uf $reference $bam_file 2>log.txt | bcftools view -p 0.85 -cgv - 2>log.txt >$results