Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
utils.h
Go to the documentation of this file.
1 #ifndef __gamgee_utils__
2 #define __gamgee_utils__
3 
4 #include <string>
5 #include <memory>
6 #include <vector>
7 
8 namespace gamgee {
9 
16 namespace utils {
17 
23 std::string reverse_complement(const std::string& sequence);
24 
30 std::string complement(const std::string& sequence);
31 
37 std::string complement(std::string& sequence);
38 
44 char complement (const char base);
45 
50 template<typename T, typename... Args>
51 std::unique_ptr<T> make_unique(Args&&... args);
52 
59 std::vector<std::string> hts_string_array_to_vector(const char * const * const string_array, const uint32_t array_size);
60 
61 
62 } // end utils namespace
63 } // end gamgee namespace
64 
65 #endif
std::string reverse_complement(const std::string &sequence)
calculates the reverse complement of a sequence
Definition: utils.cpp:46
std::string complement(std::string &sequence)
calculates the complement of a sequence in-place
Definition: utils.cpp:34
std::vector< std::string > hts_string_array_to_vector(const char *const *const string_array, const uint32_t array_size)
converts an array of c-strings into a vector
Definition: utils.cpp:58
std::unique_ptr< T > make_unique(Args &&...args)
herb sutter's implementation of make unique
Definition: utils.cpp:54