Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bedtools2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model 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
Show more breadcrumbs
R3
legacy
bedtools2
Commits
a60ae746
Commit
a60ae746
authored
10 years ago
by
arq5x
Browse files
Options
Downloads
Patches
Plain Diff
restore defaukt precision in groupby
parent
91928cf2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/groupBy/groupBy.cpp
+1
-1
1 addition, 1 deletion
src/groupBy/groupBy.cpp
test/groupBy/test-groupby.sh
+29
-0
29 additions, 0 deletions
test/groupBy/test-groupby.sh
with
30 additions
and
1 deletion
src/groupBy/groupBy.cpp
+
1
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
test/groupBy/test-groupby.sh
+
29
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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