Click or drag to resize
Genome Class
The Genome class provides static methods for compressing and expanding a genomic sequence using a 2-bit code.
Inheritance Hierarchy
SystemObject
  Algs4NetGenome

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Genome

The Genome type exposes the following members.

Constructors
  NameDescription
Public methodGenome
Uses file names to direct input and output
Top
Methods
  NameDescription
Public methodCompress
Reads a sequence of 8-bit extended ASCII characters over the alphabet { A, C, T, G } from standard input; compresses them using two bits per character; and writes the results to standard output.
Public methodExpand
Reads a binary sequence from standard input; converts each two bits to an 8-bit extended ASCII character over the alphabet { A, C, T, G }; and writes the results to standard output.
Public methodStatic memberMainTest
Sample client that calls compress() if the command-line argument is "-" an expand() if it is "+".
Top
Remarks

For additional documentation, see Section 5.5 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

This class is a C# port from the original Java class Genome implementation by the respective authors.

See Also