| 1 |
|
| 2 |
public class QueryResult { |
| 3 |
|
| 4 |
private String goTerm; |
| 5 |
private String length; |
| 6 |
private double score; |
| 7 |
private String eValue; |
| 8 |
private int numberIdontKnow; |
| 9 |
private String identities; |
| 10 |
private String positives; |
| 11 |
private int identitiesPercent; |
| 12 |
private int positivesPercent; |
| 13 |
private String gaps = "0"; |
| 14 |
private int gabsPercent; |
| 15 |
private String name; |
| 16 |
|
| 17 |
public QueryResult() { |
| 18 |
} |
| 19 |
|
| 20 |
public void addGoTerms(String term) { |
| 21 |
goTerm = term; |
| 22 |
} |
| 23 |
|
| 24 |
public void setName(String n) { |
| 25 |
name = n; |
| 26 |
} |
| 27 |
|
| 28 |
public String getName() { |
| 29 |
return name; |
| 30 |
} |
| 31 |
|
| 32 |
public String getGoTerm() { |
| 33 |
return goTerm; |
| 34 |
} |
| 35 |
|
| 36 |
public void addLength(String l) { |
| 37 |
length = l; |
| 38 |
} |
| 39 |
|
| 40 |
public String getLength() { |
| 41 |
return length; |
| 42 |
} |
| 43 |
|
| 44 |
public void addScore(double s) { |
| 45 |
score = s; |
| 46 |
} |
| 47 |
|
| 48 |
public double getScore() { |
| 49 |
return score; |
| 50 |
} |
| 51 |
|
| 52 |
public void addNumber(int bla) { |
| 53 |
numberIdontKnow = bla; |
| 54 |
} |
| 55 |
|
| 56 |
public int getNumber() { |
| 57 |
return numberIdontKnow; |
| 58 |
} |
| 59 |
|
| 60 |
public void addEValue(String e) { |
| 61 |
eValue = e; |
| 62 |
} |
| 63 |
|
| 64 |
public String getEvalue() { |
| 65 |
return eValue; |
| 66 |
} |
| 67 |
|
| 68 |
public void addIdentities(String i) { |
| 69 |
identities = i; |
| 70 |
} |
| 71 |
|
| 72 |
public String getIdentities() { |
| 73 |
return identities; |
| 74 |
} |
| 75 |
|
| 76 |
public void addIdenititesPercent(int i) { |
| 77 |
identitiesPercent = i; |
| 78 |
} |
| 79 |
|
| 80 |
public String getIdentitiesPercent() { |
| 81 |
return "" + identitiesPercent + "%"; |
| 82 |
} |
| 83 |
|
| 84 |
public int getIdentitiesPercentAsInt() { |
| 85 |
return identitiesPercent; |
| 86 |
} |
| 87 |
|
| 88 |
public void addPositivesPercent(int p) { |
| 89 |
positivesPercent = p; |
| 90 |
} |
| 91 |
|
| 92 |
public String getPositivesPercent() { |
| 93 |
return "" + positivesPercent + "%"; |
| 94 |
} |
| 95 |
|
| 96 |
public int getPositivesPercentAsInt() { |
| 97 |
return positivesPercent; |
| 98 |
} |
| 99 |
|
| 100 |
public void addPositives(String p) { |
| 101 |
positives = p; |
| 102 |
} |
| 103 |
|
| 104 |
public String getPositives() { |
| 105 |
return positives + "/" + length; |
| 106 |
} |
| 107 |
|
| 108 |
public void addGaps(String g) { |
| 109 |
gaps = g; |
| 110 |
} |
| 111 |
|
| 112 |
public String getGaps() { |
| 113 |
return gaps; |
| 114 |
} |
| 115 |
|
| 116 |
public void addGapsPercent(int g) { |
| 117 |
gabsPercent = g; |
| 118 |
} |
| 119 |
|
| 120 |
public String getGabsPercent() { |
| 121 |
return "" + gabsPercent + "%"; |
| 122 |
} |
| 123 |
|
| 124 |
public int getGabsPercentAsInt() { |
| 125 |
return gabsPercent; |
| 126 |
} |
| 127 |
|
| 128 |
public String getGoValuesFromString() { |
| 129 |
return goTerm.replace("GO:", ""); |
| 130 |
} |
| 131 |
|
| 132 |
} |