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
bd91cd68
Commit
bd91cd68
authored
14 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
windowBed supports -ubam.
parent
1cfd5315
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/windowBed/windowBed.cpp
+13
-11
13 additions, 11 deletions
src/windowBed/windowBed.cpp
src/windowBed/windowBed.h
+4
-2
4 additions, 2 deletions
src/windowBed/windowBed.h
with
17 additions
and
13 deletions
src/windowBed/windowBed.cpp
+
13
−
11
View file @
bd91cd68
...
...
@@ -16,8 +16,9 @@
/*
Constructor
*/
BedWindow
::
BedWindow
(
string
bedAFile
,
string
bedBFile
,
int
leftSlop
,
int
rightSlop
,
bool
anyHit
,
bool
noHit
,
bool
writeCount
,
bool
strandWindows
,
bool
matchOnStrand
,
bool
bamInput
,
bool
bamOutput
)
{
BedWindow
::
BedWindow
(
string
bedAFile
,
string
bedBFile
,
int
leftSlop
,
int
rightSlop
,
bool
anyHit
,
bool
noHit
,
bool
writeCount
,
bool
strandWindows
,
bool
matchOnStrand
,
bool
bamInput
,
bool
bamOutput
,
bool
isUncompressedBam
)
{
_bedAFile
=
bedAFile
;
_bedBFile
=
bedBFile
;
...
...
@@ -25,14 +26,15 @@ BedWindow::BedWindow(string bedAFile, string bedBFile, int leftSlop, int rightSl
_leftSlop
=
leftSlop
;
_rightSlop
=
rightSlop
;
_anyHit
=
anyHit
;
_noHit
=
noHit
;
_writeCount
=
writeCount
;
_strandWindows
=
strandWindows
;
_matchOnStrand
=
matchOnStrand
;
_bamInput
=
bamInput
;
_bamOutput
=
bamOutput
;
_anyHit
=
anyHit
;
_noHit
=
noHit
;
_writeCount
=
writeCount
;
_strandWindows
=
strandWindows
;
_matchOnStrand
=
matchOnStrand
;
_bamInput
=
bamInput
;
_bamOutput
=
bamOutput
;
_isUncompressedBam
=
isUncompressedBam
;
_bedA
=
new
BedFile
(
bedAFile
);
_bedB
=
new
BedFile
(
bedBFile
);
...
...
@@ -169,7 +171,7 @@ void BedWindow::WindowIntersectBam(string bamFile) {
// open a BAM output to stdout if we are writing BAM
if
(
_bamOutput
==
true
)
{
// open our BAM writer
writer
.
Open
(
"stdout"
,
header
,
refs
);
writer
.
Open
(
"stdout"
,
header
,
refs
,
_isUncompressedBam
);
}
vector
<
BED
>
hits
;
// vector of potential hits
...
...
This diff is collapsed.
Click to expand it.
src/windowBed/windowBed.h
+
4
−
2
View file @
bd91cd68
...
...
@@ -32,8 +32,9 @@ class BedWindow {
public:
// constructor
BedWindow
(
string
bedAFile
,
string
bedBFile
,
int
leftSlop
,
int
rightSlop
,
bool
anyHit
,
bool
noHit
,
bool
writeCount
,
bool
strandWindows
,
bool
matchOnStrand
,
bool
bamInput
,
bool
bamOutput
);
BedWindow
(
string
bedAFile
,
string
bedBFile
,
int
leftSlop
,
int
rightSlop
,
bool
anyHit
,
bool
noHit
,
bool
writeCount
,
bool
strandWindows
,
bool
matchOnStrand
,
bool
bamInput
,
bool
bamOutput
,
bool
isUncompressedBam
);
// destructor
~
BedWindow
(
void
);
...
...
@@ -51,6 +52,7 @@ private:
bool
_matchOnStrand
;
bool
_bamInput
;
bool
_bamOutput
;
bool
_isUncompressedBam
;
// instance of a bed file class.
BedFile
*
_bedA
,
*
_bedB
;
...
...
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