Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
legacy
bedtools2
Commits
0fa2515f
Commit
0fa2515f
authored
May 26, 2015
by
arq5x
Browse files
only set end to 1 if slop is negative and rolls off start of chrom
parent
e4955d31
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/slopBed/slopBed.cpp
View file @
0fa2515f
...
...
@@ -86,7 +86,11 @@ void BedSlop::AddSlop(BED &bed) {
if
(
((
int
)
bed
.
end
+
(
int
)
_leftSlop
)
<=
chromSize
)
bed
.
end
=
bed
.
end
+
(
int
)
_leftSlop
;
else
bed
.
end
=
chromSize
;
// if the _leftSlop is negative and pushes bed.end to be < 0, set to 1
if
(
(((
int
)
bed
.
end
+
(
int
)
_leftSlop
)
<=
0
)
&&
_leftSlop
<
0
)
bed
.
end
=
1
;
else
bed
.
end
=
chromSize
;
}
else
{
if
(
((
int
)
bed
.
start
-
(
int
)
_leftSlop
)
>=
0
)
...
...
@@ -97,7 +101,7 @@ void BedSlop::AddSlop(BED &bed) {
bed
.
end
=
bed
.
end
+
(
int
)
_rightSlop
;
else
// if the _rightSlop is negative and pushes bed.end to be < 0, set to 1
if
(
((
int
)
bed
.
end
+
(
int
)
_rightSlop
)
<=
0
)
if
(
((
(
int
)
bed
.
end
+
(
int
)
_rightSlop
)
<=
0
)
&&
_rightSlop
<
0
)
bed
.
end
=
1
;
else
bed
.
end
=
chromSize
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment