Functions and structures related to sequences of IUPAC degenerate base symbols.
More...
|
template<class ForwardIt1 , class ForwardIt2 , class URBG > |
ForwardIt2 | crossover (ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, URBG &&g) |
| Exchanges elements between two ranges, starting at a random offset. More...
|
|
template<class ForwardIt1 , class ForwardIt2 , class Size , class URBG > |
void | crossover_n (ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, Size count, URBG &&g) |
| Exchanges elements between two ranges multiple times, starting at a random offset each time. More...
|
|
template<class ForwardIt > |
orf< ForwardIt > | find_orf (ForwardIt first, ForwardIt last, const codon::table &table) |
| Searches a sequence for an open reading frame (ORF). More...
|
|
template<class ForwardIt , class UnaryOperation , class URBG > |
ForwardIt | mutate (ForwardIt first, ForwardIt last, UnaryOperation unary_op, URBG &&g) |
| Applies the given function to a randomly selected element in a range. More...
|
|
template<class ForwardIt , class Size , class UnaryOperation , class URBG > |
void | mutate_n (ForwardIt first, ForwardIt last, Size count, UnaryOperation unary_op, URBG &&g) |
| Applies the given function to a random selection of elements in a range. More...
|
|
template<class ForwardIt1 , class ForwardIt2 > |
ForwardIt1 | search (ForwardIt1 first, ForwardIt1 last, ForwardIt2 s_first, ForwardIt2 s_last, typename std::iterator_traits< ForwardIt1 >::difference_type stride) |
| Searches a sequence of IUPAC base symbols for a pattern matching a search string of IUPAC degenerate base symbols. More...
|
|
template<class InputIt , class OutputIt > |
OutputIt | transcribe (InputIt first, InputIt last, OutputIt d_first) |
| Transcribes a sequence of IUPAC base symbols between DNA and RNA, swapping T for U or U for T . More...
|
|
template<class InputIt , class OutputIt > |
OutputIt | translate (InputIt first, InputIt last, OutputIt d_first, const codon::table &table) |
| Translates a sequence of codons into amino acids. More...
|
|
Functions and structures related to sequences of IUPAC degenerate base symbols.
template<class ForwardIt1 , class ForwardIt2 , class URBG >
ForwardIt2 genetics::sequence::crossover |
( |
ForwardIt1 |
first1, |
|
|
ForwardIt1 |
last1, |
|
|
ForwardIt2 |
first2, |
|
|
URBG && |
g |
|
) |
| |
Exchanges elements between two ranges, starting at a random offset.
- Parameters
-
first1,last1 | First range of elements to crossover. |
first2 | Beginning of the second range of elements to crossover. |
g | Uniform random bit generator. |
- Returns
- Iterator to the start of the crossover in the second range.
Definition at line 164 of file sequence.hpp.
template<class ForwardIt1 , class ForwardIt2 , class Size , class URBG >
void genetics::sequence::crossover_n |
( |
ForwardIt1 |
first1, |
|
|
ForwardIt1 |
last1, |
|
|
ForwardIt2 |
first2, |
|
|
Size |
count, |
|
|
URBG && |
g |
|
) |
| |
Exchanges elements between two ranges multiple times, starting at a random offset each time.
- Parameters
-
first1,last1 | First range of elements to crossover. |
first2 | Beginning of the second range of elements to crossover. |
count | Number of times to crossover. |
g | Uniform random bit generator. |
Definition at line 176 of file sequence.hpp.
template<class ForwardIt , class Size , class UnaryOperation , class URBG >
void genetics::sequence::mutate_n |
( |
ForwardIt |
first, |
|
|
ForwardIt |
last, |
|
|
Size |
count, |
|
|
UnaryOperation |
unary_op, |
|
|
URBG && |
g |
|
) |
| |
Applies the given function to a random selection of elements in a range.
- Parameters
-
first,last | Range of elements to mutate. |
count | Number of elements to mutate. |
unary_op | Unary operation function object that will be applied. |
g | Uniform random bit generator. |
Definition at line 262 of file sequence.hpp.