1 package jalview.json.binding.biojson.v1;
3 import java.util.ArrayList;
4 import java.util.HashMap;
8 import com.github.reinert.jjschema.Attributes;
12 description = "A specification for the representation and exchange of bioinformatics data")
13 public class AlignmentPojo
17 description = "Serial version identifier for <b>BioJSON</b> schema")
18 private String svid = "1.0";
23 description = "An array of Sequences which makes up the Alignment")
24 private List<SequencePojo> seqs = new ArrayList<SequencePojo>();
29 exclusiveMaximum = true,
30 description = "Alignment annotations stores symbols and graphs usually rendered </br>"
31 + "below the alignment and often reflect properties of the alignment </br>as a whole.")
32 private List<AlignmentAnnotationPojo> alignAnnotation = new ArrayList<AlignmentAnnotationPojo>();
37 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")
38 private List<SequenceGrpPojo> seqGroups = new ArrayList<SequenceGrpPojo>();
43 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")
44 private List<SequenceFeaturesPojo> seqFeatures = new ArrayList<SequenceFeaturesPojo>();
48 enums = { "None", "User Defined", "Clustal", "Zappo", "Taylor",
49 "Nucleotide", "Pyrimidine", "Purine", "Turn", "Helix", "Strand",
50 "Buried", "Hydro", "T-Coffee Scores", "RNA Interaction type",
51 "Blosum62", "RNA Helices", "% Identity" },
52 description = "The <a href=\"#colourScheme\">Colour Scheme</a> applied to the alignment")
53 private String colourScheme;
58 description = "AppSettings stores key=value pairs of custom application specific <br>"
59 + "settings (i.e visualisation settings, etc) for different applications<br>"
60 + "that consume or generate BioJSON")
61 Map<String, Object> appSettings = new HashMap<String, Object>();
63 public AlignmentPojo()
67 public List<SequencePojo> getSeqs()
72 public void setSeqs(ArrayList<SequencePojo> seqs)
77 public Map<String, Object> getAppSettings()
82 public void setAppSettings(Map<String, Object> appSettings)
84 this.appSettings = appSettings;
87 public List<AlignmentAnnotationPojo> getAlignAnnotation()
89 return alignAnnotation;
92 public void setAlignAnnotation(
93 List<AlignmentAnnotationPojo> alignAnnotation)
95 this.alignAnnotation = alignAnnotation;
98 public List<SequenceGrpPojo> getSeqGroups()
103 public void setSeqGroups(List<SequenceGrpPojo> seqGroups)
105 this.seqGroups = seqGroups;
108 public List<SequenceFeaturesPojo> getSeqFeatures()
113 public void setSeqFeatures(List<SequenceFeaturesPojo> seqFeatures)
115 this.seqFeatures = seqFeatures;
118 public String getSvid()
123 public void setGlobalColorScheme(String globalColorScheme)
125 this.appSettings.put("globalColorScheme", globalColorScheme);
128 public String getColourScheme()
133 public void setColourScheme(String colourScheme)
135 this.colourScheme = colourScheme;