1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.json.binding.biojson.v1; |
22 |
|
|
23 |
|
import java.util.ArrayList; |
24 |
|
import java.util.HashMap; |
25 |
|
import java.util.List; |
26 |
|
import java.util.Map; |
27 |
|
|
28 |
|
import com.github.reinert.jjschema.Attributes; |
29 |
|
|
30 |
|
@Attributes( |
31 |
|
title = "BioJSON", |
32 |
|
description = "A specification for the representation and exchange of bioinformatics data") |
|
|
| 72.4% |
Uncovered Elements: 8 (29) |
Complexity: 15 |
Complexity Density: 1.07 |
|
33 |
|
public class AlignmentPojo |
34 |
|
{ |
35 |
|
@Attributes( |
36 |
|
required = true, |
37 |
|
description = "Serial version identifier for <b>BioJSON</b> schema") |
38 |
|
private String svid = "1.0"; |
39 |
|
|
40 |
|
@Attributes( |
41 |
|
required = true, |
42 |
|
minItems = 1, |
43 |
|
description = "An array of Sequences which makes up the Alignment") |
44 |
|
private List<SequencePojo> seqs = new ArrayList<SequencePojo>(); |
45 |
|
|
46 |
|
@Attributes( |
47 |
|
required = false, |
48 |
|
minItems = 0, |
49 |
|
exclusiveMaximum = true, |
50 |
|
description = "Alignment annotations stores symbols and graphs usually rendered </br>" |
51 |
|
+ "below the alignment and often reflect properties of the alignment </br>as a whole.") |
52 |
|
private List<AlignmentAnnotationPojo> alignAnnotation = new ArrayList<AlignmentAnnotationPojo>(); |
53 |
|
|
54 |
|
@Attributes( |
55 |
|
required = false, |
56 |
|
minItems = 0, |
57 |
|
description = "A sequence group is a rectangular region of an alignment <br>bounded by startRes and endRes positions in the alignment <br>coordinate system for a set of sequences") |
58 |
|
private List<SequenceGrpPojo> seqGroups = new ArrayList<SequenceGrpPojo>(); |
59 |
|
|
60 |
|
@Attributes( |
61 |
|
required = false, |
62 |
|
minItems = 0, |
63 |
|
description = "Sequence features are properties of the individual sequences, <br>they do not change with the alignment, but are shown mapped<br> on to specific residues within the alignment") |
64 |
|
private List<SequenceFeaturesPojo> seqFeatures = new ArrayList<SequenceFeaturesPojo>(); |
65 |
|
|
66 |
|
@Attributes( |
67 |
|
required = false, |
68 |
|
enums = |
69 |
|
{ "None", "User Defined", "Clustal", "Zappo", "Taylor", "Nucleotide", |
70 |
|
"Pyrimidine", "Purine", "Turn", "Helix", "Strand", "Buried", |
71 |
|
"Hydro", "T-Coffee Scores", "RNA Interaction type", "Blosum62", |
72 |
|
"RNA Helices", "% Identity" }, |
73 |
|
description = "The <a href=\"#colourScheme\">Colour Scheme</a> applied to the alignment") |
74 |
|
private String colourScheme; |
75 |
|
|
76 |
|
@Attributes( |
77 |
|
required = true, |
78 |
|
maxItems = 0, |
79 |
|
description = "AppSettings stores key=value pairs of custom application specific <br>" |
80 |
|
+ "settings (i.e visualisation settings, etc) for different applications<br>" |
81 |
|
+ "that consume or generate BioJSON") |
82 |
|
Map<String, Object> appSettings = new HashMap<String, Object>(); |
83 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
84 |
4 |
public AlignmentPojo()... |
85 |
|
{ |
86 |
|
} |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
34 |
public List<SequencePojo> getSeqs()... |
89 |
|
{ |
90 |
34 |
return seqs; |
91 |
|
} |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0 |
public void setSeqs(ArrayList<SequencePojo> seqs)... |
94 |
|
{ |
95 |
0 |
this.seqs = seqs; |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
24 |
public Map<String, Object> getAppSettings()... |
99 |
|
{ |
100 |
24 |
return appSettings; |
101 |
|
} |
102 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
0 |
public void setAppSettings(Map<String, Object> appSettings)... |
104 |
|
{ |
105 |
0 |
this.appSettings = appSettings; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
4 |
public List<AlignmentAnnotationPojo> getAlignAnnotation()... |
109 |
|
{ |
110 |
4 |
return alignAnnotation; |
111 |
|
} |
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
113 |
4 |
public void setAlignAnnotation(... |
114 |
|
List<AlignmentAnnotationPojo> alignAnnotation) |
115 |
|
{ |
116 |
4 |
this.alignAnnotation = alignAnnotation; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
7 |
public List<SequenceGrpPojo> getSeqGroups()... |
120 |
|
{ |
121 |
7 |
return seqGroups; |
122 |
|
} |
123 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
0 |
public void setSeqGroups(List<SequenceGrpPojo> seqGroups)... |
125 |
|
{ |
126 |
0 |
this.seqGroups = seqGroups; |
127 |
|
} |
128 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
4 |
public List<SequenceFeaturesPojo> getSeqFeatures()... |
130 |
|
{ |
131 |
4 |
return seqFeatures; |
132 |
|
} |
133 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
4 |
public void setSeqFeatures(List<SequenceFeaturesPojo> seqFeatures)... |
135 |
|
{ |
136 |
4 |
this.seqFeatures = seqFeatures; |
137 |
|
} |
138 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
139 |
4 |
public String getSvid()... |
140 |
|
{ |
141 |
4 |
return svid; |
142 |
|
} |
143 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
144 |
4 |
public void setGlobalColorScheme(String globalColorScheme)... |
145 |
|
{ |
146 |
4 |
this.appSettings.put("globalColorScheme", globalColorScheme); |
147 |
|
} |
148 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
4 |
public String getColourScheme()... |
150 |
|
{ |
151 |
4 |
return colourScheme; |
152 |
|
} |
153 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
0 |
public void setColourScheme(String colourScheme)... |
155 |
|
{ |
156 |
0 |
this.colourScheme = colourScheme; |
157 |
|
} |
158 |
|
|
159 |
|
} |