1 <?xml version="1.0" encoding="UTF-8"?>
3 Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
4 Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
6 This file is part of Jalview.
8 Jalview is free software: you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
12 Jalview is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jalview="www.jalview.org/colours" targetNamespace="www.jalview.org/colours">
20 <xs:complexType name="JalviewUserColours">
22 <xs:element name="Version" maxOccurs="1" minOccurs="0" type="xs:string">
25 Jalview colour scheme document version.
29 <xs:element name="colour" maxOccurs="unbounded" minOccurs="0">
32 <xs:element name="attributeName" type="xs:string" minOccurs="0" maxOccurs="2">
34 <xs:documentation>name of feature attribute to colour by, or attribute and sub-attribute</xs:documentation>
38 <xs:attribute name="Name" type="xs:string">
40 <xs:documentation>Single letter residue code for an alignment colour scheme, or feature type for a feature colour scheme</xs:documentation>
43 <xs:attribute name="RGB" type="xs:string" use="required"/>
44 <xs:attribute name="minRGB" type="xs:string" use="optional"/>
45 <xs:attribute name="noValueColour" use="optional" type="jalview:NoValueColour" default="Min" />
46 <xs:attribute name="threshType" use="optional">
48 <xs:restriction base="xs:string">
49 <xs:enumeration value="NONE" />
50 <xs:enumeration value="ABOVE" />
51 <xs:enumeration value="BELOW" />
55 <xs:attribute name="threshold" type="xs:float" use="optional"/>
56 <xs:attribute name="max" type="xs:float" use="optional"/>
57 <xs:attribute name="min" type="xs:float" use="optional"/>
58 <xs:attribute name="colourByLabel" type="xs:boolean" use="optional"/>
59 <xs:attribute name="autoScale" type="xs:boolean" use="optional"/>
62 <xs:element name="filter" maxOccurs="unbounded" minOccurs="0" >
65 <xs:element name="matcherSet" type="jalview:FeatureMatcherSet" />
67 <xs:attribute name="featureType" type="xs:string" use="required"/>
71 <xs:attribute name="schemeName" type="xs:string" use="optional"/>
74 <xs:complexType name="FeatureMatcherSet">
76 <xs:documentation>A feature match condition, which may be simple or compound</xs:documentation>
79 <xs:element name="matchCondition" type="jalview:FeatureMatcher" />
80 <xs:element name="compoundMatcher">
83 <xs:element name="matcherSet" minOccurs="2" maxOccurs="2" type="jalview:FeatureMatcherSet" />
85 <xs:attribute name="and" type="xs:boolean" use="required">
87 <xs:documentation>If true, matchers are AND-ed, if false they are OR-ed</xs:documentation>
95 <xs:complexType name="FeatureMatcher">
97 <xs:element name="attributeName" type="xs:string" minOccurs="0" maxOccurs="2">
99 <xs:documentation>name of feature attribute to filter on, or attribute and sub-attribute</xs:documentation>
102 <xs:element name="condition" type="xs:string" />
103 <xs:element name="value" type="xs:string" />
105 <xs:attribute name="by">
107 <xs:restriction base="xs:string">
108 <xs:enumeration value="byLabel" />
109 <xs:enumeration value="byScore" />
110 <xs:enumeration value="byAttribute" />
116 <xs:simpleType name="NoValueColour">
118 <xs:documentation>Graduated feature colour if no score (or attribute) value</xs:documentation>
120 <xs:restriction base="xs:string">
121 <xs:enumeration value="None" />
122 <xs:enumeration value="Min" />
123 <xs:enumeration value="Max" />