btllib
Loading...
Searching...
No Matches
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
typeSequence type (DNA, RNA, or protein)
maskingIf 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
lengthSequence length

◆ set_seed()

void btllib::RandSeq::set_seed ( unsigned long seed)

Set the seed of the random string generator

Parameters
seedRandom generator seed

The documentation for this class was generated from the following file: