Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProteinSequence ¶
ProteinSequence returns a random protein sequence as a string that have size length, starts with aminoacid M (Methionine) and finishes with * (stop codon). The random generator uses the seed provided as parameter.
Example ¶
// RandomProteinSequence builds a Protein Sequence by only passing through arguments a length and a seed that will be use to generate a randomly the sequence. The length needs to be greater than two because every sequence already have a start and stop codon. Seed makes this test deterministic. randomProtein, _ := ProteinSequence(15, 2) fmt.Println(randomProtein)
Output: MHHPAFRMFNTMYG*
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.