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
e9337301
Commit
e9337301
authored
14 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
Resetting the master from stupid little changes.
parent
025b18e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bamToBed/bamToBed.cpp
+12
-12
12 additions, 12 deletions
src/bamToBed/bamToBed.cpp
with
12 additions
and
12 deletions
src/bamToBed/bamToBed.cpp
+
12
−
12
View file @
e9337301
...
...
@@ -328,7 +328,7 @@ void PrintBed(const BamAlignment &bam, const RefVector &refs, bool useEditDista
else
if
(
useEditDistance
==
false
&&
useAlignmentScore
==
true
)
{
uint32_t
alignmentScore
;
if
(
bam
.
GetAlignmentScore
(
alignmentScore
))
{
printf
(
"%s
\t
%d
\t
%d
\t
\%s
\t
%
u
\t
%s
\n
"
,
refs
.
at
(
bam
.
RefID
).
RefName
.
c_str
(),
bam
.
Position
,
printf
(
"%s
\t
%d
\t
%d
\t
\%s
\t
%
d
\t
%s
\n
"
,
refs
.
at
(
bam
.
RefID
).
RefName
.
c_str
(),
bam
.
Position
,
alignmentEnd
,
name
.
c_str
(),
alignmentScore
,
strand
.
c_str
());
}
else
{
...
...
@@ -392,17 +392,17 @@ void PrintBed12(const BamAlignment &bam, const RefVector &refs, bool useEditDist
exit
(
1
);
}
}
else
if
(
useEditDistance
==
false
&&
useAlignmentScore
==
true
)
{
uint32_t
alignmentScore
;
if
(
bam
.
GetAlignmentScore
(
alignmentScore
))
{
printf
(
"%s
\t
%d
\t
%d
\t
\%s
\t
%uh
\t
%s
\n
"
,
refs
.
at
(
bam
.
RefID
).
RefName
.
c_str
(),
bam
.
Position
,
alignmentEnd
,
name
.
c_str
(),
alignmentScore
,
strand
.
c_str
());
}
else
{
cerr
<<
"The alignment score tag (AS) was not found in the BAM file. Please disable -as. Exiting
\n
"
;
exit
(
1
);
}
}
else
if
(
useEditDistance
==
false
&&
useAlignmentScore
==
true
)
{
uint32_t
alignmentScore
;
if
(
bam
.
GetAlignmentScore
(
alignmentScore
))
{
printf
(
"%s
\t
%d
\t
%d
\t
\%s
\t
%uh
\t
%s
\n
"
,
refs
.
at
(
bam
.
RefID
).
RefName
.
c_str
(),
bam
.
Position
,
alignmentEnd
,
name
.
c_str
(),
alignmentScore
,
strand
.
c_str
());
}
else
{
cerr
<<
"The alignment score tag (AS) was not found in the BAM file. Please disable -as. Exiting
\n
"
;
exit
(
1
);
}
}
// write the colors, etc.
printf
(
"%d
\t
%d
\t
%s
\t
%d
\t
"
,
bam
.
Position
,
alignmentEnd
,
color
.
c_str
(),
(
int
)
blockStarts
.
size
());
...
...
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