Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cellranger_mkfastq
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
BICF
Astrocyte
cellranger_mkfastq
Commits
010ddbe9
Commit
010ddbe9
authored
5 years ago
by
Jeremy Mathews
Browse files
Options
Downloads
Patches
Plain Diff
Move untarBCl to Script
parent
115a3946
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!41
Develop
,
!35
Resolve "Move untarBCL code into a bash script w/ file folder check"
,
!34
Resolve "Move untarBCL code into a bash script"
,
!33
Move untarBCl to Script
Pipeline
#3975
passed with stages
in 1 minute and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+1
-14
1 addition, 14 deletions
workflow/main.nf
workflow/scripts/untarBCL.sh
+34
-0
34 additions, 0 deletions
workflow/scripts/untarBCL.sh
with
35 additions
and
14 deletions
workflow/main.nf
+
1
−
14
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"
"""
}
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/untarBCL.sh
0 → 100644
+
34
−
0
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
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment