Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
legacy
bedtools2
Commits
66b1d64f
Commit
66b1d64f
authored
Feb 21, 2015
by
jayhesselberth
Browse files
test stubs; ``-n`` is excepting now
parent
d98c7f8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/windowMaker/windowMakerMain.cpp
View file @
66b1d64f
...
...
@@ -98,9 +98,6 @@ int windowmaker_main(int argc, char* argv[]) {
i
++
;
}
}
else
if
(
PARAMETER_CHECK
(
"-reverse"
,
8
,
parameterLength
))
{
reverse
=
true
;
}
else
if
(
PARAMETER_CHECK
(
"-i"
,
2
,
parameterLength
))
{
if
((
i
+
1
)
<
argc
)
{
if
(
strcmp
(
argv
[
i
+
1
],
"winnum"
)
==
0
)
...
...
@@ -116,6 +113,9 @@ int windowmaker_main(int argc, char* argv[]) {
i
++
;
}
}
else
if
(
PARAMETER_CHECK
(
"-reverse"
,
8
,
parameterLength
))
{
reverse
=
true
;
}
else
{
cerr
<<
endl
<<
"*****ERROR: Unrecognized parameter: "
<<
argv
[
i
]
<<
" *****"
<<
endl
<<
endl
;
showHelp
=
true
;
...
...
test/makewindows/test-makewindows.sh
View file @
66b1d64f
...
...
@@ -11,11 +11,35 @@ check()
###########################################################
# Test forward
and reverse
window numbering
# Test forward window numbering
############################################################
echo
" makewindows.t01...
\c
"
echo
echo
\
"chr5 60000 65000 1
chr5 65000 70000 2
chr5 73000 78000 1
chr5 78000 83000 2
chr5 83000 88000 3
chr5 88000 90000 4
chr5 100000 101000 1"
>
exp
$BT
makewindows
-b
input.bed
-w
5000
-i
winnum
>
obs
check obs exp
rm
obs exp
###########################################################
# Test reverse window numbering
############################################################
echo
" makewindows.t02...
\c
"
echo
\
"chr5 60000 65000 2
chr5 65000 70000 1
chr5 73000 78000 4
chr5 78000 83000 3
chr5 83000 88000 2
chr5 88000 90000 1
chr5 100000 101000 1"
>
exp
$BT
makewindows
-b
input.bed
-reverse
-w
5000
-i
winnum
>
obs
$BT
makewindows
-b
input.bed
-w
500
-i
winnum
>
obs
check obs exp
rm
obs exp
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