nexml schema 1.0 ~/nexml/xsd/characters/restriction.xsd

Skip to: Site menu | Main content

The future data exchange standard is here!

nexml is an exchange standard for representing phylogenetic data — inspired by the commonly used NEXUS format, but more robust and easier to process.

Process nexml data

Schema module documentation

~ / nexml / html / doc / schema-1 / characters / restriction
rss | digg reddit del.icio.us facebook | Mon Dec 1 18:56:49 2008 —

Description

This module defines concrete subclasses for the abstract character matrix components that all character matrices must implement. The subclasses defined here apply to restriction site data. In a verbose notation, this data is represented as the "state" attribute of the <cell> element, whose value-space is limited to 0 or 1. In a compact notation, the same data is represented as a sequence of tokens (whitespace is allowed but has no meaning).

Other views (open in new window):

Complex types

RestrictionCells

Description

A standard characters block consisting of granular cells preceded by metadata.

Inheritance

RestrictionCells restricts AbstractCells.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionCells">
    <xs:complexContent>
      <xs:restriction base="AbstractCells">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="0" name="dict" type="Dict"/>
          <xs:element maxOccurs="1" minOccurs="1" name="format" type="RestrictionFormat"/>
          <xs:element maxOccurs="1" minOccurs="1" name="matrix" type="RestrictionObsMatrix"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionChar

Description

A concrete implementation of the char element, which only requires a unique identifier.

Inheritance

RestrictionChar restricts AbstractChar.

Attributes
Name Type Usage
tokens MSTokenLength prohibited
states xs:NCName prohibited
codon CodonPosition prohibited
id xs:NCName required
Substructures
Definition source
  <xs:complexType name="RestrictionChar">
    <xs:complexContent>
      <xs:restriction base="AbstractChar">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="0" name="dict" type="Dict"/>
        </xs:sequence>
        <xs:attribute name="tokens" type="MSTokenLength" use="prohibited"/>
        <xs:attribute name="states" type="xs:NCName" use="prohibited"/>
        <xs:attribute name="codon" type="CodonPosition" use="prohibited"/>
        <xs:attribute name="id" type="xs:NCName" use="required"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionFormat

Description

The RestrictionFormat class is the container of restriction column definitions.

Inheritance

RestrictionFormat restricts AbstractFormat.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionFormat">
    <xs:complexContent>
      <xs:restriction base="AbstractFormat">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="1" name="char" type="RestrictionChar"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionMatrixObsRow

Description

This is a row in a matrix of restriction site data as granular obervations.

Inheritance

RestrictionMatrixObsRow restricts AbstractObsRow.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionMatrixObsRow">
    <xs:complexContent>
      <xs:restriction base="AbstractObsRow">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="0" name="dict" type="Dict"/>
          <xs:element maxOccurs="unbounded" minOccurs="1" name="cell" type="RestrictionObs"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionMatrixSeqRow

Description

This is a row in a matrix of restriction site data as character sequences.

Inheritance

RestrictionMatrixSeqRow restricts AbstractSeqRow.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionMatrixSeqRow">
    <xs:complexContent>
      <xs:restriction base="AbstractSeqRow">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="0" name="dict" type="Dict"/>
          <xs:element maxOccurs="1" minOccurs="1" name="seq" type="RestrictionSeq"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionObs

Description

This is a single cell in a matrix containing a restriction site observation.

Inheritance

RestrictionObs restricts AbstractObs.

Attributes
Name Type Usage
char xs:nonNegativeInteger required
state RestrictionToken required
Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionObs">
    <xs:complexContent>
      <xs:restriction base="AbstractObs">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="0" name="dict" type="Dict"/>
        </xs:sequence>
        <xs:attribute name="char" type="xs:nonNegativeInteger" use="required"/>
        <xs:attribute name="state" type="RestrictionToken" use="required"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionObsMatrix

Description

A matrix of rows with single character observations.

Inheritance

RestrictionObsMatrix restricts AbstractObsMatrix.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionObsMatrix">
    <xs:complexContent>
      <xs:restriction base="AbstractObsMatrix">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="1" name="row" type="RestrictionMatrixObsRow"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionSeqMatrix

Description

A matrix of rows with seq strings of type restriction.

Inheritance

RestrictionSeqMatrix restricts AbstractSeqMatrix.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionSeqMatrix">
    <xs:complexContent>
      <xs:restriction base="AbstractSeqMatrix">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="1" name="row" type="RestrictionMatrixSeqRow"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

RestrictionSeqs

Description

A restriction site characters block consisting of sequences preceded by metadata.

Inheritance

RestrictionSeqs restricts AbstractSeqs.

Substructures
Definition source
  <xs:complexType abstract="false" name="RestrictionSeqs">
    <xs:complexContent>
      <xs:restriction base="AbstractSeqs">
        <xs:sequence maxOccurs="1" minOccurs="1">
          <xs:element maxOccurs="unbounded" minOccurs="0" name="dict" type="Dict"/>
          <xs:element maxOccurs="1" minOccurs="0" name="format" type="RestrictionFormat"/>
          <xs:element maxOccurs="1" minOccurs="1" name="matrix" type="RestrictionSeqMatrix"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

Simple types

RestrictionSeq

Description

This is a simple type that specifies a sequence of restriction site characters.

Inheritance

RestrictionSeq restricts xs:string.

Facets
Type Value
pattern [01\s]*
Definition source
  <xs:simpleType name="RestrictionSeq">
    <xs:restriction base="xs:string">
      <xs:pattern value="[01\s]*"></xs:pattern>
    </xs:restriction>
  </xs:simpleType>

RestrictionToken

Inheritance

RestrictionToken restricts xs:integer.

Facets
Type Value
minInclusive 0
maxInclusive 1
Definition source
  <xs:simpleType name="RestrictionToken">
    <xs:restriction base="xs:integer">
      <xs:minInclusive value="0"/>
      <xs:maxInclusive value="1"/>
    </xs:restriction>
  </xs:simpleType>

See also

~/nexml/xsd/characters/restriction.xsd includes the following other files:

~/nexml/xsd/characters/restriction.xsd is included in:

This page summarizes the contents of schema file "~/nexml/xsd/characters/restriction.xsd" as of revision 654. That schema file was last modified by rvos on 2008-09-22 15:17:49 -0400 (Mon, 22 Sep 2008), and this HTML summary page was generated on Mon Dec 1 18:56:49 2008.