| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.ws.jws2.jabaws2; |
| 22 |
|
|
| 23 |
|
import jalview.api.FeatureColourI; |
| 24 |
|
import jalview.datamodel.AlignmentAnnotation; |
| 25 |
|
import jalview.datamodel.AlignmentI; |
| 26 |
|
import jalview.datamodel.features.FeatureMatcherSetI; |
| 27 |
|
import jalview.util.MessageManager; |
| 28 |
|
import jalview.ws.uimodel.AlignAnalysisUIText; |
| 29 |
|
|
| 30 |
|
import java.util.ArrayList; |
| 31 |
|
import java.util.List; |
| 32 |
|
import java.util.Map; |
| 33 |
|
import java.util.Set; |
| 34 |
|
import java.util.TreeSet; |
| 35 |
|
|
| 36 |
|
import compbio.data.sequence.Score; |
| 37 |
|
|
| |
|
| 10.5% |
Uncovered Elements: 17 (19) |
Complexity: 7 |
Complexity Density: 0.58 |
|
| 38 |
|
public class AAConClient extends JabawsAnnotationInstance |
| 39 |
|
{ |
| 40 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 41 |
0 |
public static String getServiceActionText()... |
| 42 |
|
{ |
| 43 |
0 |
return "calculating Amino acid consensus using AACon service"; |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
private static String CALC_ID = "jabaws2.AACon"; |
| 49 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 50 |
4 |
public static AlignAnalysisUIText getAlignAnalysisUIText()... |
| 51 |
|
{ |
| 52 |
4 |
return new AlignAnalysisUIText( |
| 53 |
|
compbio.ws.client.Services.AAConWS.toString(), |
| 54 |
|
AAConClient.class, CALC_ID, false, true, true, true, |
| 55 |
|
true, 2, MessageManager.getString("label.aacon_calculations"), |
| 56 |
|
MessageManager.getString("tooltip.aacon_calculations"), |
| 57 |
|
MessageManager.getString("label.aacon_settings"), |
| 58 |
|
MessageManager.getString("tooltip.aacon_settings")); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 62 |
0 |
public AAConClient(Jws2Instance handle)... |
| 63 |
|
{ |
| 64 |
0 |
super(handle); |
| 65 |
|
} |
| 66 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 67 |
0 |
@Override... |
| 68 |
|
List<AlignmentAnnotation> annotationFromScoreManager(AlignmentI seqs, |
| 69 |
|
Map<String, FeatureColourI> featureColours, |
| 70 |
|
Map<String, FeatureMatcherSetI> featureFilters) |
| 71 |
|
{ |
| 72 |
0 |
return aacons_annotation(seqs.getWidth(), seqs, null); |
| 73 |
|
} |
| 74 |
|
|
| |
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.38 |
|
| 75 |
0 |
private List<AlignmentAnnotation> aacons_annotation(int alWidth,... |
| 76 |
|
AlignmentI alignViewport, boolean[] gapMap) |
| 77 |
|
{ |
| 78 |
0 |
Map<String, TreeSet<Score>> scoremap = scoremanager.asMap(); |
| 79 |
0 |
ArrayList<AlignmentAnnotation> ourAnnot = new ArrayList<>(); |
| 80 |
0 |
for (String score : scoremap.keySet()) |
| 81 |
|
{ |
| 82 |
0 |
Set<Score> scores = scoremap.get(score); |
| 83 |
0 |
for (Score scr : scores) |
| 84 |
|
{ |
| 85 |
0 |
if (scr.getRanges() != null && scr.getRanges().size() > 0) |
| 86 |
|
{ |
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
} |
| 97 |
|
else |
| 98 |
|
{ |
| 99 |
0 |
createAnnotationRowsForScores(alignViewport, null, ourAnnot, |
| 100 |
|
getCalcId(), |
| 101 |
|
scr.getScores().size(), scr); |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
0 |
return ourAnnot; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
} |