From: tcofoegbu Date: Mon, 7 Sep 2015 14:25:25 +0000 (+0100) Subject: JAL-1831 updated BioJSON schema X-Git-Tag: Release_2_10_0~477^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2727ef35831c6a0d071de16ce43f058be6ab166c;p=jalview.git JAL-1831 updated BioJSON schema --- diff --git a/src/jalview/io/HtmlSvgOutput.java b/src/jalview/io/HtmlSvgOutput.java index c8d6975..a93cd7f 100644 --- a/src/jalview/io/HtmlSvgOutput.java +++ b/src/jalview/io/HtmlSvgOutput.java @@ -657,7 +657,7 @@ public class HtmlSvgOutput } htmlSvg.append("\n"); - htmlSvg.append(""); + htmlSvg.append(""); return htmlSvg.toString(); } } diff --git a/src/jalview/json/binding/biojson/v1/AlignmentPojo.java b/src/jalview/json/binding/biojson/v1/AlignmentPojo.java index f68ea86..9021a73 100644 --- a/src/jalview/json/binding/biojson/v1/AlignmentPojo.java +++ b/src/jalview/json/binding/biojson/v1/AlignmentPojo.java @@ -23,23 +23,21 @@ public class AlignmentPojo @Attributes( required = false, minItems = 0, - maxItems = 2147483647, exclusiveMaximum = true, - description = "Alignment annotations stores symbols and graphs usually rendered
below the alignment.") + description = "Alignment annotations stores symbols and graphs usually rendered
" + + "below the alignment and often reflect properties of the alignment
as a whole.") private List alignAnnotation = new ArrayList(); @Attributes( required = false, minItems = 0, - maxItems = 2147483647, - description = "A sequence group is a region of an alignment which could
span across multiple columns and rows. These can be treated as
a sub-alignments.") + description = "A sequence group is a rectangular region of an alignment
bounded by startRes and endRes positions in the alignment
coordinate system for a set of sequences") private List seqGroups = new ArrayList(); @Attributes( required = false, minItems = 0, - maxItems = 2147483647, - description = "Sequence features are associated with sequences rather than
alignments. A sequence feature can span across multiple
sequences in an alignment. They indicate features generated
by the same analysis process or retrieved from the same database
(such as Uniprot features).") + description = "Sequence features are properties of the individual sequences,
they do not change with the alignment, but are shown mapped
on to specific residues within the alignment") private List seqFeatures = new ArrayList(); @Attributes( @@ -48,10 +46,14 @@ public class AlignmentPojo "Nucleotide", "Pyrimidine", "Purine", "Turn", "Helix", "Strand", "Buried", "Hydro", "T-Coffee Scores", "RNA Interaction type", "Blosum62", "RNA Helices", "% Identity" }, - description = "The Colour Scheme applied to the alignment") + description = "The Colour Scheme applied to the alignment") private String colourScheme; - @Attributes(required = true, maxItems = 1, description = "This is an array of key=value pairs for storing custom application
specific settings") + @Attributes( + required = true, + maxItems = 0, description = "AppSettings stores key=value pairs of custom application specific
" + + "settings (i.e visualisation settings, etc) for different applications
" + + "that consume or generate BioJSON") Map appSettings = new HashMap(); public AlignmentPojo() diff --git a/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java b/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java index 7c2a8fd..e5c4395 100644 --- a/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java +++ b/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java @@ -8,7 +8,7 @@ public class SequenceGrpPojo { @Attributes( required = false, - description = "The Colour Scheme applied to the Sequence Group") + description = "The Colour Scheme applied to the Sequence Group") private String colourScheme; @Attributes(required = true, description = "The name assigned to the seqGroup") @@ -38,7 +38,6 @@ public class SequenceGrpPojo @Attributes( required = true, minItems = 1, - maxItems = 2147483647, uniqueItems = true, description = "An array of the unique id's for the sequences belonging to the group") private ArrayList sequenceRefs = new ArrayList();