Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
BICF
Astrocyte
cellranger_mkfastq
Commits
010ddbe9
Commit
010ddbe9
authored
May 24, 2019
by
Jeremy Mathews
Browse files
Move untarBCl to Script
parent
115a3946
Pipeline
#3975
passed with stages
in 1 minute and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
workflow/main.nf
View file @
010ddbe9
...
...
@@ -60,20 +60,7 @@ process untarBCL {
"""
hostname
ulimit -a
folder=\$(tar -tf "$tar" | grep -o "^[^/]*/\$")
folder1=`echo "\$folder" | tr -d ' '`
if [ "\$folder" != "\$folder1" ]
then echo "Error: Spaces found in BCL Directory Path"
echo "\$folder"
exit 21
fi
name=`echo "${tar}" | rev | cut -f1 -d '.' | rev`;
if [ "\${name}" == "gz" ];
then tar -xvf "$tar" -I pigz;
else tar -xvf "$tar";
fi;
bash "$baseDir/scripts/untarBCL.sh" -t "$tar"
"""
}
...
...
workflow/scripts/untarBCL.sh
0 → 100644
View file @
010ddbe9
#!/bin/bash
#untarBCL.sh
usage
()
{
echo
"-t --tar file"
exit
1
}
OPTIND
=
1
while
getopts
:t: opt
do
case
$opt
in
t
)
tar
=
$OPTARG
;;
esac
done
shift
$((
$OPTIND
-
1
))
;
echo
"This Line"
folder
=
$(
tar
-tf
'$tar'
|
grep
-o
"^[^/]*/
\$
"
)
;
folder1
=
`
echo
"
$folder
"
|
tr
-d
' '
`
;
if
[
"
$folder
"
!=
"
$folder1
"
]
;
then
echo
"Error: Spaces found in BCL Directory Path"
;
echo
"
$folder
"
;
exit
21
;
fi
;
name
=
`
echo
"
${
tar
}
"
| rev |
cut
-f1
-d
'.'
| rev
`
;
if
[
"
${
name
}
"
==
"gz"
]
;
then
tar
-xvf
"
$tar
"
-I
pigz
;
else
tar
-xvf
"
$tar
"
;
fi
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment