Mercurial > repos > davidvanzessen > baseline_bayesian_estimation
changeset 11:e160483ee900 draft
Uploaded
author | davidvanzessen |
---|---|
date | Thu, 25 Jun 2015 06:12:24 -0400 |
parents | 82016fd934c8 |
children | 44209adaca42 |
files | wrapper.sh |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/wrapper.sh Thu Jun 25 06:12:17 2015 -0400 +++ b/wrapper.sh Thu Jun 25 06:12:24 2015 -0400 @@ -39,11 +39,20 @@ do f=$(file $current) zipType="Zip archive" - if [[ "$f" == *"$zipType"* ]] + if [[ "$f" == *"$zipType"* ]] || [[ "$f" == *"XZ compressed data"* ]] then id=${IDs[$count]} echo "id=$id" - unzip $current -d $PWD/$id/ >> $PWD/unziplog.log + if [[ "$f" == *"Zip archive"* ]] ; then + echo "Zip archive" + echo "unzip $input -d $PWD/files/" + unzip $current -d "$PWD/$id/" + elif [[ "$f" == *"XZ compressed data"* ]] ; then + echo "ZX archive" + echo "tar -xJf $input -C $PWD/files/" + mkdir -p "$PWD/$id/files" + tar -xJf $current -C "$PWD/$id/files/" + fi summaryfile="$PWD/summary_${id}.txt" gappedfile="$PWD/gappednt_${id}.txt" filtered="$PWD/filtered_${id}.txt"