comparison scripts/prepare_statistics.sh @ 22:7997c93ee479

last attempt to install perl as part of linkyx
author biomonika <biomonika@psu.edu>
date Thu, 11 Sep 2014 19:40:01 -0400
parents 1955f03f092e
children
comparison
equal deleted inserted replaced
21:55a373f7e669 22:7997c93ee479
1 #!/bin/bash
2 set -e;
3
4 #variables
5 mkdir -p scripts/statistics; #create directory if it doesn't exist
6
7 echo "Calculation of statistics started."
8
9 #get statistics about mapped and unmapped reads for every contig
10
11 idxstats_bam_file ()
12 {
13 for ARG in "$@";
14 do
15 samtools idxstats bam/aln_cleaned_sorted_deduplicated_${ARG}_male.bam >scripts/statistics/stat_${ARG} &
16 done;
17 }
18
19 idxstats_bam_file mother father daughter son;
20
21 wait;
22 echo "Idxstats successfully created."
23
24
25
26