annotate sort_bam.sh @ 7:90098d9cb691 default tip

workflows updated
author biomonika <biomonika@psu.edu>
date Fri, 20 Feb 2015 18:34:34 -0500
parents 0d8315be76b7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
1 #!/bin/bash
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
2 results=$1;
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
3 bam_file=$2;
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
4
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
5 hash samtools 2>/dev/null || { echo "I require samtools in path but it's not installed. Aborting."; exit 1; }
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
6 echo "LINKYX_PATH:" $LINKYX_PATH
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
7 echo "SAMTOOLS:" $SAMTOOLS
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
8 echo "PATH:" $PATH
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
9 samtools sort $bam_file $results 2>log.txt
0d8315be76b7 Uploaded
biomonika
parents:
diff changeset
10