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
a60ae746
Commit
a60ae746
authored
Nov 18, 2014
by
arq5x
Browse files
restore defaukt precision in groupby
parent
91928cf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/groupBy/groupBy.cpp
View file @
a60ae746
...
...
@@ -82,7 +82,7 @@ int groupby_main(int argc, char* argv[]) {
bool
printHeaderLine
=
false
;
bool
InputHaveHeaderLine
=
false
;
bool
ignoreCase
=
false
;
int
precision
=
5
;
int
precision
=
21
;
// check to see if we should print out some help
if
(
argc
<=
1
)
showHelp
=
true
;
...
...
test/groupBy/test-groupby.sh
View file @
a60ae746
...
...
@@ -11,6 +11,15 @@ check(){
fi
}
checkfile
()
{
if
diff
$1
$2
;
then
echo
ok
else
echo
fail
fi
}
check
$lines_a
$lines_b
check
$lines_a
$lines_c
check
$lines_a
$lines_d
...
...
@@ -28,3 +37,23 @@ B=$($BT groupby -i values3.header.bed -g 1,2,3 -c 4 -o concat -header | head -n
if
[
"
$B
"
!=
$'#chrom
\t
start
\t
end
\t
concat(A)'
]
;
then
echo
"fail groupby"
fi
###########################################################
# Test precision
############################################################
echo
" groupby.t01...
\c
"
echo
\
"chr1 11168000 11168003 CALLABLE"
>
exp
$BT
groupby
-i
test.bed
-g
1,4
-c
1,2,3,4
-ops
first,first,max,first |
cut
-f
3-6
>
obs
checkfile obs exp
###########################################################
# Test precision
############################################################
echo
" groupby.t02...
\c
"
echo
\
"chr1 11168000 1.1168e+07 CALLABLE"
>
exp
$BT
groupby
-i
test.bed
-g
1,4
-c
1,2,3,4
-ops
first,first,max,first
-prec
5 |
cut
-f
3-6
>
obs
checkfile obs exp
rm
obs exp
\ No newline at end of file
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