Package dsa
Class Genome
java.lang.Object
dsa.Genome
This library provides static methods for compressing and expanding a genomic sequence using a 2-bit code.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
compress()
Reads from standard input a sequence characters over the alphabet { A, C, G, T }; compresses them using two bits per character; and writes the results to standard output.static void
expand()
Reads from standard input a sequence of genome-compressed bits; expands each two bits into a character over the alphabet { A, C, G, T }; and writes the results to standard output.static void
Unit tests the library.
-
Method Details
-
compress
public static void compress()Reads from standard input a sequence characters over the alphabet { A, C, G, T }; compresses them using two bits per character; and writes the results to standard output. -
expand
public static void expand()Reads from standard input a sequence of genome-compressed bits; expands each two bits into a character over the alphabet { A, C, G, T }; and writes the results to standard output. -
main
Unit tests the library.- Parameters:
args
- the command-line arguments.
-