steg
Class AminoSteg
java.lang.Object
steg.AminoSteg
public class AminoSteg
- extends java.lang.Object
- Author:
- Dominik
Field Summary |
int |
MAXIMUM_FILE_SIZE
The maximum sequence size which can be encrypted. |
Method Summary |
char[] |
destretch(char[] genome)
filters a sequence out of a given genome by reading the header. |
char[] |
stretch(char[] genome,
char[] sequence)
hides a RNA sequence in a genome (RNA). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAXIMUM_FILE_SIZE
public int MAXIMUM_FILE_SIZE
- The maximum sequence size which can be encrypted.
Default: 2048 bytes
AminoSteg
public AminoSteg(DNACrypt dnacrypt)
- Creates an instance of AminoSteg
- Parameters:
dnacrypt
-
stretch
public char[] stretch(char[] genome,
char[] sequence)
throws java.lang.Exception
- hides a RNA sequence in a genome (RNA).
It adds a header with contains the length of
the RNA sequence. The maximum length is
the MAXIMUM_SEQUENCE_SIZE.
- Parameters:
genome
- the RNA sequence (genome)sequence
- the RNA sequence to hide in the genome
- Returns:
- the genome containing the RNA sequence
- Throws:
java.lang.Exception
destretch
public char[] destretch(char[] genome)
throws java.lang.Exception
- filters a sequence out of a given genome by reading the header.
- Parameters:
genome
- the RNA sequence to filter
- Returns:
- the filtered RNA sequence
- Throws:
java.lang.Exception