|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--taskspaces.rna.SequenceGenerator
Contains methods to generate random RNA sequence Strings from a sequence, generate structures from sequences, generate a given number of random RNA sequences of a given length, and create random base pairs.
| Constructor Summary | |
SequenceGenerator()
|
|
| Method Summary | |
private static java.util.List |
embed(java.lang.String[] modules,
java.lang.String spacer)
Embeds modules into a background sequence at specified points. |
static java.util.List |
embedCompositionModules(java.lang.String[] modules,
int sequenceLength)
Generates a random sequence with embedded modules, based on the composition of the modules. |
static java.util.List |
embedModules(java.lang.String[] modules,
int sequenceLength)
Generates a random sequence with embedded modules in random but ascending positions. |
static java.util.List |
embedModules(java.lang.String[] modules,
int sequenceLength,
float[] composition)
Generates a sequence with the base composition of the passed composition percentage values and with embedded database modules in random but ascending positions. |
static java.util.List |
embedModules(java.lang.String[] modules,
int sequenceLength,
java.lang.String baseSequence)
Generates a sequence with the base composition of the passed base sequence with embedded database modules in random but ascending positions. |
static char |
getCompositionBase(float[] f)
Returns a base with the given composition. |
static char[] |
getCompositionPair(java.lang.String baseSequence)
Returns a base pair using the composition of the passed sequence. |
static java.lang.String |
getCompositionSequence(java.lang.String baseSequence,
int length)
Returns a random piece of the input String or a lengthened randomized String of the input length. |
private static int[] |
getInsertionPoints(int moduleNum,
int spacerLength)
Generates an integer array of sorted points for inserting modules into sequences. |
static char |
getPairingBase(char c)
Returns the pair of the passed base. |
static java.lang.String |
getPartitionSequence(int[] composition)
Returns a randomized sequence with the given base composition. |
static char |
getRandomBase(long seed)
Returns a random base. |
static java.lang.String[] |
getRandomizedSequences(java.lang.String seq,
int num)
Generates the input number of random sequences using the input String. |
static char[] |
getRandomPair(boolean b)
Returns a random base pair. |
static java.lang.String |
getRandomSequence(int sequenceLength,
long seed)
Generates a random sequence using the MersenneTwisterFast class. |
static java.lang.String[] |
getRandomSequences(int num,
int sequenceLength,
long seed)
Generates an input number of random sequences using the MersenneTwisterFast class. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public SequenceGenerator()
| Method Detail |
public static java.lang.String[] getRandomizedSequences(java.lang.String seq,
int num)
throws java.lang.Exception
sequence - the sequence to randomize.num - number of sequences to return.
public static java.lang.String getCompositionSequence(java.lang.String baseSequence,
int length)
throws java.lang.Exception
input - sequence for input.public static char[] getCompositionPair(java.lang.String baseSequence)
baseSequence - a sequence.public static char getPairingBase(char c)
c - an RNA base.
public static java.lang.String[] getRandomSequences(int num,
int sequenceLength,
long seed)
num - number of sequences to generate.sequenceLength - desired length of generated sequences.seed - a random seed.
public static java.lang.String getRandomSequence(int sequenceLength,
long seed)
sequenceLength - desired length of generated sequence.seed - a random seed.public static char getRandomBase(long seed)
seed - a random seed.public static char getCompositionBase(float[] f)
composition - base composition percentages.public static char[] getRandomPair(boolean b)
b - if true include GU and UG as valid pairs.public static java.lang.String getPartitionSequence(int[] composition)
composition - base composition percentage values.
public static java.util.List embedModules(java.lang.String[] modules,
int sequenceLength,
float[] composition)
throws java.lang.Exception
modules - sequence modules.sequenceLength - the desired sequence length.composition - the desired base composition of the spacer.
public static java.util.List embedModules(java.lang.String[] modules,
int sequenceLength,
java.lang.String baseSequence)
throws java.lang.Exception
modules - sequence modules.sequenceLength - the desired sequence length.
public static java.util.List embedModules(java.lang.String[] modules,
int sequenceLength)
throws java.lang.Exception
modules - module sequences.sequenceLength - the desired sequence length.
public static java.util.List embedCompositionModules(java.lang.String[] modules,
int sequenceLength)
throws java.lang.Exception
modules - sequence modules.
private static int[] getInsertionPoints(int moduleNum,
int spacerLength)
moduleNum - the number of modules.
private static java.util.List embed(java.lang.String[] modules,
java.lang.String spacer)
modules - the sequence modules.sequence - the background sequence.
|
-bottom | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||