btllib: btllib::RandSeq Class Reference

btllib

Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
btllib::RandSeq Class Reference

## Public Types
enum class | SeqType { DNA , RNA , PROTEIN }
enum class | Masking { NONE , SOFT , HARD }

## Public Member Functions
| RandSeq (SeqType type, Masking masking=Masking::NONE)
void | set_seed (unsigned long seed)
std::string | generate (size_t length)

## Constructor & Destructor Documentation

## ◆ 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.

## Member Function Documentation

## ◆ generate()

std::string btllib::RandSeq::generate | ( | size_t | length | ) |

Generate a new random sequence.

Parameters

  length | Sequence length

## ◆ 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:

- include/btllib/randseq.hpp