bioplus.wrappers

bioplus.wrappers.random_seq(n=1, GC=0.5)[source]

random_seq provides a random nucleotide (A, T, G, or C). You may optionally provide n, a positive integer, which will cause random_seq to return a string of n nucleotides. You may also optionally provide GC, the probability of encountering a G or C, which must be on the closed interval [0,1]. The probability of encountering an A or T is calculated as 1 - GC.

bioplus.wrappers.random_seq_generator(n=1, GC=0.5)[source]

random_seq_generator acts like random_seq, but returns a generator that returns the nucleotides one by one

Previous topic

bioplus.tabfile

This Page