generated from seqan/app-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from smehringer/minor_things
[MISC] Reduce complexity of insert_into_ibf.
- Loading branch information
Showing
8 changed files
with
73 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// -------------------------------------------------------------------------------------------------- | ||
// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin | ||
// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik | ||
// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License | ||
// shipped with this file and also available at: https://github.com/seqan/raptor/blob/main/LICENSE.md | ||
// -------------------------------------------------------------------------------------------------- | ||
|
||
/*!\file | ||
* \brief Provides raptor::hibf::update_parent_kmers. | ||
* \author Svenja Mehringer <svenja.mehringer AT fu-berlin.de> | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <robin_hood.h> | ||
|
||
#include <raptor/argument_parsing/timer.hpp> | ||
|
||
namespace raptor::hibf | ||
{ | ||
|
||
void update_parent_kmers(robin_hood::unordered_flat_set<size_t> & parent_kmers, | ||
robin_hood::unordered_flat_set<size_t> const & kmers, | ||
timer<concurrent::yes> & merge_kmers_timer); | ||
|
||
} // namespace raptor::hibf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// -------------------------------------------------------------------------------------------------- | ||
// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin | ||
// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik | ||
// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License | ||
// shipped with this file and also available at: https://github.com/seqan/raptor/blob/main/LICENSE.md | ||
// -------------------------------------------------------------------------------------------------- | ||
|
||
/*!\file | ||
* \brief Implements raptor::hibf::update_parent_kmers. | ||
* \author Svenja Mehringer <svenja.mehringer AT fu-berlin.de> | ||
*/ | ||
|
||
#include <raptor/build/hibf/update_parent_kmers.hpp> | ||
|
||
namespace raptor::hibf | ||
{ | ||
|
||
void update_parent_kmers(robin_hood::unordered_flat_set<size_t> & parent_kmers, | ||
robin_hood::unordered_flat_set<size_t> const & kmers, | ||
timer<concurrent::yes> & merge_kmers_timer) | ||
{ | ||
timer<concurrent::no> local_merge_kmers_timer{}; | ||
local_merge_kmers_timer.start(); | ||
parent_kmers.insert(kmers.begin(), kmers.end()); | ||
local_merge_kmers_timer.stop(); | ||
merge_kmers_timer += local_merge_kmers_timer; | ||
} | ||
|
||
} // namespace raptor::hibf |
22d4edf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
raptor – ./
seqan-raptor.vercel.app
raptor-git-main-seqan.vercel.app
raptor-seqan.vercel.app