Mercurial > repos > davidvanzessen > baseline_bayesian_estimation
comparison wrapper.sh @ 11:e160483ee900 draft
Uploaded
author | davidvanzessen |
---|---|
date | Thu, 25 Jun 2015 06:12:24 -0400 |
parents | 525b58fc8622 |
children | 2d08a1353145 |
comparison
equal
deleted
inserted
replaced
10:82016fd934c8 | 11:e160483ee900 |
---|---|
37 count=0 | 37 count=0 |
38 for current in ${inputs[@]} | 38 for current in ${inputs[@]} |
39 do | 39 do |
40 f=$(file $current) | 40 f=$(file $current) |
41 zipType="Zip archive" | 41 zipType="Zip archive" |
42 if [[ "$f" == *"$zipType"* ]] | 42 if [[ "$f" == *"$zipType"* ]] || [[ "$f" == *"XZ compressed data"* ]] |
43 then | 43 then |
44 id=${IDs[$count]} | 44 id=${IDs[$count]} |
45 echo "id=$id" | 45 echo "id=$id" |
46 unzip $current -d $PWD/$id/ >> $PWD/unziplog.log | 46 if [[ "$f" == *"Zip archive"* ]] ; then |
47 echo "Zip archive" | |
48 echo "unzip $input -d $PWD/files/" | |
49 unzip $current -d "$PWD/$id/" | |
50 elif [[ "$f" == *"XZ compressed data"* ]] ; then | |
51 echo "ZX archive" | |
52 echo "tar -xJf $input -C $PWD/files/" | |
53 mkdir -p "$PWD/$id/files" | |
54 tar -xJf $current -C "$PWD/$id/files/" | |
55 fi | |
47 summaryfile="$PWD/summary_${id}.txt" | 56 summaryfile="$PWD/summary_${id}.txt" |
48 gappedfile="$PWD/gappednt_${id}.txt" | 57 gappedfile="$PWD/gappednt_${id}.txt" |
49 filtered="$PWD/filtered_${id}.txt" | 58 filtered="$PWD/filtered_${id}.txt" |
50 filecount=`ls -l $PWD/$id/ | wc -l` | 59 filecount=`ls -l $PWD/$id/ | wc -l` |
51 if [[ "$filecount" -eq "2" ]] | 60 if [[ "$filecount" -eq "2" ]] |