btllib
 All Classes Namespaces Functions Variables
Public Types | Public Member Functions | List of all members
btllib::RandSeq Class Reference

Public Types

enum  SeqType { DNA, RNA, PROTEIN }
 
enum  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

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

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

Generate a new random sequence.

Parameters
lengthSequence length
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: