Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
chipseq_analysis
Commits
08d9f08a
Commit
08d9f08a
authored
5 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Fix parsing of options and spacing.
parent
54b9865d
1 merge request
!67
Resolve "Rename Plot profile to be consistent with naming"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/scripts/plot_profile.sh
+21
-21
21 additions, 21 deletions
workflow/scripts/plot_profile.sh
with
21 additions
and
21 deletions
workflow/scripts/plot_profile.sh
+
21
−
21
View file @
08d9f08a
...
@@ -18,15 +18,15 @@ raise()
...
@@ -18,15 +18,15 @@ raise()
}
}
check_tools
()
{
check_tools
()
{
raise
"
raise
"
Checking for required libraries and components on this system
Checking for required libraries and components on this system
"
"
deeptools
--version
&> version_deeptools.txt
deeptools
--version
&> version_deeptools.txt
if
[
$?
-gt
0
]
if
[
$?
-gt
0
]
then
then
raise
"Missing deeptools"
raise
"Missing deeptools"
return
1
return
1
fi
fi
}
}
compute_matrix
()
{
compute_matrix
()
{
...
@@ -34,13 +34,13 @@ compute_matrix() {
...
@@ -34,13 +34,13 @@ compute_matrix() {
Computing matrix on
${
1
}
using
${
2
}
Computing matrix on
${
1
}
using
${
2
}
"
"
computeMatrix reference-point
\
computeMatrix reference-point
\
--referencePoint
TSS
\
--referencePoint
TSS
\
-S
${
1
}
\
-S
${
1
}
\
-R
${
2
}
\
-R
${
2
}
\
--skipZeros
\
--skipZeros
\
-o
computeMatrix.gz
\
-o
computeMatrix.gz
\
-p
max/2
-p
max/2
if
[
$?
-gt
0
]
if
[
$?
-gt
0
]
then
then
...
@@ -54,8 +54,8 @@ plot_profile() {
...
@@ -54,8 +54,8 @@ plot_profile() {
Plotting profile
Plotting profile
"
"
plotProfile
-m
computeMatrix.gz
\
plotProfile
-m
computeMatrix.gz
\
-out
plotProfile.png
-out
plotProfile.png
if
[
$?
-gt
0
]
if
[
$?
-gt
0
]
then
then
...
@@ -69,7 +69,7 @@ run_main() {
...
@@ -69,7 +69,7 @@ run_main() {
# Parsing options
# Parsing options
OPTIND
=
1
# Reset OPTIND
OPTIND
=
1
# Reset OPTIND
while
getopts
:gh opt
while
getopts
:g
:
h opt
do
do
case
$opt
in
case
$opt
in
g
)
gtf
=
$OPTARG
;;
g
)
gtf
=
$OPTARG
;;
...
@@ -84,20 +84,20 @@ run_main() {
...
@@ -84,20 +84,20 @@ run_main() {
usage
usage
fi
fi
bws
=
$(
ls
*
.bw
)
bws
=
$(
ls
*
.bw
)
check_tools
||
exit
1
check_tools
||
exit
1
compute_matrix
"
${
bws
}
"
"
${
gtf
}
"
||
return
1
compute_matrix
"
${
bws
}
"
"
${
gtf
}
"
||
return
1
plot_profile
||
return
1
plot_profile
||
return
1
raise
"ALL COMPLETE"
raise
"ALL COMPLETE"
}
}
if
[[
"
${
BASH_SOURCE
[0]
}
"
==
"
${
0
}
"
]]
if
[[
"
${
BASH_SOURCE
[0]
}
"
==
"
${
0
}
"
]]
then
then
run_main
run_main
"
$@
"
if
[
$?
-gt
0
]
if
[
$?
-gt
0
]
then
then
exit
1
exit
1
...
...
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