The expression contains open parentheses. Please ensure that all parenthetical expressions are closed.

Complete the expression by appending a #VID token to the incomplete boolean expression.

MP Expressions may not begin with an AND or OR boolean. Ensure the expression begins with a #VID or NOT #VID token.

Molecular Profile expressions use a simple domain-specific language to specify complex MPs using boolean expressions to combine variants. These expressions may contain:

- Variant Tokens - #VID or NOT #VIDfollowed by a valid Variant ID, e.g. "#VID123"
- Boolean Tokens - AND, OR
- Parentheses - ( or ), for grouping tokens into nested expressions

Invalid Token errors occur if the parser encounters any text or token that does not match those listed above.

A single expression may not include more than one AND or OR boolean operator. To construct complex expressions, use parentheses.

For example, the expression #VID12 AND #VID2220 OR #VID456 is invalid, but the expression #VID12 AND (#VID2220 OR #VID456) is valid. The parentheses create a nested expression independent of the outer expression.

Complete the expression by appending a #VID token to the incomplete boolean expression.

The expression contains a Variant ID that cannot be matched to any Variant in the CIViC database. Please re-check the Variant ID, or create a new one by following these steps:

1. click the 'Variant' button,
2. enter a Gene name, then select a Gene
3. enter the Variant name
4. click the 'Create Variant' button that will appear if name does not match any CIViC Variants

An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, (#VID123 AND #VID456) OR (#VID123 AND #VID789), which is invalid, is logically identical to the valid MP expression #VID123 AND (#VID456 OR #VID789).

The Molecular Profile editor allows the selection or creation of complex Molecular Profiles by writing Molecular Profile Expressions. These expressions are composed with a simple language consisting of Variant tokens, boolean operators, and parentheses. For example:

> #VID12 AND #VID2220
> #VID12 OR #VID2220
> #VID12 AND NOT #VID2220
> #VID12 AND #VID2220 AND (#VID456 OR #VID123)
> #VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)

Variant Tokens
Variant tokens are composed of a CIViC Variant ID prepended with #VID, and refer to specific CIViC Variants. For example, #VID12 refers to BRAF V600E; #VID2220 refers to ALK FUSION. If you don’t know the CIViC ID of a Variant, you can search for Variants by name using the ‘Variant’ or ‘NOT Variant’ buttons below. These interfaces can also be used to add a Variant that’s not yet in CIViC.

Boolean Operators
MP Expressions with more than a single variant must include boolean operators - AND, OR, and NOT - indicating their relationship. For example, the expression #VID12 AND #VID2220 describes a MP that includes both BRAF V600E and ALK FUSION.

Parentheses
Expressions cannot have both AND and OR operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions.

NOTE: Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'.