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
|
@@ -16,17 +16,17 @@ module BELParser
|
|
|
16
16
|
def size
|
|
17
17
|
count = 0
|
|
18
18
|
nodes = [semantic_ast]
|
|
19
|
-
|
|
19
|
+
until nodes.empty?
|
|
20
20
|
n = nodes.shift
|
|
21
21
|
if n
|
|
22
|
-
count += 1
|
|
22
|
+
count += 1
|
|
23
23
|
nodes.concat(n.children) if n.respond_to?(:children)
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
count
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
def <=>
|
|
29
|
+
def <=>(other)
|
|
30
30
|
return 1 if other.nil?
|
|
31
31
|
size <=> other.size
|
|
32
32
|
end
|
|
@@ -10,7 +10,7 @@ module BELParser
|
|
|
10
10
|
|
|
11
11
|
private_class_method :new
|
|
12
12
|
|
|
13
|
-
def self.map(func_node, spec,
|
|
13
|
+
def self.map(func_node, spec, _namespaces)
|
|
14
14
|
return nil unless func_node.is_a?(BELParser::Parsers::AST::Function)
|
|
15
15
|
|
|
16
16
|
function_name = func_node.identifier.string_literal
|
|
@@ -31,7 +31,7 @@ module BELParser
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def msg
|
|
34
|
-
%
|
|
34
|
+
%(Invalid function "#{invalid_function}".)
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -10,7 +10,7 @@ module BELParser
|
|
|
10
10
|
|
|
11
11
|
private_class_method :new
|
|
12
12
|
|
|
13
|
-
def self.map(stmt_node, spec,
|
|
13
|
+
def self.map(stmt_node, spec, _namespaces)
|
|
14
14
|
return nil unless stmt_node.is_a?(BELParser::Parsers::AST::Statement)
|
|
15
15
|
|
|
16
16
|
rel_name = stmt_node.relationship.string_literal
|
|
@@ -34,7 +34,7 @@ module BELParser
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def msg
|
|
37
|
-
%
|
|
37
|
+
%(Invalid relationship "#{relationship}".)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -4,16 +4,21 @@ require_relative 'syntax_warning'
|
|
|
4
4
|
|
|
5
5
|
module BELParser
|
|
6
6
|
module Language
|
|
7
|
+
# Syntax module aggregates the generic {SyntaxFunction}
|
|
8
|
+
# implementations that apply to all
|
|
9
|
+
# {BELParser::Language::Specification BEL specifications}.
|
|
7
10
|
module Syntax
|
|
8
11
|
def self.syntax_functions
|
|
9
|
-
|
|
10
|
-
const =
|
|
12
|
+
constants.collect do |symbol|
|
|
13
|
+
const = const_get(symbol)
|
|
11
14
|
const if
|
|
12
15
|
const.respond_to?(:include?) &&
|
|
13
16
|
const.include?(SyntaxFunction)
|
|
14
17
|
end.compact
|
|
15
18
|
end
|
|
16
19
|
|
|
20
|
+
# Valid defines a {SyntaxResult} that indicates successful syntax
|
|
21
|
+
# validation.
|
|
17
22
|
class Valid < SyntaxResult
|
|
18
23
|
def msg
|
|
19
24
|
'Syntax is valid.'
|
|
@@ -3,6 +3,8 @@ require_relative 'syntax_result'
|
|
|
3
3
|
module BELParser
|
|
4
4
|
module Language
|
|
5
5
|
module Syntax
|
|
6
|
+
# SyntaxError defines a {SyntaxResult} that should be regarded as an
|
|
7
|
+
# error with the expression.
|
|
6
8
|
class SyntaxError < SyntaxResult
|
|
7
9
|
def initialize(expression_node, specification)
|
|
8
10
|
super(expression_node, specification)
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
module BELParser
|
|
2
2
|
module Language
|
|
3
3
|
module Syntax
|
|
4
|
+
# SyntaxFunction provides a {#map} function that maps a
|
|
5
|
+
# {BELParser::Parsers::AST::Node} to one or more
|
|
6
|
+
# {SyntaxResult syntax results}.
|
|
4
7
|
module SyntaxFunction
|
|
5
8
|
# @abstract Include {SyntaxFunction} and override {#map} to check
|
|
6
9
|
# expression syntax.
|
|
7
|
-
def self.map(
|
|
10
|
+
def self.map(_expression_ast, _spec, _namespaces)
|
|
8
11
|
raise NotImplementedError, "#{__method__} is not implemented."
|
|
9
12
|
end
|
|
10
13
|
end
|
|
@@ -37,7 +37,7 @@ module BELParser
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
module Signatures
|
|
40
|
-
|
|
40
|
+
# AbundanceSignature
|
|
41
41
|
class AbundanceSignature
|
|
42
42
|
extend BELParser::Language::Signature
|
|
43
43
|
|
|
@@ -45,19 +45,19 @@ 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
|
-
|
|
48
|
+
function(
|
|
49
|
+
identifier(
|
|
50
|
+
function_of(Abundance))),
|
|
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(:Abundance))))))
|
|
61
61
|
end
|
|
62
62
|
private_constant :AST
|
|
63
63
|
|
|
@@ -72,7 +72,6 @@ module BELParser
|
|
|
72
72
|
STRING_FORM
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
|
-
|
|
76
75
|
end
|
|
77
76
|
|
|
78
77
|
SIGNATURES = Signatures.constants.map do |const|
|
|
@@ -37,7 +37,7 @@ module BELParser
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
module Signatures
|
|
40
|
-
|
|
40
|
+
# BiologicalProcessSignature
|
|
41
41
|
class BiologicalProcessSignature
|
|
42
42
|
extend BELParser::Language::Signature
|
|
43
43
|
|
|
@@ -45,19 +45,19 @@ 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
|
-
|
|
48
|
+
function(
|
|
49
|
+
identifier(
|
|
50
|
+
function_of(BiologicalProcess))),
|
|
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(:BiologicalProcess))))))
|
|
61
61
|
end
|
|
62
62
|
private_constant :AST
|
|
63
63
|
|
|
@@ -72,7 +72,6 @@ module BELParser
|
|
|
72
72
|
STRING_FORM
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
|
-
|
|
76
75
|
end
|
|
77
76
|
|
|
78
77
|
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
|
-
# CatalyticActivity: Denotes the frequency or abundance of events
|
|
10
|
+
# CatalyticActivity: Denotes the frequency or abundance of events
|
|
11
|
+
# where a member acts as an enzymatic catalyst of biochecmial
|
|
12
|
+
# reactions
|
|
11
13
|
class CatalyticActivity
|
|
12
14
|
extend Function
|
|
13
15
|
|
|
14
16
|
SHORT = :cat
|
|
15
17
|
LONG = :catalyticActivity
|
|
16
18
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::CatalyticActivity
|
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
20
|
+
here a member acts as an enzymatic catalyst of
|
|
21
|
+
iochecmial reactions'.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
|
+
# CatalyticActivityOfComplexAbundanceSignature
|
|
41
45
|
class CatalyticActivityOfComplexAbundanceSignature
|
|
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(CatalyticActivity))),
|
|
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
|
+
# CatalyticActivityOfProteinAbundanceSignature
|
|
71
76
|
class CatalyticActivityOfProteinAbundanceSignature
|
|
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(CatalyticActivity))),
|
|
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,18 @@ module BELParser
|
|
|
7
7
|
module Language
|
|
8
8
|
module Version1_0
|
|
9
9
|
module Functions
|
|
10
|
-
# CellSecretion: Denotes the frequency or abundance of events
|
|
10
|
+
# CellSecretion: Denotes the frequency or abundance of events
|
|
11
|
+
# in which members of an abundance move from cells to regions
|
|
12
|
+
# outside of the cells
|
|
11
13
|
class CellSecretion
|
|
12
14
|
extend Function
|
|
13
15
|
|
|
14
16
|
SHORT = :sec
|
|
15
17
|
LONG = :cellSecretion
|
|
16
18
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::Abundance
|
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
20
|
+
n which members of an abundance move from cells
|
|
21
|
+
o regions outside of the cells'.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
|
+
# CellSecretionSignature
|
|
41
45
|
class CellSecretionSignature
|
|
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(CellSecretion))),
|
|
55
|
+
argument(
|
|
56
|
+
term(
|
|
57
|
+
function(
|
|
58
|
+
identifier(
|
|
59
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::Abundance))))))
|
|
56
60
|
end
|
|
57
61
|
private_constant :AST
|
|
58
62
|
|
|
@@ -67,7 +71,6 @@ module BELParser
|
|
|
67
71
|
STRING_FORM
|
|
68
72
|
end
|
|
69
73
|
end
|
|
70
|
-
|
|
71
74
|
end
|
|
72
75
|
|
|
73
76
|
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
|
-
# CellSurfaceExpression: Denotes the frequency or abundance of
|
|
10
|
+
# CellSurfaceExpression: Denotes the frequency or abundance of
|
|
11
|
+
# events in which members of an abundance move to the surface
|
|
12
|
+
# of cells
|
|
11
13
|
class CellSurfaceExpression
|
|
12
14
|
extend Function
|
|
13
15
|
|
|
14
16
|
SHORT = :surf
|
|
15
17
|
LONG = :cellSurfaceExpression
|
|
16
18
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::Abundance
|
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events in
|
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events in
|
|
20
|
+
hich members of an abundance move to the surface
|
|
21
|
+
f cells'.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
|
+
# CellSurfaceExpressionSignature
|
|
41
45
|
class CellSurfaceExpressionSignature
|
|
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(CellSurfaceExpression))),
|
|
55
|
+
argument(
|
|
56
|
+
term(
|
|
57
|
+
function(
|
|
58
|
+
identifier(
|
|
59
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::Abundance))))))
|
|
56
60
|
end
|
|
57
61
|
private_constant :AST
|
|
58
62
|
|
|
@@ -67,7 +71,6 @@ module BELParser
|
|
|
67
71
|
STRING_FORM
|
|
68
72
|
end
|
|
69
73
|
end
|
|
70
|
-
|
|
71
74
|
end
|
|
72
75
|
|
|
73
76
|
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
|
-
# ChaperoneActivity: Denotes the frequency or abundance of
|
|
10
|
+
# ChaperoneActivity: Denotes the frequency or abundance of
|
|
11
|
+
# events in which a member binds to some substrate and acts as
|
|
12
|
+
# a chaperone for the substrate
|
|
11
13
|
class ChaperoneActivity
|
|
12
14
|
extend Function
|
|
13
15
|
|
|
14
16
|
SHORT = :chap
|
|
15
17
|
LONG = :chaperoneActivity
|
|
16
18
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::ChaperoneActivity
|
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
20
|
+
n which a member binds to some substrate and acts
|
|
21
|
+
s a chaperone for the substrate'.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
|
+
# ChaperoneActivityOfComplexAbundanceSignature
|
|
41
45
|
class ChaperoneActivityOfComplexAbundanceSignature
|
|
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(ChaperoneActivity))),
|
|
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
|
+
# ChaperoneActivityOfProteinAbundanceSignature
|
|
71
76
|
class ChaperoneActivityOfProteinAbundanceSignature
|
|
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(ChaperoneActivity))),
|
|
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|
|
|
@@ -14,7 +14,8 @@ module BELParser
|
|
|
14
14
|
SHORT = :complex
|
|
15
15
|
LONG = :complexAbundance
|
|
16
16
|
RETURN_TYPE = BELParser::Language::Version1_0::ReturnTypes::ComplexAbundance
|
|
17
|
-
DESCRIPTION = 'Denotes the abundance of a molecular
|
|
17
|
+
DESCRIPTION = 'Denotes the abundance of a molecular
|
|
18
|
+
omplex'.freeze
|
|
18
19
|
|
|
19
20
|
def self.short
|
|
20
21
|
SHORT
|
|
@@ -37,7 +38,7 @@ module BELParser
|
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
module Signatures
|
|
40
|
-
|
|
41
|
+
# NamedComplexAbundanceSignature
|
|
41
42
|
class NamedComplexAbundanceSignature
|
|
42
43
|
extend BELParser::Language::Signature
|
|
43
44
|
|
|
@@ -45,19 +46,19 @@ module BELParser
|
|
|
45
46
|
|
|
46
47
|
AST = BELParser::Language::Semantics::Builder.build do
|
|
47
48
|
term(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
function(
|
|
50
|
+
identifier(
|
|
51
|
+
function_of(ComplexAbundance))),
|
|
52
|
+
argument(
|
|
53
|
+
parameter(
|
|
54
|
+
prefix(
|
|
55
|
+
identifier(
|
|
56
|
+
has_namespace,
|
|
57
|
+
namespace_of(:*))),
|
|
58
|
+
value(
|
|
59
|
+
value_type(
|
|
60
|
+
has_encoding,
|
|
61
|
+
encoding_of(:Abundance))))))
|
|
61
62
|
end
|
|
62
63
|
private_constant :AST
|
|
63
64
|
|
|
@@ -72,7 +73,8 @@ module BELParser
|
|
|
72
73
|
STRING_FORM
|
|
73
74
|
end
|
|
74
75
|
end
|
|
75
|
-
|
|
76
|
+
|
|
77
|
+
# ComposedComplexAbundanceSignature
|
|
76
78
|
class ComposedComplexAbundanceSignature
|
|
77
79
|
extend BELParser::Language::Signature
|
|
78
80
|
|
|
@@ -80,14 +82,14 @@ module BELParser
|
|
|
80
82
|
|
|
81
83
|
AST = BELParser::Language::Semantics::Builder.build do
|
|
82
84
|
term(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
function(
|
|
86
|
+
identifier(
|
|
87
|
+
function_of(ComplexAbundance))),
|
|
88
|
+
variadic_arguments(
|
|
89
|
+
term(
|
|
90
|
+
function(
|
|
91
|
+
identifier(
|
|
92
|
+
return_type_of(BELParser::Language::Version1_0::ReturnTypes::Abundance))))))
|
|
91
93
|
end
|
|
92
94
|
private_constant :AST
|
|
93
95
|
|
|
@@ -102,7 +104,6 @@ module BELParser
|
|
|
102
104
|
STRING_FORM
|
|
103
105
|
end
|
|
104
106
|
end
|
|
105
|
-
|
|
106
107
|
end
|
|
107
108
|
|
|
108
109
|
SIGNATURES = Signatures.constants.map do |const|
|