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
548bcae0
Commit
548bcae0
authored
10 years ago
by
Brent Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
add -m option to merge intervals
parent
3594e98a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/fisher/fisherMain.cpp
+4
-1
4 additions, 1 deletion
src/fisher/fisherMain.cpp
src/utils/Contexts/ContextFisher.cpp
+4
-0
4 additions, 0 deletions
src/utils/Contexts/ContextFisher.cpp
with
8 additions
and
1 deletion
src/fisher/fisherMain.cpp
+
4
−
1
View file @
548bcae0
...
...
@@ -34,7 +34,7 @@ void fisher_help(void) {
cerr
<<
"Summary: Calculate Fisher statistic b/w two feature files."
<<
endl
<<
endl
;
cerr
<<
"Usage: "
<<
PROGRAM_NAME
<<
" [OPTIONS] -a <bed/gff/vcf> -b <bed/gff/vcf> -
c
<
possible counts
>"
<<
endl
<<
endl
;
cerr
<<
"Usage: "
<<
PROGRAM_NAME
<<
" [OPTIONS] -a <bed/gff/vcf> -b <bed/gff/vcf> -
g
<
genome file
>"
<<
endl
<<
endl
;
cerr
<<
"Options: "
<<
endl
;
...
...
@@ -43,6 +43,9 @@ void fisher_help(void) {
cerr
<<
"
\t\t
- Default is 1E-9 (i.e., 1bp)."
<<
endl
;
cerr
<<
"
\t\t
- FLOAT (e.g. 0.50)"
<<
endl
<<
endl
;
cerr
<<
"
\t
-m
\t
"
<<
"Merge overlapping intervals before"
<<
endl
;
cerr
<<
"
\t\t
- looking at overlap."
<<
endl
<<
endl
;
cerr
<<
"
\t
-r
\t
"
<<
"Require that the fraction overlap be reciprocal for A and B."
<<
endl
;
cerr
<<
"
\t\t
- In other words, if -f is 0.90 and -r is used, this requires"
<<
endl
;
cerr
<<
"
\t\t
that B overlap 90% of A and A _also_ overlaps 90% of B."
<<
endl
<<
endl
;
...
...
This diff is collapsed.
Click to expand it.
src/utils/Contexts/ContextFisher.cpp
+
4
−
0
View file @
548bcae0
...
...
@@ -43,6 +43,10 @@ bool ContextFisher::parseCmdArgs(int argc, char **argv, int skipFirstArgs)
if
(
strcmp
(
_argv
[
_i
],
"-g"
)
==
0
)
{
if
(
!
handle_g
())
return
false
;
}
if
(
strcmp
(
_argv
[
_i
],
"-m"
)
==
0
)
{
markUsed
(
_i
-
_skipFirstArgs
);
setUseMergedIntervals
(
true
);
}
}
return
ContextIntersect
::
parseCmdArgs
(
argc
,
argv
,
_skipFirstArgs
);
}
...
...
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