bel_parser 1.0.0.alpha.7 → 1.0.0.alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gemspec +1 -1
- data/VERSION +1 -1
- data/bin/bel2_validator +7 -4
- data/lib/bel_parser/ast_filter.rb +2 -2
- data/lib/bel_parser/ast_generator.rb +11 -18
- data/lib/bel_parser/language/expression_validator.rb +8 -0
- data/lib/bel_parser/language/quoting.rb +19 -22
- data/lib/bel_parser/language/semantics/deeply_nested_statement.rb +65 -0
- data/lib/bel_parser/language/semantics/function_deprecation.rb +36 -0
- data/lib/bel_parser/language/semantics/list_function_subject.rb +45 -0
- data/lib/bel_parser/language/semantics/relationship_deprecation.rb +36 -0
- data/lib/bel_parser/language/semantics/signature_mapping.rb +30 -16
- data/lib/bel_parser/language/semantics.rb +7 -2
- data/lib/bel_parser/language/semantics_ast.rb +22 -12
- data/lib/bel_parser/language/semantics_function.rb +4 -1
- data/lib/bel_parser/language/semantics_result.rb +1 -0
- data/lib/bel_parser/language/semantics_warning.rb +2 -0
- data/lib/bel_parser/language/signature.rb +3 -3
- data/lib/bel_parser/language/syntax/invalid_function.rb +2 -2
- data/lib/bel_parser/language/syntax/invalid_relationship.rb +2 -2
- data/lib/bel_parser/language/syntax/undefined_namespace.rb +0 -1
- data/lib/bel_parser/language/syntax.rb +7 -2
- data/lib/bel_parser/language/syntax_error.rb +2 -0
- data/lib/bel_parser/language/syntax_function.rb +4 -1
- data/lib/bel_parser/language/syntax_result.rb +1 -0
- data/lib/bel_parser/language/syntax_warning.rb +2 -0
- data/lib/bel_parser/language/version1_0/functions/abundance.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/biological_process.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/catalytic_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/cell_secretion.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/cell_surface_expression.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/chaperone_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/complex_abundance.rb +26 -25
- data/lib/bel_parser/language/version1_0/functions/composite_abundance.rb +13 -12
- data/lib/bel_parser/language/version1_0/functions/degradation.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/fusion.rb +135 -129
- data/lib/bel_parser/language/version1_0/functions/gene_abundance.rb +34 -34
- data/lib/bel_parser/language/version1_0/functions/gtp_bound_activity.rb +24 -21
- data/lib/bel_parser/language/version1_0/functions/kinase_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/list.rb +24 -24
- data/lib/bel_parser/language/version1_0/functions/micro_rna_abundance.rb +18 -17
- data/lib/bel_parser/language/version1_0/functions/molecular_activity.rb +14 -12
- data/lib/bel_parser/language/version1_0/functions/pathology.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/peptidase_activity.rb +23 -21
- data/lib/bel_parser/language/version1_0/functions/phosphatase_activity.rb +23 -21
- data/lib/bel_parser/language/version1_0/functions/products.rb +9 -10
- data/lib/bel_parser/language/version1_0/functions/protein_abundance.rb +94 -91
- data/lib/bel_parser/language/version1_0/functions/protein_modification.rb +60 -57
- data/lib/bel_parser/language/version1_0/functions/reactants.rb +9 -10
- data/lib/bel_parser/language/version1_0/functions/reaction.rb +18 -17
- data/lib/bel_parser/language/version1_0/functions/ribosylation_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/rna_abundance.rb +34 -34
- data/lib/bel_parser/language/version1_0/functions/substitution.rb +29 -28
- data/lib/bel_parser/language/version1_0/functions/transcriptional_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/translocation.rb +33 -32
- data/lib/bel_parser/language/version1_0/functions/transport_activity.rb +26 -21
- data/lib/bel_parser/language/version1_0/functions/truncation.rb +15 -14
- data/lib/bel_parser/language/version1_0/relationships/acts_in.rb +16 -2
- data/lib/bel_parser/language/version1_0/relationships/analogous.rb +8 -2
- data/lib/bel_parser/language/version1_0/relationships/association.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/biomarker_for.rb +9 -2
- data/lib/bel_parser/language/version1_0/relationships/causes_no_change.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/decreases.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/directly_decreases.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/directly_increases.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/has_component.rb +25 -2
- data/lib/bel_parser/language/version1_0/relationships/has_components.rb +20 -2
- data/lib/bel_parser/language/version1_0/relationships/has_member.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/has_members.rb +20 -2
- data/lib/bel_parser/language/version1_0/relationships/has_modification.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/has_product.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/has_variant.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/includes.rb +18 -2
- data/lib/bel_parser/language/version1_0/relationships/increases.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/is_a.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/negative_correlation.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/orthologous.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/positive_correlation.rb +9 -2
- data/lib/bel_parser/language/version1_0/relationships/prognostic_biomarker_for.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/rate_limiting_step_of.rb +16 -2
- data/lib/bel_parser/language/version1_0/relationships/reactant_in.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/sub_process_of.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/transcribed_to.rb +12 -2
- data/lib/bel_parser/language/version1_0/relationships/translated_to.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/translocates.rb +16 -2
- data/lib/bel_parser/language/version1_0/syntax/function.rb +0 -1
- data/lib/bel_parser/language/version1_0.rb +13 -2
- data/lib/bel_parser/language/version2_0/functions/abundance.rb +54 -53
- data/lib/bel_parser/language/version2_0/functions/activity.rb +8 -5
- data/lib/bel_parser/language/version2_0/functions/biological_process.rb +16 -16
- data/lib/bel_parser/language/version2_0/functions/cell_secretion.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/cell_surface_expression.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/complex_abundance.rb +61 -58
- data/lib/bel_parser/language/version2_0/functions/composite_abundance.rb +13 -12
- data/lib/bel_parser/language/version2_0/functions/degradation.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/fragment.rb +8 -6
- data/lib/bel_parser/language/version2_0/functions/from_location.rb +18 -17
- data/lib/bel_parser/language/version2_0/functions/fusion.rb +120 -117
- data/lib/bel_parser/language/version2_0/functions/gene_abundance.rb +64 -62
- data/lib/bel_parser/language/version2_0/functions/list.rb +24 -24
- data/lib/bel_parser/language/version2_0/functions/location.rb +14 -15
- data/lib/bel_parser/language/version2_0/functions/micro_rna_abundance.rb +58 -55
- data/lib/bel_parser/language/version2_0/functions/molecular_activity.rb +16 -14
- data/lib/bel_parser/language/version2_0/functions/pathology.rb +14 -15
- data/lib/bel_parser/language/version2_0/functions/products.rb +9 -10
- data/lib/bel_parser/language/version2_0/functions/protein_abundance.rb +96 -92
- data/lib/bel_parser/language/version2_0/functions/protein_modification.rb +57 -54
- data/lib/bel_parser/language/version2_0/functions/reactants.rb +9 -10
- data/lib/bel_parser/language/version2_0/functions/reaction.rb +18 -17
- data/lib/bel_parser/language/version2_0/functions/rna_abundance.rb +64 -62
- data/lib/bel_parser/language/version2_0/functions/to_location.rb +16 -16
- data/lib/bel_parser/language/version2_0/functions/translocation.rb +23 -22
- data/lib/bel_parser/language/version2_0/functions/variant.rb +13 -13
- data/lib/bel_parser/language/version2_0/relationships/acts_in.rb +16 -2
- data/lib/bel_parser/language/version2_0/relationships/analogous.rb +8 -2
- data/lib/bel_parser/language/version2_0/relationships/association.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/biomarker_for.rb +9 -2
- data/lib/bel_parser/language/version2_0/relationships/causes_no_change.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/decreases.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/directly_decreases.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/directly_increases.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/has_component.rb +25 -2
- data/lib/bel_parser/language/version2_0/relationships/has_components.rb +20 -2
- data/lib/bel_parser/language/version2_0/relationships/has_member.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/has_members.rb +20 -2
- data/lib/bel_parser/language/version2_0/relationships/has_modification.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/has_product.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/has_variant.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/includes.rb +18 -2
- data/lib/bel_parser/language/version2_0/relationships/increases.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/is_a.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/negative_correlation.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/orthologous.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/positive_correlation.rb +9 -2
- data/lib/bel_parser/language/version2_0/relationships/prognostic_biomarker_for.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/rate_limiting_step_of.rb +16 -2
- data/lib/bel_parser/language/version2_0/relationships/reactant_in.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/regulates.rb +14 -2
- data/lib/bel_parser/language/version2_0/relationships/sub_process_of.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/transcribed_to.rb +12 -2
- data/lib/bel_parser/language/version2_0/relationships/translated_to.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/translocates.rb +16 -2
- data/lib/bel_parser/language.rb +18 -8
- data/lib/bel_parser/parser.rb +1 -0
- data/lib/bel_parser/parsers/ast/node.rb +112 -74
- data/lib/bel_parser/parsers/bel_script/set.rl +1 -1
- data/lib/bel_parser/parsers/bel_script/set_document.rb +7087 -0
- data/lib/bel_parser/parsers/bel_script/set_document.rl +97 -0
- data/lib/bel_parser/parsers/bel_script.rb +1 -0
- data/lib/bel_parser/parsers/common/common.rl +1 -1
- data/lib/bel_parser/script/parser.rb +1 -0
- metadata +8 -2
|
@@ -5,13 +5,24 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# CausesNoChange: +A causesNoChange B+ - For terms A and B,
|
|
8
|
+
# CausesNoChange: +A causesNoChange B+ - For terms A and B,
|
|
9
|
+
# +A causesNoChange B+ indicates that B was observed not to
|
|
10
|
+
# change in response to changes in A. Statements using this
|
|
11
|
+
# relationship correspond to cases where explicit measurement
|
|
12
|
+
# of B demonstrates lack of significant change, not for cases
|
|
13
|
+
# where the state of B is unknown.
|
|
9
14
|
class CausesNoChange
|
|
10
15
|
extend Relationship
|
|
11
16
|
|
|
12
17
|
SHORT = :causesNoChange
|
|
13
18
|
LONG = :causesNoChange
|
|
14
|
-
DESCRIPTION = ' +A causesNoChange B+ - For terms A and B, +A
|
|
19
|
+
DESCRIPTION = ' +A causesNoChange B+ - For terms A and B, +A
|
|
20
|
+
ausesNoChange B+ indicates that B was observed not
|
|
21
|
+
o change in response to changes in A. Statements
|
|
22
|
+
sing this relationship correspond to cases where
|
|
23
|
+
xplicit measurement of B demonstrates lack of
|
|
24
|
+
ignificant change, not for cases where the state
|
|
25
|
+
f B is unknown.'.freeze
|
|
15
26
|
|
|
16
27
|
def self.short
|
|
17
28
|
SHORT
|
|
@@ -5,13 +5,33 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# Decreases: +A -| B+ - For terms A and B, +A decreases B or
|
|
8
|
+
# Decreases: +A -| B+ - For terms A and B, +A decreases B or
|
|
9
|
+
# A -| B+ indicates that increases in A have been observed to
|
|
10
|
+
# cause decreases in B. +A decreases B+ also represents cases
|
|
11
|
+
# where decreases in A have been observed to cause increases in B,
|
|
12
|
+
# for example, in recording the results of gene deletion or other
|
|
13
|
+
# inhibition experiments. A is a BEL Term and B is either a BEL
|
|
14
|
+
# Term or a BEL Statement. The relationship does not indicate
|
|
15
|
+
# that the changes in A are either necessary for changes in B,
|
|
16
|
+
# nor does it indicate that changes in A are sufficient to cause
|
|
17
|
+
# changes in B.
|
|
9
18
|
class Decreases
|
|
10
19
|
extend Relationship
|
|
11
20
|
|
|
12
21
|
SHORT = :'-|'
|
|
13
22
|
LONG = :decreases
|
|
14
|
-
DESCRIPTION = ' +A -| B+ - For terms A and B, +A decreases B
|
|
23
|
+
DESCRIPTION = ' +A -| B+ - For terms A and B, +A decreases B
|
|
24
|
+
r A -| B+ indicates that increases in A have been
|
|
25
|
+
bserved to cause decreases in B. +A decreases
|
|
26
|
+
+ also represents cases where decreases in A
|
|
27
|
+
ave been observed to cause increases in B, for
|
|
28
|
+
xample, in recording the results of gene deletion
|
|
29
|
+
r other inhibition experiments. A is a BEL Term
|
|
30
|
+
nd B is either a BEL Term or a BEL Statement. The
|
|
31
|
+
elationship does not indicate that the changes
|
|
32
|
+
n A are either necessary for changes in B, nor
|
|
33
|
+
oes it indicate that changes in A are sufficient
|
|
34
|
+
o cause changes in B.'.freeze
|
|
15
35
|
|
|
16
36
|
def self.short
|
|
17
37
|
SHORT
|
|
@@ -5,13 +5,22 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# DirectlyDecreases: +A =| B+ - For terms A and B, +A
|
|
8
|
+
# DirectlyDecreases: +A =| B+ - For terms A and B, +A
|
|
9
|
+
# directlyDecreases B or A =| B+ indicates A decreases B and that
|
|
10
|
+
# the mechanism of the causal relationship is based on physical
|
|
11
|
+
# interaction of entities related to A and B. This is a direct
|
|
12
|
+
# version of the decreases relationship.
|
|
9
13
|
class DirectlyDecreases
|
|
10
14
|
extend Relationship
|
|
11
15
|
|
|
12
16
|
SHORT = :'=|'
|
|
13
17
|
LONG = :directlyDecreases
|
|
14
|
-
DESCRIPTION = ' +A =| B+ - For terms A and B,
|
|
18
|
+
DESCRIPTION = ' +A =| B+ - For terms A and B,
|
|
19
|
+
A directlyDecreases B or A =| B+ indicates A
|
|
20
|
+
ecreases B and that the mechanism of the causal
|
|
21
|
+
elationship is based on physical interaction
|
|
22
|
+
f entities related to A and B. This is a direct
|
|
23
|
+
ersion of the decreases relationship.'.freeze
|
|
15
24
|
|
|
16
25
|
def self.short
|
|
17
26
|
SHORT
|
|
@@ -5,13 +5,22 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# DirectlyIncreases: +A => B+ - For terms A and B, +A
|
|
8
|
+
# DirectlyIncreases: +A => B+ - For terms A and B, +A
|
|
9
|
+
# directlyIncreases B or A => B+ indicate A increases B and that
|
|
10
|
+
# the mechanism of the causal relationship is based on physical
|
|
11
|
+
# interaction of entities related to A and B. This is a direct
|
|
12
|
+
# version of the increases relationship.
|
|
9
13
|
class DirectlyIncreases
|
|
10
14
|
extend Relationship
|
|
11
15
|
|
|
12
16
|
SHORT = :'=>'
|
|
13
17
|
LONG = :directlyIncreases
|
|
14
|
-
DESCRIPTION = ' +A => B+ - For terms A and B,
|
|
18
|
+
DESCRIPTION = ' +A => B+ - For terms A and B,
|
|
19
|
+
A directlyIncreases B or A => B+ indicate A
|
|
20
|
+
ncreases B and that the mechanism of the causal
|
|
21
|
+
elationship is based on physical interaction
|
|
22
|
+
f entities related to A and B. This is a direct
|
|
23
|
+
ersion of the increases relationship.'.freeze
|
|
15
24
|
|
|
16
25
|
def self.short
|
|
17
26
|
SHORT
|
|
@@ -5,13 +5,36 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasComponent: +A hasComponent A1+ - For complexAbundance
|
|
8
|
+
# HasComponent: +A hasComponent A1+ - For complexAbundance
|
|
9
|
+
# term A and abundance term B, +A hasComponent B+ designates
|
|
10
|
+
# B as a component of A, that complexes that are instances of
|
|
11
|
+
# A have instances of B as possible components. Note that, the
|
|
12
|
+
# stoichiometry of A is not described, nor is it stated that B is
|
|
13
|
+
# a required component. The use of hasComponent relationships is
|
|
14
|
+
# complementary to the use of functionally composed complexes and
|
|
15
|
+
# is intended to enable the assignment of components to complexes
|
|
16
|
+
# designated by names in external vocabularies. The assignment
|
|
17
|
+
# of components can potentially enable the reconciliation of
|
|
18
|
+
# equivalent complexes at knowledge assembly time.
|
|
9
19
|
class HasComponent
|
|
10
20
|
extend Relationship
|
|
11
21
|
|
|
12
22
|
SHORT = :hasComponent
|
|
13
23
|
LONG = :hasComponent
|
|
14
|
-
DESCRIPTION = ' +A hasComponent A1+ - For complexAbundance
|
|
24
|
+
DESCRIPTION = ' +A hasComponent A1+ - For complexAbundance
|
|
25
|
+
erm A and abundance term B, +A hasComponent B+
|
|
26
|
+
esignates B as a component of A, that complexes
|
|
27
|
+
hat are instances of A have instances of B as
|
|
28
|
+
ossible components. Note that, the stoichiometry
|
|
29
|
+
f A is not described, nor is it stated that B
|
|
30
|
+
s a required component. The use of hasComponent
|
|
31
|
+
elationships is complementary to the use of
|
|
32
|
+
unctionally composed complexes and is intended to
|
|
33
|
+
nable the assignment of components to complexes
|
|
34
|
+
esignated by names in external vocabularies. The
|
|
35
|
+
ssignment of components can potentially enable
|
|
36
|
+
he reconciliation of equivalent complexes at
|
|
37
|
+
nowledge assembly time.'.freeze
|
|
15
38
|
|
|
16
39
|
def self.short
|
|
17
40
|
SHORT
|
|
@@ -5,13 +5,31 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasComponents: +A hasComponents (B, C, D)+ - The hasComponents
|
|
8
|
+
# HasComponents: +A hasComponents (B, C, D)+ - The hasComponents
|
|
9
|
+
# relationship is a special form which enables the assignment
|
|
10
|
+
# of multiple complex components in a single statement where
|
|
11
|
+
# the object of the statement is a set of abundance terms. A
|
|
12
|
+
# statement using hasComponents is exactly equivalent to multiple
|
|
13
|
+
# hasComponent statements. A term may not appear in both the
|
|
14
|
+
# subject and object of the same hasComponents statement. For
|
|
15
|
+
# the abundance terms A, B, C and D, +A hasComponents B, C, D+
|
|
16
|
+
# indicates that A has components B, C and D.
|
|
9
17
|
class HasComponents
|
|
10
18
|
extend Relationship
|
|
11
19
|
|
|
12
20
|
SHORT = :hasComponents
|
|
13
21
|
LONG = :hasComponents
|
|
14
|
-
DESCRIPTION = ' +A hasComponents (B, C, D)+ - The hasComponents
|
|
22
|
+
DESCRIPTION = ' +A hasComponents (B, C, D)+ - The hasComponents
|
|
23
|
+
elationship is a special form which enables
|
|
24
|
+
he assignment of multiple complex components
|
|
25
|
+
n a single statement where the object of the
|
|
26
|
+
tatement is a set of abundance terms. A statement
|
|
27
|
+
sing hasComponents is exactly equivalent to
|
|
28
|
+
ultiple hasComponent statements. A term may not
|
|
29
|
+
ppear in both the subject and object of the same
|
|
30
|
+
asComponents statement. For the abundance terms A,
|
|
31
|
+
, C and D, +A hasComponents B, C, D+ indicates
|
|
32
|
+
hat A has components B, C and D.'.freeze
|
|
15
33
|
|
|
16
34
|
def self.short
|
|
17
35
|
SHORT
|
|
@@ -5,13 +5,26 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasMember: +A hasMember A1+ - For term abundances A and B,
|
|
8
|
+
# HasMember: +A hasMember A1+ - For term abundances A and B,
|
|
9
|
+
# +A hasMember B+ designates B as a member class of A. A member
|
|
10
|
+
# class is a distinguished sub-class. A is defined as a group
|
|
11
|
+
# by all of the members assigned to it. The member classes may
|
|
12
|
+
# or may not be overlapping and may or may not entirely cover
|
|
13
|
+
# all instances of A. A term may not appear in both the subject
|
|
14
|
+
# and object of the same hasMember statement.
|
|
9
15
|
class HasMember
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :hasMember
|
|
13
19
|
LONG = :hasMember
|
|
14
|
-
DESCRIPTION = ' +A hasMember A1+ - For term abundances A and B,
|
|
20
|
+
DESCRIPTION = ' +A hasMember A1+ - For term abundances A and B,
|
|
21
|
+
A hasMember B+ designates B as a member class of
|
|
22
|
+
. A member class is a distinguished sub-class. A is
|
|
23
|
+
efined as a group by all of the members assigned to
|
|
24
|
+
t. The member classes may or may not be overlapping
|
|
25
|
+
nd may or may not entirely cover all instances
|
|
26
|
+
f A. A term may not appear in both the subject
|
|
27
|
+
nd object of the same hasMember statement.'.freeze
|
|
15
28
|
|
|
16
29
|
def self.short
|
|
17
30
|
SHORT
|
|
@@ -5,13 +5,31 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasMembers: +A hasMembers (B, C, D)+ - The hasMembers
|
|
8
|
+
# HasMembers: +A hasMembers (B, C, D)+ - The hasMembers
|
|
9
|
+
# relationship is a special form which enables the assignment of
|
|
10
|
+
# multiple member classes in a single statement where the object
|
|
11
|
+
# of the statement is a set of abundance terms. A statement
|
|
12
|
+
# using hasMembers is exactly equivalent to multiple hasMember
|
|
13
|
+
# statements. A term may not appear in both the subject and
|
|
14
|
+
# object of a of the same hasMembers statement. For the abundance
|
|
15
|
+
# terms A, B, C and D, +A hasMembers B, C, D+ indicates that A
|
|
16
|
+
# is defined by its member abundance classes B, C and D.
|
|
9
17
|
class HasMembers
|
|
10
18
|
extend Relationship
|
|
11
19
|
|
|
12
20
|
SHORT = :hasMembers
|
|
13
21
|
LONG = :hasMembers
|
|
14
|
-
DESCRIPTION = ' +A hasMembers (B, C, D)+ - The hasMembers
|
|
22
|
+
DESCRIPTION = ' +A hasMembers (B, C, D)+ - The hasMembers
|
|
23
|
+
elationship is a special form which enables the
|
|
24
|
+
ssignment of multiple member classes in a single
|
|
25
|
+
tatement where the object of the statement is a set
|
|
26
|
+
f abundance terms. A statement using hasMembers
|
|
27
|
+
s exactly equivalent to multiple hasMember
|
|
28
|
+
tatements. A term may not appear in both the
|
|
29
|
+
ubject and object of a of the same hasMembers
|
|
30
|
+
tatement. For the abundance terms A, B, C and D,
|
|
31
|
+
A hasMembers B, C, D+ indicates that A is defined
|
|
32
|
+
y its member abundance classes B, C and D.'.freeze
|
|
15
33
|
|
|
16
34
|
def self.short
|
|
17
35
|
SHORT
|
|
@@ -5,13 +5,24 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasModification: +p(A) hasModification p(A, pmod(P, S, 473))+
|
|
8
|
+
# HasModification: +p(A) hasModification p(A, pmod(P, S, 473))+
|
|
9
|
+
# - This relationship links abundance terms modified by the
|
|
10
|
+
# +pmod()+ function to the unmodified abundance term. This is a
|
|
11
|
+
# direct relationship because it is a _self_ relationship. This
|
|
12
|
+
# relationship is introduced by the BEL Compiler and may not be
|
|
13
|
+
# used by statements in BEL documents.
|
|
9
14
|
class HasModification
|
|
10
15
|
extend Relationship
|
|
11
16
|
|
|
12
17
|
SHORT = :hasModification
|
|
13
18
|
LONG = :hasModification
|
|
14
|
-
DESCRIPTION = ' +p(A) hasModification p(A, pmod(P, S, 473))+ -
|
|
19
|
+
DESCRIPTION = ' +p(A) hasModification p(A, pmod(P, S, 473))+ -
|
|
20
|
+
his relationship links abundance terms modified by
|
|
21
|
+
he +pmod()+ function to the unmodified abundance
|
|
22
|
+
erm. This is a direct relationship because it
|
|
23
|
+
s a _self_ relationship. This relationship is
|
|
24
|
+
ntroduced by the BEL Compiler and may not be used
|
|
25
|
+
y statements in BEL documents.'.freeze
|
|
15
26
|
|
|
16
27
|
def self.short
|
|
17
28
|
SHORT
|
|
@@ -5,13 +5,26 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasProduct: +reaction(reactants(A), products(B))
|
|
8
|
+
# HasProduct: +reaction(reactants(A), products(B))
|
|
9
|
+
# hasProduct B+ - This relationship links abundance
|
|
10
|
+
# terms from the +products(<list>)+ in a reaction to the
|
|
11
|
+
# reaction. This is a direct relationship because it is a _self_
|
|
12
|
+
# relationship. Products are produced directly by a reaction. This
|
|
13
|
+
# relationship is introduced by the BEL Compiler and may not be
|
|
14
|
+
# used by statements in BEL documents.
|
|
9
15
|
class HasProduct
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :hasProduct
|
|
13
19
|
LONG = :hasProduct
|
|
14
|
-
DESCRIPTION = ' +reaction(reactants(A), products(B)) hasProduct
|
|
20
|
+
DESCRIPTION = ' +reaction(reactants(A), products(B)) hasProduct
|
|
21
|
+
+ - This relationship links abundance terms
|
|
22
|
+
rom the +products(<list>)+ in a reaction to the
|
|
23
|
+
eaction. This is a direct relationship because it
|
|
24
|
+
s a _self_ relationship. Products are produced
|
|
25
|
+
irectly by a reaction. This relationship is
|
|
26
|
+
ntroduced by the BEL Compiler and may not be used
|
|
27
|
+
y statements in BEL documents.'.freeze
|
|
15
28
|
|
|
16
29
|
def self.short
|
|
17
30
|
SHORT
|
|
@@ -5,13 +5,24 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# HasVariant: +p(A) hasVariant p(A, sub(G, 12, V))+ -
|
|
8
|
+
# HasVariant: +p(A) hasVariant p(A, sub(G, 12, V))+ -
|
|
9
|
+
# This relationship links abundance terms modified by the
|
|
10
|
+
# +substitution()+, +fusion()+, or +truncation()+ functions to
|
|
11
|
+
# the unmodified abundance term. This relationship is introduced
|
|
12
|
+
# by the BEL Compiler and does not need to be used by statements
|
|
13
|
+
# in BEL documents.
|
|
9
14
|
class HasVariant
|
|
10
15
|
extend Relationship
|
|
11
16
|
|
|
12
17
|
SHORT = :hasVariant
|
|
13
18
|
LONG = :hasVariant
|
|
14
|
-
DESCRIPTION = ' +p(A) hasVariant p(A, sub(G, 12, V))+ - This
|
|
19
|
+
DESCRIPTION = ' +p(A) hasVariant p(A, sub(G, 12, V))+ - This
|
|
20
|
+
elationship links abundance terms modified by the
|
|
21
|
+
substitution()+, +fusion()+, or +truncation()+
|
|
22
|
+
unctions to the unmodified abundance term. This
|
|
23
|
+
elationship is introduced by the BEL Compiler
|
|
24
|
+
nd does not need to be used by statements in
|
|
25
|
+
EL documents.'.freeze
|
|
15
26
|
|
|
16
27
|
def self.short
|
|
17
28
|
SHORT
|
|
@@ -5,13 +5,29 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# Includes: +compositeAbundance(A,B) includes A+ - This
|
|
8
|
+
# Includes: +compositeAbundance(A,B) includes A+ - This
|
|
9
|
+
# relationship links each individual abundance term in a
|
|
10
|
+
# +compositeAbundance(<list>)+ to the compositeAbundance. For
|
|
11
|
+
# example, +compositeAbundance(A, B) includes A+ and
|
|
12
|
+
# +compositeAbundance(A, B) includes B+. This relationship is
|
|
13
|
+
# direct because it is a _self_ relationship. This relationship
|
|
14
|
+
# is introduced by the BEL Compiler and may not be used by
|
|
15
|
+
# statements in BEL documents.
|
|
9
16
|
class Includes
|
|
10
17
|
extend Relationship
|
|
11
18
|
|
|
12
19
|
SHORT = :includes
|
|
13
20
|
LONG = :includes
|
|
14
|
-
DESCRIPTION = ' +compositeAbundance(A,B) includes A+ - This
|
|
21
|
+
DESCRIPTION = ' +compositeAbundance(A,B) includes A+ - This
|
|
22
|
+
elationship links each individual abundance
|
|
23
|
+
erm in a +compositeAbundance(<list>)+
|
|
24
|
+
o the compositeAbundance. For example,
|
|
25
|
+
compositeAbundance(A, B) includes A+ and
|
|
26
|
+
compositeAbundance(A, B) includes B+. This
|
|
27
|
+
elationship is direct because it is a _self_
|
|
28
|
+
elationship. This relationship is introduced by
|
|
29
|
+
he BEL Compiler and may not be used by statements
|
|
30
|
+
n BEL documents.'.freeze
|
|
15
31
|
|
|
16
32
|
def self.short
|
|
17
33
|
SHORT
|
|
@@ -5,13 +5,33 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# Increases: +A -> B+ - For terms A and B, +A increases B or
|
|
8
|
+
# Increases: +A -> B+ - For terms A and B, +A increases B or
|
|
9
|
+
# A -> B+ indicates that increases in A have been observed to
|
|
10
|
+
# cause increases in B. +A increases B+ also represents cases
|
|
11
|
+
# where decreases in A have been observed to cause decreases in B,
|
|
12
|
+
# for example, in recording the results of gene deletion or other
|
|
13
|
+
# inhibition experiments. A is a BEL Term and B is either a BEL
|
|
14
|
+
# Term or a BEL Statement. The relationship does not indicate
|
|
15
|
+
# that the changes in A are either necessary for changes in B,
|
|
16
|
+
# nor does it indicate that changes in A are sufficient to cause
|
|
17
|
+
# changes in B.
|
|
9
18
|
class Increases
|
|
10
19
|
extend Relationship
|
|
11
20
|
|
|
12
21
|
SHORT = :'->'
|
|
13
22
|
LONG = :increases
|
|
14
|
-
DESCRIPTION = ' +A -> B+ - For terms A and B, +A increases B
|
|
23
|
+
DESCRIPTION = ' +A -> B+ - For terms A and B, +A increases B
|
|
24
|
+
r A -> B+ indicates that increases in A have been
|
|
25
|
+
bserved to cause increases in B. +A increases
|
|
26
|
+
+ also represents cases where decreases in A
|
|
27
|
+
ave been observed to cause decreases in B, for
|
|
28
|
+
xample, in recording the results of gene deletion
|
|
29
|
+
r other inhibition experiments. A is a BEL Term
|
|
30
|
+
nd B is either a BEL Term or a BEL Statement. The
|
|
31
|
+
elationship does not indicate that the changes
|
|
32
|
+
n A are either necessary for changes in B, nor
|
|
33
|
+
oes it indicate that changes in A are sufficient
|
|
34
|
+
o cause changes in B.'.freeze
|
|
15
35
|
|
|
16
36
|
def self.short
|
|
17
37
|
SHORT
|
|
@@ -5,13 +5,26 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# IsA: +A isA B+ - For terms A and B, +A isA B+ indicates
|
|
8
|
+
# IsA: +A isA B+ - For terms A and B, +A isA B+ indicates
|
|
9
|
+
# that A is a subset of B. All terms in BEL represent classes,
|
|
10
|
+
# but given that classes implicitly have instances, one can
|
|
11
|
+
# also interpret +A isA B+ to mean that any instance of A must
|
|
12
|
+
# also be an instance of B. This relationship can be used to
|
|
13
|
+
# represent GO and MeSH hierarchies: +pathology(MESH:Psoriasis)
|
|
14
|
+
# isA pathology(MESH:"Skin Diseases")+
|
|
9
15
|
class IsA
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :isA
|
|
13
19
|
LONG = :isA
|
|
14
|
-
DESCRIPTION = ' +A isA B+ - For terms A and B, +A isA B+
|
|
20
|
+
DESCRIPTION = ' +A isA B+ - For terms A and B, +A isA B+
|
|
21
|
+
ndicates that A is a subset of B. All terms in BEL
|
|
22
|
+
epresent classes, but given that classes implicitly
|
|
23
|
+
ave instances, one can also interpret +A isA B+ to
|
|
24
|
+
ean that any instance of A must also be an instance
|
|
25
|
+
f B. This relationship can be used to represent
|
|
26
|
+
O and MeSH hierarchies: +pathology(MESH:Psoriasis)
|
|
27
|
+
sA pathology(MESH:"Skin Diseases")+'.freeze
|
|
15
28
|
|
|
16
29
|
def self.short
|
|
17
30
|
SHORT
|
|
@@ -5,13 +5,24 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# NegativeCorrelation: +A negativeCorrelation B+ - For terms
|
|
8
|
+
# NegativeCorrelation: +A negativeCorrelation B+ - For terms
|
|
9
|
+
# A and B, +A negativeCorrelation B+ indicates that changes in A
|
|
10
|
+
# and B have been observed to be negatively correlated. The order
|
|
11
|
+
# of the subject and object does not affect the interpretation
|
|
12
|
+
# of the statement, thus B negativeCorrelation A is equivalent
|
|
13
|
+
# to A negativeCorrelation B.
|
|
9
14
|
class NegativeCorrelation
|
|
10
15
|
extend Relationship
|
|
11
16
|
|
|
12
17
|
SHORT = :negativeCorrelation
|
|
13
18
|
LONG = :negativeCorrelation
|
|
14
|
-
DESCRIPTION = ' +A negativeCorrelation B+ - For terms A and B,
|
|
19
|
+
DESCRIPTION = ' +A negativeCorrelation B+ - For terms A and B,
|
|
20
|
+
A negativeCorrelation B+ indicates that changes
|
|
21
|
+
n A and B have been observed to be negatively
|
|
22
|
+
orrelated. The order of the subject and object does
|
|
23
|
+
ot affect the interpretation of the statement,
|
|
24
|
+
hus B negativeCorrelation A is equivalent to A
|
|
25
|
+
egativeCorrelation B.'.freeze
|
|
15
26
|
|
|
16
27
|
def self.short
|
|
17
28
|
SHORT
|
|
@@ -5,13 +5,26 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# Orthologous: +A orthologous B+ - For geneAbundance terms A
|
|
8
|
+
# Orthologous: +A orthologous B+ - For geneAbundance terms A
|
|
9
|
+
# and B, +A orthologousTo B+ indicates that A and B represent
|
|
10
|
+
# abundances of genes in different species which are sequence
|
|
11
|
+
# similar and which are therefore presumed to share a common
|
|
12
|
+
# ancestral gene. For example, +g(HGNC:AKT1) orthologousTo
|
|
13
|
+
# g(MGI:AKT1)+ indicates that the mouse and human AKT1 genes
|
|
14
|
+
# are orthologous.
|
|
9
15
|
class Orthologous
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :orthologous
|
|
13
19
|
LONG = :orthologous
|
|
14
|
-
DESCRIPTION = ' +A orthologous B+ - For geneAbundance terms
|
|
20
|
+
DESCRIPTION = ' +A orthologous B+ - For geneAbundance terms
|
|
21
|
+
and B, +A orthologousTo B+ indicates that A
|
|
22
|
+
nd B represent abundances of genes in different
|
|
23
|
+
pecies which are sequence similar and which are
|
|
24
|
+
herefore presumed to share a common ancestral
|
|
25
|
+
ene. For example, +g(HGNC:AKT1) orthologousTo
|
|
26
|
+
(MGI:AKT1)+ indicates that the mouse and human
|
|
27
|
+
KT1 genes are orthologous.'.freeze
|
|
15
28
|
|
|
16
29
|
def self.short
|
|
17
30
|
SHORT
|
|
@@ -5,13 +5,20 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# PositiveCorrelation: +A positiveCorrelation B+ - For terms
|
|
8
|
+
# PositiveCorrelation: +A positiveCorrelation B+ - For terms
|
|
9
|
+
# A and B, +A positiveCorrelation B+ indicates that changes in
|
|
10
|
+
# A and B have been observed to be positively correlated, thus B
|
|
11
|
+
# positiveCorrelation A is equivalent to A positiveCorrelation B.
|
|
9
12
|
class PositiveCorrelation
|
|
10
13
|
extend Relationship
|
|
11
14
|
|
|
12
15
|
SHORT = :positiveCorrelation
|
|
13
16
|
LONG = :positiveCorrelation
|
|
14
|
-
DESCRIPTION = ' +A positiveCorrelation B+ - For terms A and B,
|
|
17
|
+
DESCRIPTION = ' +A positiveCorrelation B+ - For terms A and B,
|
|
18
|
+
A positiveCorrelation B+ indicates that changes
|
|
19
|
+
n A and B have been observed to be positively
|
|
20
|
+
orrelated, thus B positiveCorrelation A is
|
|
21
|
+
quivalent to A positiveCorrelation B.'.freeze
|
|
15
22
|
|
|
16
23
|
def self.short
|
|
17
24
|
SHORT
|
|
@@ -5,13 +5,22 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# PrognosticBiomarkerFor: +A prognosticBiomarkerFor P+ -
|
|
8
|
+
# PrognosticBiomarkerFor: +A prognosticBiomarkerFor P+ -
|
|
9
|
+
# For term A and process term P, +A prognosticBiomarkerFor P+
|
|
10
|
+
# indicates that changes in or detection of A is used in some
|
|
11
|
+
# way to be a prognostic biomarker for the subsequent development
|
|
12
|
+
# of pathology or biological process P.
|
|
9
13
|
class PrognosticBiomarkerFor
|
|
10
14
|
extend Relationship
|
|
11
15
|
|
|
12
16
|
SHORT = :prognosticBiomarkerFor
|
|
13
17
|
LONG = :prognosticBiomarkerFor
|
|
14
|
-
DESCRIPTION = ' +A prognosticBiomarkerFor P+ - For term A
|
|
18
|
+
DESCRIPTION = ' +A prognosticBiomarkerFor P+ - For term A
|
|
19
|
+
nd process term P, +A prognosticBiomarkerFor P+
|
|
20
|
+
ndicates that changes in or detection of A is used
|
|
21
|
+
n some way to be a prognostic biomarker for the
|
|
22
|
+
ubsequent development of pathology or biological
|
|
23
|
+
rocess P.'.freeze
|
|
15
24
|
|
|
16
25
|
def self.short
|
|
17
26
|
SHORT
|
|
@@ -5,13 +5,27 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# RateLimitingStepOf: +A rateLimitingStepOf B+ - For process,
|
|
8
|
+
# RateLimitingStepOf: +A rateLimitingStepOf B+ - For process,
|
|
9
|
+
# activity, or transformation term A and process term B, +A
|
|
10
|
+
# rateLimitingStepOf B+ indicates +A subProcessOf B+ and +A ->
|
|
11
|
+
# B+. For example, the catalytic activity of HMG CoA reductase
|
|
12
|
+
# is a rate-limiting step for cholesterol biosynthesis: <pre>
|
|
13
|
+
# <code> cat(p(HGNC:HMGCR)) rateLimitingStepOf\ bp(GO:"cholesterol
|
|
14
|
+
# biosynthetic process") </code> </pre>
|
|
9
15
|
class RateLimitingStepOf
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :rateLimitingStepOf
|
|
13
19
|
LONG = :rateLimitingStepOf
|
|
14
|
-
DESCRIPTION = ' +A rateLimitingStepOf B+ - For process,
|
|
20
|
+
DESCRIPTION = ' +A rateLimitingStepOf B+ - For process,
|
|
21
|
+
ctivity, or transformation term A and process
|
|
22
|
+
erm B, +A rateLimitingStepOf B+ indicates
|
|
23
|
+
A subProcessOf B+ and +A -> B+. For example,
|
|
24
|
+
he catalytic activity of HMG CoA reductase is a
|
|
25
|
+
ate-limiting step for cholesterol biosynthesis:
|
|
26
|
+
pre> <code> cat(p(HGNC:HMGCR)) rateLimitingStepOf\
|
|
27
|
+
p(GO:"cholesterol biosynthetic process") </code>
|
|
28
|
+
/pre>'.freeze
|
|
15
29
|
|
|
16
30
|
def self.short
|
|
17
31
|
SHORT
|
|
@@ -5,13 +5,26 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# ReactantIn: +A reactantIn reaction(reactants(A),
|
|
8
|
+
# ReactantIn: +A reactantIn reaction(reactants(A),
|
|
9
|
+
# products(B))+ - This relationship links abundance
|
|
10
|
+
# terms from the +reactants(<list>)+ in a reaction to the
|
|
11
|
+
# reaction. This is a direct relationship because it is a
|
|
12
|
+
# _self_ relationship. Reactants are consumed directly by a
|
|
13
|
+
# reaction. This relationship is introduced by the BEL Compiler
|
|
14
|
+
# and may not be used by statements in BEL documents.
|
|
9
15
|
class ReactantIn
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :reactantIn
|
|
13
19
|
LONG = :reactantIn
|
|
14
|
-
DESCRIPTION = ' +A reactantIn reaction(reactants(A),
|
|
20
|
+
DESCRIPTION = ' +A reactantIn reaction(reactants(A),
|
|
21
|
+
roducts(B))+ - This relationship links abundance
|
|
22
|
+
erms from the +reactants(<list>)+ in a reaction
|
|
23
|
+
o the reaction. This is a direct relationship
|
|
24
|
+
ecause it is a _self_ relationship. Reactants are
|
|
25
|
+
onsumed directly by a reaction. This relationship
|
|
26
|
+
s introduced by the BEL Compiler and may not be
|
|
27
|
+
sed by statements in BEL documents.'.freeze
|
|
15
28
|
|
|
16
29
|
def self.short
|
|
17
30
|
SHORT
|