Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
chipseq_analysis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BICF
Astrocyte
chipseq_analysis
Commits
08d9f08a
Commit
08d9f08a
authored
Apr 17, 2020
by
Venkat Malladi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of options and spacing.
parent
54b9865d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
workflow/scripts/plot_profile.sh
workflow/scripts/plot_profile.sh
+21
-21
No files found.
workflow/scripts/plot_profile.sh
View file @
08d9f08a
...
...
@@ -18,15 +18,15 @@ raise()
}
check_tools
()
{
raise
"
raise
"
Checking for required libraries and components on this system
"
deeptools
--version
&> version_deeptools.txt
if
[
$?
-gt
0
]
then
raise
"Missing deeptools"
return
1
fi
deeptools
--version
&> version_deeptools.txt
if
[
$?
-gt
0
]
then
raise
"Missing deeptools"
return
1
fi
}
compute_matrix
()
{
...
...
@@ -34,13 +34,13 @@ compute_matrix() {
Computing matrix on
${
1
}
using
${
2
}
"
computeMatrix reference-point
\
--referencePoint
TSS
\
-S
${
1
}
\
-R
${
2
}
\
--skipZeros
\
-o
computeMatrix.gz
\
-p
max/2
computeMatrix reference-point
\
--referencePoint
TSS
\
-S
${
1
}
\
-R
${
2
}
\
--skipZeros
\
-o
computeMatrix.gz
\
-p
max/2
if
[
$?
-gt
0
]
then
...
...
@@ -54,8 +54,8 @@ plot_profile() {
Plotting profile
"
plotProfile
-m
computeMatrix.gz
\
-out
plotProfile.png
plotProfile
-m
computeMatrix.gz
\
-out
plotProfile.png
if
[
$?
-gt
0
]
then
...
...
@@ -69,7 +69,7 @@ run_main() {
# Parsing options
OPTIND
=
1
# Reset OPTIND
while
getopts
:gh opt
while
getopts
:g
:
h opt
do
case
$opt
in
g
)
gtf
=
$OPTARG
;;
...
...
@@ -84,20 +84,20 @@ run_main() {
usage
fi
bws
=
$(
ls
*
.bw
)
bws
=
$(
ls
*
.bw
)
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"
}
if
[[
"
${
BASH_SOURCE
[0]
}
"
==
"
${
0
}
"
]]
then
run_main
run_main
"
$@
"
if
[
$?
-gt
0
]
then
exit
1
...
...
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