Child pages
  • Constraint Element Description

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

When you describe a constraint element the element_name consists of two parts separated by two hyphens.

Code Block
part1--part2

Each part represents one of the algorithms the constraint is imposed on.

If the algorithm is presented as one element on a schema (like ORFPattern) the algorithm’s part has format:

Code Block
algorithm_element_name.unit

If the algorithm is presented as two subelements on a schema (like RepeatsPrimer) the algorithm’s part has format:

Code Block
algorithm_element_name.left

or:

Code Block
algorithm_element_name.right

depending on the subelement the constraint is imposed on.

Also you should specify the constraint type parameter (currently the only available type is distance):

Code Block
type: distance;

And specify one of the distance types, for example:

Code Block
distance-type: end-to-start;

Example1: The constraint is imposed on myORF and myPattern algorithm elements:

Code Block
myORF.unit--myPattern.unit {

   type: distance;
   distance-type: start-to-start;

   # Other parameters
}

Example2: The constraint is imposed on myORF algorithm element and the left myRepeats algorithm subelement:

Code Block
myORF.unit--myRepeats.left {

   type: distance;
   distance-type: start-to-end;

   # Other parameters
}

The available constraint elements are described in the Constraint Elements chapter.