Skip to content

Commit c72e5c9

Browse files
committed
[chainerutils] Rename create_simple_overlap to create_overlap
1 parent 9f75411 commit c72e5c9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cudamapper/src/chainer_utils.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct OverlapToNumResiduesOp
3838
}
3939
};
4040

41-
__host__ __device__ Overlap create_simple_overlap(const Anchor& start, const Anchor& end, const int32_t num_anchors)
41+
__host__ __device__ Overlap create_overlap(const Anchor& start, const Anchor& end, const int32_t num_anchors)
4242
{
4343
Overlap overlap;
4444
overlap.num_residues_ = num_anchors;
@@ -96,7 +96,7 @@ __global__ void backtrace_anchors_to_overlaps(const Anchor* const anchors,
9696
index = predecessors[index];
9797
}
9898
Anchor first_anchor = anchors[first_index];
99-
overlaps[i] = create_simple_overlap(first_anchor, final_anchor, num_anchors_in_chain);
99+
overlaps[i] = create_overlap(first_anchor, final_anchor, num_anchors_in_chain);
100100
}
101101
else
102102
{

cudamapper/src/chainer_utils.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace chainerutils
3636
/// \param start The first anchor in the chain.
3737
/// \param end The last anchor in the chain.
3838
/// \param num_anchors The total number of anchors in the chain.
39-
__host__ __device__ Overlap create_simple_overlap(const Anchor& start,
39+
__host__ __device__ Overlap create_overlap(const Anchor& start,
4040
const Anchor& end,
4141
const int32_t num_anchors);
4242

cudamapper/tests/Test_CudamapperChainerUtils.cu

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace genomeworks
3232
namespace cudamapper
3333
{
3434

35-
TEST(TestChainerUtils, Create_Simple_Overlap_Tests)
35+
TEST(TestChainerUtils, Create_Overlap_Tests)
3636
{
3737
Anchor a;
3838
a.query_read_id_ = 12;
@@ -46,7 +46,7 @@ TEST(TestChainerUtils, Create_Simple_Overlap_Tests)
4646
b.target_read_id_ = 46;
4747
b.target_position_in_read_ = 20400;
4848

49-
Overlap p_ab = chainerutils::create_simple_overlap(a, b, 12);
49+
Overlap p_ab = chainerutils::create_overlap(a, b, 12);
5050
ASSERT_EQ(p_ab.query_read_id_, static_cast<uint32_t>(12));
5151
ASSERT_EQ(p_ab.target_read_id_, 46);
5252
ASSERT_EQ(p_ab.query_start_position_in_read_, 130);
@@ -61,7 +61,7 @@ TEST(TestChainerUtils, Create_Simple_Overlap_Tests)
6161
c.target_read_id_ = 46;
6262
c.target_position_in_read_ = 16000;
6363

64-
Overlap p_bc = chainerutils::create_simple_overlap(b, c, 22);
64+
Overlap p_bc = chainerutils::create_overlap(b, c, 22);
6565
ASSERT_EQ(p_bc.target_start_position_in_read_, 16000);
6666
ASSERT_EQ(p_bc.target_end_position_in_read_, 20400);
6767
ASSERT_EQ(static_cast<char>(p_bc.relative_strand), static_cast<char>(RelativeStrand::Reverse));
@@ -86,15 +86,15 @@ TEST(TestChainerUtils, Anchor_Chain_Extraction_Tests)
8686
b.target_read_id_ = 46;
8787
b.target_position_in_read_ = 20400;
8888

89-
Overlap p_ab = chainerutils::create_simple_overlap(a, b, 2);
89+
Overlap p_ab = chainerutils::create_overlap(a, b, 2);
9090

9191
Anchor c;
9292
c.query_read_id_ = 12;
9393
c.query_position_in_read_ = 15000;
9494
c.target_read_id_ = 46;
9595
c.target_position_in_read_ = 16000;
9696

97-
Overlap p_bc = chainerutils::create_simple_overlap(b, c, 2);
97+
Overlap p_bc = chainerutils::create_overlap(b, c, 2);
9898

9999
std::vector<Anchor> anchors;
100100
anchors.push_back(a);

0 commit comments

Comments
 (0)