-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decompress outputs into
outputfolder
(#199)
* Decompress outputs into `outputfolder` Close: #175 * Ask for one CPU locally * Move decompressed files into `outputfolder` * Simplify README.md
- Loading branch information
Showing
3 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Extract the arguments | ||
workflow_id=$1 | ||
outputfolder=$2 | ||
|
||
# Sanity check: these are the files in the current directory | ||
ls -lh | ||
|
||
# Make input filename | ||
# This file will be used to store the input of the workflow | ||
input_filename=$workflow_id-combined_output.tar.gz | ||
|
||
# Make a temporary directory for decompressed files | ||
mkdir decompressed | ||
|
||
# Untar the output file into the .h5 files | ||
tar -xzf $input_filename -C decompressed | ||
|
||
# Check the output | ||
echo "Checking the output" | ||
ls -lh | ||
|
||
# Move the outputs | ||
mv decompressed/* $outputfolder/ | ||
|
||
# Goodbye | ||
echo "Done. Exiting." | ||
exit 0 |