view create_dataset.sh @ 0:4394f98e705e draft default tip

"planemo upload for repository https://github.com/Bierinformatik/miRNAture/tree/galaxy_add/Galaxy/miRNAture commit 47a893683a9445abddce77c28f43d098b62cf385"
author cavelandiah
date Sun, 27 Nov 2022 22:00:05 +0000
parents
children
line wrap: on
line source

#!/usr/bin/env bash

input=$1

dir=$2
mkdir $dir/uncompress
cp $input $dir/uncompress/data.gz
Dir_name=`tar -tf $dir/uncompress/data.gz | head -1 | cut -f1 -d"/" | sort | uniq`
tar -xf $dir/uncompress/data.gz --directory $dir/uncompress/
mv $dir/uncompress/${Dir_name} $dir/uncompress/Dataset