|
enum class | SeqType { DNA
, RNA
, PROTEIN
} |
|
enum class | Masking { NONE
, SOFT
, HARD
} |
|
|
| RandSeq (SeqType type, Masking masking=Masking::NONE) |
|
void | set_seed (unsigned long seed) |
|
std::string | generate (size_t length) |
|
◆ RandSeq()
btllib::RandSeq::RandSeq |
( |
SeqType | type, |
|
|
Masking | masking = Masking::NONE ) |
Construct a random sequence generator object.
- Parameters
-
type | Sequence type (DNA, RNA, or protein) |
masking | If set to SOFT, lower-case values will also be generated. If HARD, the sequences will include N/X positions. |
◆ generate()
std::string btllib::RandSeq::generate |
( |
size_t | length | ) |
|
Generate a new random sequence.
- Parameters
-
◆ set_seed()
void btllib::RandSeq::set_seed |
( |
unsigned long | seed | ) |
|
Set the seed of the random string generator
- Parameters
-
seed | Random generator seed |
The documentation for this class was generated from the following file: