|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.Util
public class Util
Class with different methods for organizing, re-organizing, extracting and normalizing data from standard datastructures used in the FunSiP program package.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static void |
doubleSort(double[] toSortList,
double[] followList)
Bubblesort algorithm which sorts one list, and sorts (changing of indices) another list in exactly the same way. |
static java.util.List<java.lang.String> |
extractFromMap(java.util.Map<java.lang.String,?> map)
Extracts a list of strings from the values of a map, but it keeps the normal alphabetical order between the keys of the map. |
static java.util.List<java.lang.String> |
mergeUpDownInt(java.util.List<java.lang.Integer> upData,
java.util.List<java.lang.Integer> downData)
Merges 2 lists of integer data to one list of string data. |
static java.util.Map<java.lang.String,java.lang.Double> |
normalize(java.util.Map<java.lang.String,java.lang.Integer> map,
int max)
Normalizes the values of a map to the interval [0,1]. |
static java.lang.String |
toForwardStrand(java.lang.String sequence)
This method changes the strand of a sequence by both replacing the nucleotides by their complements and by inversing the order of the sequence. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static void doubleSort(double[] toSortList, double[] followList)
toSortList
- original list to be sorted.followList
- The list which will be sorted by the same indices of toSortList.public static java.util.Map<java.lang.String,java.lang.Double> normalize(java.util.Map<java.lang.String,java.lang.Integer> map, int max)
map
- The map with data to be normalized. Strings are the keys, ints are the valuesmax
- The maximum int value in the map
public static java.util.List<java.lang.String> mergeUpDownInt(java.util.List<java.lang.Integer> upData, java.util.List<java.lang.Integer> downData)
upData
- The data from upstream the splicesitedownData
- The data from downstream the splicesite
public static java.lang.String toForwardStrand(java.lang.String sequence)
sequence
- The original (most likely reverse strand) sequence
public static java.util.List<java.lang.String> extractFromMap(java.util.Map<java.lang.String,?> map)
map
- The map, with strings as keys and ints as values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |