bel_parser 1.0.0.alpha.7 → 1.0.0.alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -37,7 +37,7 @@ module BELParser
|
|
37
37
|
end
|
38
38
|
|
39
39
|
module Signatures
|
40
|
-
|
40
|
+
# RNAAbundanceWithFusionSignature
|
41
41
|
class RNAAbundanceWithFusionSignature
|
42
42
|
extend BELParser::Language::Signature
|
43
43
|
|
@@ -45,24 +45,24 @@ module BELParser
|
|
45
45
|
|
46
46
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
47
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
48
|
+
function(
|
49
|
+
identifier(
|
50
|
+
function_of(RNAAbundance))),
|
51
|
+
argument(
|
52
|
+
parameter(
|
53
|
+
prefix(
|
54
|
+
identifier(
|
55
|
+
has_namespace,
|
56
|
+
namespace_of(:*))),
|
57
|
+
value(
|
58
|
+
value_type(
|
59
|
+
has_encoding,
|
60
|
+
encoding_of(:RnaAbundance))))),
|
61
|
+
argument(
|
62
|
+
term(
|
63
|
+
function(
|
64
|
+
identifier(
|
65
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::Fusion))))))
|
66
66
|
end
|
67
67
|
private_constant :AST
|
68
68
|
|
@@ -77,7 +77,8 @@ module BELParser
|
|
77
77
|
STRING_FORM
|
78
78
|
end
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
|
+
# RNAAbundanceSignature
|
81
82
|
class RNAAbundanceSignature
|
82
83
|
extend BELParser::Language::Signature
|
83
84
|
|
@@ -85,19 +86,19 @@ module BELParser
|
|
85
86
|
|
86
87
|
AST = BELParser::Language::Semantics::Builder.build do
|
87
88
|
term(
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
89
|
+
function(
|
90
|
+
identifier(
|
91
|
+
function_of(RNAAbundance))),
|
92
|
+
argument(
|
93
|
+
parameter(
|
94
|
+
prefix(
|
95
|
+
identifier(
|
96
|
+
has_namespace,
|
97
|
+
namespace_of(:*))),
|
98
|
+
value(
|
99
|
+
value_type(
|
100
|
+
has_encoding,
|
101
|
+
encoding_of(:RnaAbundance))))))
|
101
102
|
end
|
102
103
|
private_constant :AST
|
103
104
|
|
@@ -112,7 +113,6 @@ module BELParser
|
|
112
113
|
STRING_FORM
|
113
114
|
end
|
114
115
|
end
|
115
|
-
|
116
116
|
end
|
117
117
|
|
118
118
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,16 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version1_0
|
9
9
|
module Functions
|
10
|
-
# Substitution: Indicates the abundance of proteins with amino
|
10
|
+
# Substitution: Indicates the abundance of proteins with amino
|
11
|
+
# acid substitution sequence
|
11
12
|
class Substitution
|
12
13
|
extend Function
|
13
14
|
|
14
15
|
SHORT = :sub
|
15
16
|
LONG = :substitution
|
16
17
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::Substitution
|
17
|
-
DESCRIPTION = 'Indicates the abundance of proteins with amino
|
18
|
+
DESCRIPTION = 'Indicates the abundance of proteins with amino
|
19
|
+
cid substitution sequence'.freeze
|
18
20
|
|
19
21
|
def self.short
|
20
22
|
SHORT
|
@@ -37,7 +39,7 @@ module BELParser
|
|
37
39
|
end
|
38
40
|
|
39
41
|
module Signatures
|
40
|
-
|
42
|
+
# SubstitutionWithReferencePositionVariantSignature
|
41
43
|
class SubstitutionWithReferencePositionVariantSignature
|
42
44
|
extend BELParser::Language::Signature
|
43
45
|
|
@@ -45,30 +47,30 @@ module BELParser
|
|
45
47
|
|
46
48
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
49
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
50
|
+
function(
|
51
|
+
identifier(
|
52
|
+
function_of(Substitution))),
|
53
|
+
argument(
|
54
|
+
parameter(
|
55
|
+
prefix(
|
56
|
+
any),
|
57
|
+
value(
|
58
|
+
value_type(
|
59
|
+
encoding_of(:*))))),
|
60
|
+
argument(
|
61
|
+
parameter(
|
62
|
+
prefix(
|
63
|
+
any),
|
64
|
+
value(
|
65
|
+
value_type(
|
66
|
+
encoding_of(:*))))),
|
67
|
+
argument(
|
68
|
+
parameter(
|
69
|
+
prefix(
|
70
|
+
any),
|
71
|
+
value(
|
72
|
+
value_type(
|
73
|
+
encoding_of(:*))))))
|
72
74
|
end
|
73
75
|
private_constant :AST
|
74
76
|
|
@@ -83,7 +85,6 @@ module BELParser
|
|
83
85
|
STRING_FORM
|
84
86
|
end
|
85
87
|
end
|
86
|
-
|
87
88
|
end
|
88
89
|
|
89
90
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,18 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version1_0
|
9
9
|
module Functions
|
10
|
-
# TranscriptionalActivity: Denotes the frequency or abundance of
|
10
|
+
# TranscriptionalActivity: Denotes the frequency or abundance of
|
11
|
+
# events in which a member directly acts to control transcription
|
12
|
+
# of genes
|
11
13
|
class TranscriptionalActivity
|
12
14
|
extend Function
|
13
15
|
|
14
16
|
SHORT = :tscript
|
15
17
|
LONG = :transcriptionalActivity
|
16
18
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::TranscriptionalActivity
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
20
|
+
n which a member directly acts to control
|
21
|
+
ranscription of genes'.freeze
|
18
22
|
|
19
23
|
def self.short
|
20
24
|
SHORT
|
@@ -37,7 +41,7 @@ module BELParser
|
|
37
41
|
end
|
38
42
|
|
39
43
|
module Signatures
|
40
|
-
|
44
|
+
# TranscriptionalActivityOfComplexAbundanceSignature
|
41
45
|
class TranscriptionalActivityOfComplexAbundanceSignature
|
42
46
|
extend BELParser::Language::Signature
|
43
47
|
|
@@ -45,14 +49,14 @@ module BELParser
|
|
45
49
|
|
46
50
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
51
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
function(
|
53
|
+
identifier(
|
54
|
+
function_of(TranscriptionalActivity))),
|
55
|
+
argument(
|
56
|
+
term(
|
57
|
+
function(
|
58
|
+
identifier(
|
59
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::ComplexAbundance))))))
|
56
60
|
end
|
57
61
|
private_constant :AST
|
58
62
|
|
@@ -67,7 +71,8 @@ module BELParser
|
|
67
71
|
STRING_FORM
|
68
72
|
end
|
69
73
|
end
|
70
|
-
|
74
|
+
|
75
|
+
# TranscriptionalActivityOfProteinAbundanceSignature
|
71
76
|
class TranscriptionalActivityOfProteinAbundanceSignature
|
72
77
|
extend BELParser::Language::Signature
|
73
78
|
|
@@ -75,14 +80,14 @@ module BELParser
|
|
75
80
|
|
76
81
|
AST = BELParser::Language::Semantics::Builder.build do
|
77
82
|
term(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
83
|
+
function(
|
84
|
+
identifier(
|
85
|
+
function_of(TranscriptionalActivity))),
|
86
|
+
argument(
|
87
|
+
term(
|
88
|
+
function(
|
89
|
+
identifier(
|
90
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::ProteinAbundance))))))
|
86
91
|
end
|
87
92
|
private_constant :AST
|
88
93
|
|
@@ -97,7 +102,6 @@ module BELParser
|
|
97
102
|
STRING_FORM
|
98
103
|
end
|
99
104
|
end
|
100
|
-
|
101
105
|
end
|
102
106
|
|
103
107
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,16 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version1_0
|
9
9
|
module Functions
|
10
|
-
# Translocation: Denotes the frequency or abundance of events
|
10
|
+
# Translocation: Denotes the frequency or abundance of events
|
11
|
+
# in which members move between locations
|
11
12
|
class Translocation
|
12
13
|
extend Function
|
13
14
|
|
14
15
|
SHORT = :tloc
|
15
16
|
LONG = :translocation
|
16
17
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::Abundance
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
18
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
19
|
+
n which members move between locations'.freeze
|
18
20
|
|
19
21
|
def self.short
|
20
22
|
SHORT
|
@@ -37,7 +39,7 @@ module BELParser
|
|
37
39
|
end
|
38
40
|
|
39
41
|
module Signatures
|
40
|
-
|
42
|
+
# TranslocationSignature
|
41
43
|
class TranslocationSignature
|
42
44
|
extend BELParser::Language::Signature
|
43
45
|
|
@@ -45,34 +47,34 @@ module BELParser
|
|
45
47
|
|
46
48
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
49
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
50
|
+
function(
|
51
|
+
identifier(
|
52
|
+
function_of(Translocation))),
|
53
|
+
argument(
|
54
|
+
term(
|
55
|
+
function(
|
56
|
+
identifier(
|
57
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::Abundance))))),
|
58
|
+
argument(
|
59
|
+
parameter(
|
60
|
+
prefix(
|
61
|
+
identifier(
|
62
|
+
has_namespace,
|
63
|
+
namespace_of(:*))),
|
64
|
+
value(
|
65
|
+
value_type(
|
66
|
+
has_encoding,
|
67
|
+
encoding_of(:Abundance))))),
|
68
|
+
argument(
|
69
|
+
parameter(
|
70
|
+
prefix(
|
71
|
+
identifier(
|
72
|
+
has_namespace,
|
73
|
+
namespace_of(:*))),
|
74
|
+
value(
|
75
|
+
value_type(
|
76
|
+
has_encoding,
|
77
|
+
encoding_of(:Abundance))))))
|
76
78
|
end
|
77
79
|
private_constant :AST
|
78
80
|
|
@@ -87,7 +89,6 @@ module BELParser
|
|
87
89
|
STRING_FORM
|
88
90
|
end
|
89
91
|
end
|
90
|
-
|
91
92
|
end
|
92
93
|
|
93
94
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,19 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version1_0
|
9
9
|
module Functions
|
10
|
-
# TransportActivity: Denotes the frequency or abundance of events
|
10
|
+
# TransportActivity: Denotes the frequency or abundance of events
|
11
|
+
# in which a member directs acts to enable the directed movement
|
12
|
+
# of substances into, out of, within, or between cells
|
11
13
|
class TransportActivity
|
12
14
|
extend Function
|
13
15
|
|
14
16
|
SHORT = :tport
|
15
17
|
LONG = :transportActivity
|
16
18
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::TransportActivity
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
20
|
+
n which a member directs acts to enable the
|
21
|
+
irected movement of substances into, out of,
|
22
|
+
ithin, or between cells'.freeze
|
18
23
|
|
19
24
|
def self.short
|
20
25
|
SHORT
|
@@ -37,7 +42,7 @@ module BELParser
|
|
37
42
|
end
|
38
43
|
|
39
44
|
module Signatures
|
40
|
-
|
45
|
+
# TransportActivityOfComplexAbundanceSignature
|
41
46
|
class TransportActivityOfComplexAbundanceSignature
|
42
47
|
extend BELParser::Language::Signature
|
43
48
|
|
@@ -45,14 +50,14 @@ module BELParser
|
|
45
50
|
|
46
51
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
52
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
function(
|
54
|
+
identifier(
|
55
|
+
function_of(TransportActivity))),
|
56
|
+
argument(
|
57
|
+
term(
|
58
|
+
function(
|
59
|
+
identifier(
|
60
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::ComplexAbundance))))))
|
56
61
|
end
|
57
62
|
private_constant :AST
|
58
63
|
|
@@ -67,7 +72,8 @@ module BELParser
|
|
67
72
|
STRING_FORM
|
68
73
|
end
|
69
74
|
end
|
70
|
-
|
75
|
+
|
76
|
+
# TransportActivityOfProteinAbundanceSignature
|
71
77
|
class TransportActivityOfProteinAbundanceSignature
|
72
78
|
extend BELParser::Language::Signature
|
73
79
|
|
@@ -75,14 +81,14 @@ module BELParser
|
|
75
81
|
|
76
82
|
AST = BELParser::Language::Semantics::Builder.build do
|
77
83
|
term(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
84
|
+
function(
|
85
|
+
identifier(
|
86
|
+
function_of(TransportActivity))),
|
87
|
+
argument(
|
88
|
+
term(
|
89
|
+
function(
|
90
|
+
identifier(
|
91
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::ProteinAbundance))))))
|
86
92
|
end
|
87
93
|
private_constant :AST
|
88
94
|
|
@@ -97,7 +103,6 @@ module BELParser
|
|
97
103
|
STRING_FORM
|
98
104
|
end
|
99
105
|
end
|
100
|
-
|
101
106
|
end
|
102
107
|
|
103
108
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,16 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version1_0
|
9
9
|
module Functions
|
10
|
-
# Truncation: Indicates an abundance of proteins with truncation
|
10
|
+
# Truncation: Indicates an abundance of proteins with truncation
|
11
|
+
# sequence variants
|
11
12
|
class Truncation
|
12
13
|
extend Function
|
13
14
|
|
14
15
|
SHORT = :trunc
|
15
16
|
LONG = :truncation
|
16
17
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::Truncation
|
17
|
-
DESCRIPTION = 'Indicates an abundance of proteins with
|
18
|
+
DESCRIPTION = 'Indicates an abundance of proteins with
|
19
|
+
runcation sequence variants'.freeze
|
18
20
|
|
19
21
|
def self.short
|
20
22
|
SHORT
|
@@ -37,7 +39,7 @@ module BELParser
|
|
37
39
|
end
|
38
40
|
|
39
41
|
module Signatures
|
40
|
-
|
42
|
+
# TruncationWithPositionSignature
|
41
43
|
class TruncationWithPositionSignature
|
42
44
|
extend BELParser::Language::Signature
|
43
45
|
|
@@ -45,16 +47,16 @@ module BELParser
|
|
45
47
|
|
46
48
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
49
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
50
|
+
function(
|
51
|
+
identifier(
|
52
|
+
function_of(Truncation))),
|
53
|
+
argument(
|
54
|
+
parameter(
|
55
|
+
prefix(
|
56
|
+
any),
|
57
|
+
value(
|
58
|
+
value_type(
|
59
|
+
encoding_of(:*))))))
|
58
60
|
end
|
59
61
|
private_constant :AST
|
60
62
|
|
@@ -69,7 +71,6 @@ module BELParser
|
|
69
71
|
STRING_FORM
|
70
72
|
end
|
71
73
|
end
|
72
|
-
|
73
74
|
end
|
74
75
|
|
75
76
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -5,13 +5,27 @@ module BELParser
|
|
5
5
|
module Language
|
6
6
|
module Version1_0
|
7
7
|
module Relationships
|
8
|
-
# ActsIn: +A actsIn f(A)+ - This relationship links
|
8
|
+
# ActsIn: +A actsIn f(A)+ - This relationship links
|
9
|
+
# an abundance term to the activity term for the same
|
10
|
+
# abundance. This relationship is direct because it is a _self_
|
11
|
+
# relationship, the abundance acts in its own activity. For
|
12
|
+
# protein abundance p(A) and its molecular activity kin(p(A),
|
13
|
+
# +p(A) actsIn kin(p(A))+. This relationship is introduced by the
|
14
|
+
# BEL Compiler and may not be used by statements in BEL documents.
|
9
15
|
class ActsIn
|
10
16
|
extend Relationship
|
11
17
|
|
12
18
|
SHORT = :actsIn
|
13
19
|
LONG = :actsIn
|
14
|
-
DESCRIPTION = ' +A actsIn f(A)+ - This relationship links an
|
20
|
+
DESCRIPTION = ' +A actsIn f(A)+ - This relationship links an
|
21
|
+
bundance term to the activity term for the same
|
22
|
+
bundance. This relationship is direct because
|
23
|
+
t is a _self_ relationship, the abundance acts
|
24
|
+
n its own activity. For protein abundance p(A)
|
25
|
+
nd its molecular activity kin(p(A), +p(A) actsIn
|
26
|
+
in(p(A))+. This relationship is introduced by the
|
27
|
+
EL Compiler and may not be used by statements in
|
28
|
+
EL documents.'.freeze
|
15
29
|
|
16
30
|
def self.short
|
17
31
|
SHORT
|
@@ -5,13 +5,19 @@ module BELParser
|
|
5
5
|
module Language
|
6
6
|
module Version1_0
|
7
7
|
module Relationships
|
8
|
-
# Analogous: +A analogous B+ - For terms A and B, +A analogousTo
|
8
|
+
# Analogous: +A analogous B+ - For terms A and B, +A analogousTo
|
9
|
+
# B+ indicates that A and B represent abundances or molecular
|
10
|
+
# activities in different species which function in a similar
|
11
|
+
# manner.
|
9
12
|
class Analogous
|
10
13
|
extend Relationship
|
11
14
|
|
12
15
|
SHORT = :analogous
|
13
16
|
LONG = :analogous
|
14
|
-
DESCRIPTION = ' +A analogous B+ - For terms A and B, +A
|
17
|
+
DESCRIPTION = ' +A analogous B+ - For terms A and B, +A
|
18
|
+
nalogousTo B+ indicates that A and B represent
|
19
|
+
bundances or molecular activities in different
|
20
|
+
pecies which function in a similar manner.'.freeze
|
15
21
|
|
16
22
|
def self.short
|
17
23
|
SHORT
|
@@ -5,13 +5,24 @@ module BELParser
|
|
5
5
|
module Language
|
6
6
|
module Version1_0
|
7
7
|
module Relationships
|
8
|
-
# Association: +A -- B+ - For terms A and B, +A association
|
8
|
+
# Association: +A -- B+ - For terms A and B, +A association
|
9
|
+
# B+ or +A -- B+ indicates that A and B are associated in an
|
10
|
+
# unspecified manner. This relationship is used when not enough
|
11
|
+
# information about the association is available to describe
|
12
|
+
# it using more specific relationships, like increases or
|
13
|
+
# positiveCorrelation.
|
9
14
|
class Association
|
10
15
|
extend Relationship
|
11
16
|
|
12
17
|
SHORT = :'--'
|
13
18
|
LONG = :association
|
14
|
-
DESCRIPTION = ' +A -- B+ - For terms A and B, +A association B+
|
19
|
+
DESCRIPTION = ' +A -- B+ - For terms A and B, +A association B+
|
20
|
+
r +A -- B+ indicates that A and B are associated
|
21
|
+
n an unspecified manner. This relationship
|
22
|
+
s used when not enough information about the
|
23
|
+
ssociation is available to describe it using
|
24
|
+
ore specific relationships, like increases or
|
25
|
+
ositiveCorrelation.'.freeze
|
15
26
|
|
16
27
|
def self.short
|
17
28
|
SHORT
|
@@ -5,13 +5,20 @@ module BELParser
|
|
5
5
|
module Language
|
6
6
|
module Version1_0
|
7
7
|
module Relationships
|
8
|
-
# BiomarkerFor: +A biomarkerFor P+ - For term A and process term
|
8
|
+
# BiomarkerFor: +A biomarkerFor P+ - For term A and process term
|
9
|
+
# P, +A biomarkerFor P+ indicates that changes in or detection
|
10
|
+
# of A is used in some way to be a biomarker for pathology or
|
11
|
+
# biological process P.
|
9
12
|
class BiomarkerFor
|
10
13
|
extend Relationship
|
11
14
|
|
12
15
|
SHORT = :biomarkerFor
|
13
16
|
LONG = :biomarkerFor
|
14
|
-
DESCRIPTION = ' +A biomarkerFor P+ - For term A and process
|
17
|
+
DESCRIPTION = ' +A biomarkerFor P+ - For term A and process
|
18
|
+
erm P, +A biomarkerFor P+ indicates that changes
|
19
|
+
n or detection of A is used in some way to be
|
20
|
+
biomarker for pathology or biological process
|
21
|
+
.'.freeze
|
15
22
|
|
16
23
|
def self.short
|
17
24
|
SHORT
|