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
f98028d5
Commit
f98028d5
authored
13 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
makefile tweak
parent
9dda8b7f
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
Makefile
+2
-0
2 additions, 0 deletions
Makefile
src/bedtools.cpp
+72
-0
72 additions, 0 deletions
src/bedtools.cpp
with
74 additions
and
0 deletions
Makefile
+
2
−
0
View file @
f98028d5
...
...
@@ -78,6 +78,8 @@ all:
echo
""
;
\
done
echo
"- Building main bedtools binary."
.PHONY
:
all
...
...
This diff is collapsed.
Click to expand it.
src/bedtools.cpp
0 → 100644
+
72
−
0
View file @
f98028d5
/*****************************************************************************
bedtools.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 license.
******************************************************************************/
#include
<vector>
#include
<algorithm>
// for swap()
#include
<iostream>
#include
<fstream>
#include
<stdlib.h>
using
namespace
std
;
// define our program name
#define PROGRAM_NAME "bedtools"
// define our parameter checking macro
#define PARAMETER_CHECK(param, paramLen, actualLen) (strncmp(argv[i], param, min(actualLen, paramLen))== 0) && (actualLen == paramLen)
int
intersect_main
(
int
argc
,
char
*
argv
[]);
int
coverage_main
(
int
argc
,
char
*
argv
[]);
int
merge_main
(
int
argc
,
char
*
argv
[]);
int
substract_main
(
int
argc
,
char
*
argv
[]);
static
int
help
()
{
cerr
<<
"
\n
"
;
cerr
<<
"Program: "
<<
PROGRAM_NAME
<<
" (Tools for genome arithmetic.)
\n
"
;
cerr
<<
"Version: "
<<
"2.15.5"
<<
"
\n
"
;
cerr
<<
"Author: "
<<
"Aaron Quinlan (aaronquinlan@gmail.com)"
<<
"
\n\n
"
;
cerr
<<
"Usage: bedtools <tool> [options]
\n
"
;
cerr
<<
"
\n
-Genome arithmetic tools:
\n
"
;
cerr
<<
" intersect Find overlapping/intersecting intervals b/w two files.
\n
"
;
cerr
<<
" coverage Compute the coverage of one set of intervals over another.
\n
"
;
cerr
<<
" merge Combine overlapping or nearby intervals into a single interval.
\n
"
;
cerr
<<
" subtract Remove intervals based on overlaps b/w two files.
\n
"
;
cerr
<<
"
\n
-Format conversion tools:
\n
"
;
cerr
<<
" intersect Find overlapping/intersecting intervals b/w two files.
\n
"
;
cerr
<<
"
\n
-Fasta tools:
\n
"
;
cerr
<<
" intersect Find overlapping/intersecting intervals b/w two files.
\n
"
;
cerr
<<
"
\n
"
;
return
1
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
// make sure the user at least entered a sub_command
if
(
argc
<
2
)
return
help
();
// spawn the proper tool.
if
(
strcmp
(
argv
[
1
],
"intersect"
)
==
0
)
return
intersect_main
(
argc
-
1
,
argv
+
1
);
else
if
(
strcmp
(
argv
[
1
],
"coverage"
)
==
0
)
return
coverage_main
(
argc
-
1
,
argv
+
1
);
else
if
(
strcmp
(
argv
[
1
],
"merge"
)
==
0
)
return
merge_main
(
argc
-
1
,
argv
+
1
);
else
if
(
strcmp
(
argv
[
1
],
"subtract"
)
==
0
)
return
subtract_main
(
argc
-
1
,
argv
+
1
);
else
{
fprintf
(
stderr
,
"[main] unrecognized command '%s'
\n
"
,
argv
[
1
]);
return
1
;
}
return
0
;
}
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