diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/create_dataset.sh	Sun Nov 27 22:00:05 2022 +0000
@@ -0,0 +1,10 @@
+#!/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