Skip to content

Commit 8f93887

Browse files
committed
Merge branch 'add_pair_read_name'
2 parents ca61d4e + 95ffc02 commit 8f93887

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/lumpy/SV_Pair.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ SV_Pair(const BamAlignment &bam_a,
5252
else
5353
min_mapping_quality = bam_b.MapQuality;
5454

55+
read_id = bam_a.Name;
56+
5557
struct interval tmp_a, tmp_b;
5658
tmp_a.start = bam_a.Position;
5759
tmp_a.end = bam_a.GetEndPosition(false, false) - 1;
@@ -341,6 +343,7 @@ void
341343
SV_Pair::
342344
print_evidence()
343345
{
346+
cout << read_id << "\t";
344347
print_bedpe(0);
345348
}
346349
//}}}

src/lumpy/SV_Pair.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class SV_Pair: public SV_Evidence
6161
struct interval read_r;
6262
bool read_l_is_split, read_r_is_split;
6363
SV_PairReader *reader;
64+
std::string read_id;
6465

6566

6667
SV_Pair(const BamAlignment &bam_a,

0 commit comments

Comments
 (0)