bel_parser 1.0.0.alpha.1 → 1.0.0.alpha.2
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_termcheck +2 -2
- data/lib/bel_parser/expression/term_semantics.rb +2 -2
- data/lib/bel_parser/language/expression_validator.rb +42 -0
- data/lib/bel_parser/language/function.rb +8 -0
- data/lib/bel_parser/language/relationship.rb +57 -0
- data/lib/bel_parser/language/{semantic_ast.rb → semantics/semantic_ast.rb} +5 -27
- data/lib/bel_parser/language/semantics/semantic_match.rb +28 -0
- data/lib/bel_parser/language/semantics.rb +2 -0
- data/lib/bel_parser/language/specification.rb +34 -10
- data/lib/bel_parser/language/syntax.rb +0 -0
- data/lib/bel_parser/language/{version1 → version1_0}/functions/abundance.rb +4 -4
- data/lib/bel_parser/language/{version1 → version1_0}/functions/biological_process.rb +4 -4
- data/lib/bel_parser/language/{version1 → version1_0}/functions/catalytic_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/cell_secretion.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/cell_surface_expression.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/chaperone_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/complex_abundance.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/composite_abundance.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/degradation.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/fusion.rb +4 -4
- data/lib/bel_parser/language/{version1 → version1_0}/functions/gene_abundance.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/gtp_bound_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/kinase_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/list.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/micro_rna_abundance.rb +4 -4
- data/lib/bel_parser/language/{version1 → version1_0}/functions/molecular_activity.rb +5 -5
- data/lib/bel_parser/language/{version2 → version1_0}/functions/pathology.rb +4 -4
- data/lib/bel_parser/language/{version1 → version1_0}/functions/peptidase_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/phosphatase_activity.rb +6 -6
- data/lib/bel_parser/language/{version2 → version1_0}/functions/products.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/protein_abundance.rb +8 -8
- data/lib/bel_parser/language/{version1 → version1_0}/functions/protein_modification.rb +4 -4
- data/lib/bel_parser/language/{version2 → version1_0}/functions/reactants.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/reaction.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/ribosylation_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/rna_abundance.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/substitution.rb +4 -4
- data/lib/bel_parser/language/{version1 → version1_0}/functions/transcriptional_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/translocation.rb +5 -5
- data/lib/bel_parser/language/{version1 → version1_0}/functions/transport_activity.rb +6 -6
- data/lib/bel_parser/language/{version1 → version1_0}/functions/truncation.rb +4 -4
- data/lib/bel_parser/language/version1_0/relationships/acts_in.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/analogous.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/association.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/biomarker_for.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/causes_no_change.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/decreases.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/directly_decreases.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/directly_increases.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_component.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_components.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_member.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_members.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_modification.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_product.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/has_variant.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/includes.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/increases.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/is_a.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/negative_correlation.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/orthologous.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/positive_correlation.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/prognostic_biomarker_for.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/rate_limiting_step_of.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/reactant_in.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/sub_process_of.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/transcribed_to.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/translated_to.rb +31 -0
- data/lib/bel_parser/language/version1_0/relationships/translocates.rb +31 -0
- data/lib/bel_parser/language/{version2 → version1_0}/return_types/abundance.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/any.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/biological_process.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/catalytic_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/chaperone_activity.rb +1 -1
- data/lib/bel_parser/language/{version2 → version1_0}/return_types/complex_abundance.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/fusion.rb +1 -1
- data/lib/bel_parser/language/{version2 → version1_0}/return_types/gene_abundance.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/gtp_bound_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/kinase_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/list.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/micro_rna_abundance.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/molecular_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/pathology.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/peptidase_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/phosphatase_activity.rb +1 -1
- data/lib/bel_parser/language/{version2 → version1_0}/return_types/products.rb +1 -1
- data/lib/bel_parser/language/{version2 → version1_0}/return_types/protein_abundance.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/protein_modification.rb +1 -1
- data/lib/bel_parser/language/{version2 → version1_0}/return_types/reactants.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/ribosylation_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/rna_abundance.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/substitution.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/transcriptional_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/transport_activity.rb +1 -1
- data/lib/bel_parser/language/{version1 → version1_0}/return_types/truncation.rb +1 -1
- data/lib/bel_parser/language/version1_0/syntax/function.rb +29 -0
- data/lib/bel_parser/language/version1_0.rb +89 -0
- data/lib/bel_parser/language/{version2 → version2_0}/functions/abundance.rb +6 -6
- data/lib/bel_parser/language/{version2 → version2_0}/functions/activity.rb +7 -7
- data/lib/bel_parser/language/{version2 → version2_0}/functions/biological_process.rb +4 -4
- data/lib/bel_parser/language/{version2 → version2_0}/functions/cell_secretion.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/cell_surface_expression.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/complex_abundance.rb +8 -8
- data/lib/bel_parser/language/{version2 → version2_0}/functions/composite_abundance.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/degradation.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/fragment.rb +4 -4
- data/lib/bel_parser/language/{version2 → version2_0}/functions/from_location.rb +4 -4
- data/lib/bel_parser/language/{version2 → version2_0}/functions/fusion.rb +4 -4
- data/lib/bel_parser/language/{version2 → version2_0}/functions/gene_abundance.rb +7 -7
- data/lib/bel_parser/language/{version2 → version2_0}/functions/list.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/location.rb +4 -4
- data/lib/bel_parser/language/{version2 → version2_0}/functions/micro_rna_abundance.rb +6 -6
- data/lib/bel_parser/language/{version2 → version2_0}/functions/molecular_activity.rb +4 -4
- data/lib/bel_parser/language/{version1 → version2_0}/functions/pathology.rb +4 -4
- data/lib/bel_parser/language/{version1 → version2_0}/functions/products.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/protein_abundance.rb +9 -9
- data/lib/bel_parser/language/{version2 → version2_0}/functions/protein_modification.rb +7 -7
- data/lib/bel_parser/language/{version1 → version2_0}/functions/reactants.rb +5 -5
- data/lib/bel_parser/language/{version2 → version2_0}/functions/reaction.rb +6 -6
- data/lib/bel_parser/language/{version2 → version2_0}/functions/rna_abundance.rb +11 -11
- data/lib/bel_parser/language/{version2 → version2_0}/functions/to_location.rb +4 -4
- data/lib/bel_parser/language/{version2 → version2_0}/functions/translocation.rb +8 -8
- data/lib/bel_parser/language/{version2 → version2_0}/functions/variant.rb +4 -4
- data/lib/bel_parser/language/version2_0/relationships/acts_in.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/analogous.rb +35 -0
- data/lib/bel_parser/language/version2_0/relationships/association.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/biomarker_for.rb +35 -0
- data/lib/bel_parser/language/version2_0/relationships/causes_no_change.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/decreases.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/directly_decreases.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/directly_increases.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_component.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_components.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_member.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_members.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_modification.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_product.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/has_variant.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/includes.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/increases.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/is_a.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/negative_correlation.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/orthologous.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/positive_correlation.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/prognostic_biomarker_for.rb +35 -0
- data/lib/bel_parser/language/version2_0/relationships/rate_limiting_step_of.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/reactant_in.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/regulates.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/sub_process_of.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/transcribed_to.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/translated_to.rb +31 -0
- data/lib/bel_parser/language/version2_0/relationships/translocates.rb +31 -0
- data/lib/bel_parser/language/{version1 → version2_0}/return_types/abundance.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/activity.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/any.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/biological_process.rb +1 -1
- data/lib/bel_parser/language/{version1 → version2_0}/return_types/complex_abundance.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/fragment.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/from_location.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/fusion.rb +1 -1
- data/lib/bel_parser/language/{version1 → version2_0}/return_types/gene_abundance.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/list.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/location.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/micro_rna_abundance.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/molecular_activity.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/pathology.rb +1 -1
- data/lib/bel_parser/language/{version1 → version2_0}/return_types/products.rb +1 -1
- data/lib/bel_parser/language/{version1 → version2_0}/return_types/protein_abundance.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/protein_modification.rb +1 -1
- data/lib/bel_parser/language/{version1 → version2_0}/return_types/reactants.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/rna_abundance.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/to_location.rb +1 -1
- data/lib/bel_parser/language/{version2 → version2_0}/return_types/variant.rb +1 -1
- data/lib/bel_parser/language/version2_0.rb +73 -0
- data/lib/bel_parser/language.rb +90 -2
- data/lib/bel_parser/parsers/ast/node.rb +11 -1
- metadata +172 -111
- data/lib/bel_parser/language/syntax/expression/incomplete_node.rb +0 -14
- data/lib/bel_parser/language/syntax/expression/invalid_term_function.rb +0 -22
- data/lib/bel_parser/language/version1.rb +0 -50
- data/lib/bel_parser/language/version2.rb +0 -50
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# Products: Denotes the products of a reaction
|
11
11
|
class Products
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :products
|
15
15
|
LONG = :products
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Products
|
17
17
|
DESCRIPTION = 'Denotes the products of a reaction'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -52,7 +52,7 @@ module BELParser
|
|
52
52
|
term(
|
53
53
|
function(
|
54
54
|
identifier(
|
55
|
-
return_type_of(BELParser::Language::
|
55
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))))
|
56
56
|
end
|
57
57
|
private_constant :AST
|
58
58
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# ProteinAbundance: Denotes the abundance of a protein
|
11
11
|
class ProteinAbundance
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :p
|
15
15
|
LONG = :proteinAbundance
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::ProteinAbundance
|
17
17
|
DESCRIPTION = 'Denotes the abundance of a protein'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -97,7 +97,7 @@ module BELParser
|
|
97
97
|
term(
|
98
98
|
function(
|
99
99
|
identifier(
|
100
|
-
return_type_of(BELParser::Language::
|
100
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Fragment))))))
|
101
101
|
end
|
102
102
|
private_constant :AST
|
103
103
|
|
@@ -137,7 +137,7 @@ module BELParser
|
|
137
137
|
term(
|
138
138
|
function(
|
139
139
|
identifier(
|
140
|
-
return_type_of(BELParser::Language::
|
140
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Fusion))))))
|
141
141
|
end
|
142
142
|
private_constant :AST
|
143
143
|
|
@@ -177,7 +177,7 @@ module BELParser
|
|
177
177
|
term(
|
178
178
|
function(
|
179
179
|
identifier(
|
180
|
-
return_type_of(BELParser::Language::
|
180
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Location))))))
|
181
181
|
end
|
182
182
|
private_constant :AST
|
183
183
|
|
@@ -217,7 +217,7 @@ module BELParser
|
|
217
217
|
term(
|
218
218
|
function(
|
219
219
|
identifier(
|
220
|
-
return_type_of(BELParser::Language::
|
220
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::ProteinModification))))))
|
221
221
|
end
|
222
222
|
private_constant :AST
|
223
223
|
|
@@ -257,7 +257,7 @@ module BELParser
|
|
257
257
|
term(
|
258
258
|
function(
|
259
259
|
identifier(
|
260
|
-
return_type_of(BELParser::Language::
|
260
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Variant))))))
|
261
261
|
end
|
262
262
|
private_constant :AST
|
263
263
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# ProteinModification: Denotes a covalently modified protein abundance
|
11
11
|
class ProteinModification
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :pmod
|
15
15
|
LONG = :proteinModification
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::ProteinModification
|
17
17
|
DESCRIPTION = 'Denotes a covalently modified protein abundance'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -38,7 +38,7 @@ module BELParser
|
|
38
38
|
|
39
39
|
module Signatures
|
40
40
|
|
41
|
-
class
|
41
|
+
class ProteinModificationWithTypeSignature
|
42
42
|
extend BELParser::Language::Signature
|
43
43
|
|
44
44
|
private_class_method :new
|
@@ -71,7 +71,7 @@ module BELParser
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
-
class
|
74
|
+
class ProteinModificationWithTypeAminoSignature
|
75
75
|
extend BELParser::Language::Signature
|
76
76
|
|
77
77
|
private_class_method :new
|
@@ -110,7 +110,7 @@ module BELParser
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
class
|
113
|
+
class ProteinModificationWithTypeAminoPositionSignature
|
114
114
|
extend BELParser::Language::Signature
|
115
115
|
|
116
116
|
private_class_method :new
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# Reactants: Denotes the reactants of a reaction
|
11
11
|
class Reactants
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :reactants
|
15
15
|
LONG = :reactants
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Reactants
|
17
17
|
DESCRIPTION = 'Denotes the reactants of a reaction'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -52,7 +52,7 @@ module BELParser
|
|
52
52
|
term(
|
53
53
|
function(
|
54
54
|
identifier(
|
55
|
-
return_type_of(BELParser::Language::
|
55
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))))
|
56
56
|
end
|
57
57
|
private_constant :AST
|
58
58
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# Reaction: Denotes the frequency or abundance of events in a reaction
|
11
11
|
class Reaction
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :rxn
|
15
15
|
LONG = :reaction
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Abundance
|
17
17
|
DESCRIPTION = 'Denotes the frequency or abundance of events in a reaction'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -52,12 +52,12 @@ module BELParser
|
|
52
52
|
term(
|
53
53
|
function(
|
54
54
|
identifier(
|
55
|
-
return_type_of(BELParser::Language::
|
55
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Reactants))))),
|
56
56
|
argument(
|
57
57
|
term(
|
58
58
|
function(
|
59
59
|
identifier(
|
60
|
-
return_type_of(BELParser::Language::
|
60
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Products))))))
|
61
61
|
end
|
62
62
|
private_constant :AST
|
63
63
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# RNAAbundance: Denotes the abundance of a gene
|
11
11
|
class RNAAbundance
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :r
|
15
15
|
LONG = :rnaAbundance
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::GeneAbundance
|
17
17
|
DESCRIPTION = 'Denotes the abundance of a gene'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -38,7 +38,7 @@ module BELParser
|
|
38
38
|
|
39
39
|
module Signatures
|
40
40
|
|
41
|
-
class
|
41
|
+
class RNAAbundanceSignature
|
42
42
|
extend BELParser::Language::Signature
|
43
43
|
|
44
44
|
private_class_method :new
|
@@ -73,7 +73,7 @@ module BELParser
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
class
|
76
|
+
class RNAAbundanceWithFusionSignature
|
77
77
|
extend BELParser::Language::Signature
|
78
78
|
|
79
79
|
private_class_method :new
|
@@ -87,7 +87,7 @@ module BELParser
|
|
87
87
|
term(
|
88
88
|
function(
|
89
89
|
identifier(
|
90
|
-
return_type_of(BELParser::Language::
|
90
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Fusion))))))
|
91
91
|
end
|
92
92
|
private_constant :AST
|
93
93
|
|
@@ -103,7 +103,7 @@ module BELParser
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
-
class
|
106
|
+
class RNAAbundanceWithLocationSignature
|
107
107
|
extend BELParser::Language::Signature
|
108
108
|
|
109
109
|
private_class_method :new
|
@@ -127,7 +127,7 @@ module BELParser
|
|
127
127
|
term(
|
128
128
|
function(
|
129
129
|
identifier(
|
130
|
-
return_type_of(BELParser::Language::
|
130
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Location))))))
|
131
131
|
end
|
132
132
|
private_constant :AST
|
133
133
|
|
@@ -143,7 +143,7 @@ module BELParser
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
class
|
146
|
+
class RNAAbundanceWithVariantSignature
|
147
147
|
extend BELParser::Language::Signature
|
148
148
|
|
149
149
|
private_class_method :new
|
@@ -167,7 +167,7 @@ module BELParser
|
|
167
167
|
term(
|
168
168
|
function(
|
169
169
|
identifier(
|
170
|
-
return_type_of(BELParser::Language::
|
170
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Variant))))))
|
171
171
|
end
|
172
172
|
private_constant :AST
|
173
173
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# ToLocation: Denotes the to cellular location of the abundance.
|
11
11
|
class ToLocation
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :toLoc
|
15
15
|
LONG = :toLocation
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::ToLocation
|
17
17
|
DESCRIPTION = 'Denotes the to cellular location of the abundance.'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# Translocation: Denotes the frequency or abundance of events in which members move between locations
|
11
11
|
class Translocation
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :tloc
|
15
15
|
LONG = :translocation
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Abundance
|
17
17
|
DESCRIPTION = 'Denotes the frequency or abundance of events in which members move between locations'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -38,7 +38,7 @@ module BELParser
|
|
38
38
|
|
39
39
|
module Signatures
|
40
40
|
|
41
|
-
class
|
41
|
+
class TranslocationSignature
|
42
42
|
extend BELParser::Language::Signature
|
43
43
|
|
44
44
|
private_class_method :new
|
@@ -52,17 +52,17 @@ module BELParser
|
|
52
52
|
term(
|
53
53
|
function(
|
54
54
|
identifier(
|
55
|
-
return_type_of(BELParser::Language::
|
55
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))),
|
56
56
|
argument(
|
57
57
|
term(
|
58
58
|
function(
|
59
59
|
identifier(
|
60
|
-
return_type_of(BELParser::Language::
|
60
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::FromLocation))))),
|
61
61
|
argument(
|
62
62
|
term(
|
63
63
|
function(
|
64
64
|
identifier(
|
65
|
-
return_type_of(BELParser::Language::
|
65
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::ToLocation))))))
|
66
66
|
end
|
67
67
|
private_constant :AST
|
68
68
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require_relative '../../
|
1
|
+
require_relative '../../version2_0'
|
2
2
|
require_relative '../../function'
|
3
3
|
require_relative '../../signature'
|
4
|
-
require_relative '../../
|
4
|
+
require_relative '../../semantics'
|
5
5
|
|
6
6
|
module BELParser
|
7
7
|
module Language
|
8
|
-
module
|
8
|
+
module Version2_0
|
9
9
|
module Functions
|
10
10
|
# Variant: Denotes a sequence variant of the specified abundance.
|
11
11
|
class Variant
|
@@ -13,7 +13,7 @@ module BELParser
|
|
13
13
|
|
14
14
|
SHORT = :var
|
15
15
|
LONG = :variant
|
16
|
-
RETURN_TYPE = BELParser::Language::
|
16
|
+
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Variant
|
17
17
|
DESCRIPTION = 'Denotes a sequence variant of the specified abundance.'.freeze
|
18
18
|
|
19
19
|
def self.short
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# ActsIn: +A actsIn f(A)+ - This relationship links an abundance term to the activity term for the same abundance. This relationship is direct because it is a _self_ relationship, the abundance acts in its own activity. For protein abundance p(A) and its molecular activity kin(p(A), +p(A) actsIn kin(p(A))+. This relationship is introduced by the BEL Compiler and may not be used by statements in BEL documents.
|
9
|
+
class ActsIn
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :actsIn
|
13
|
+
LONG = :actsIn
|
14
|
+
DESCRIPTION = ' +A actsIn f(A)+ - This relationship links an abundance term to the activity term for the same abundance. This relationship is direct because it is a _self_ relationship, the abundance acts in its own activity. For protein abundance p(A) and its molecular activity kin(p(A), +p(A) actsIn kin(p(A))+. This relationship is introduced by the BEL Compiler and may not be used by statements in BEL documents.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# Analogous: +A analogous B+ - For terms A and B, +A analogousTo B+ indicates that A and B represent abundances or molecular activities in different species which function in a similar manner.
|
9
|
+
class Analogous
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :analogous
|
13
|
+
LONG = :analogous
|
14
|
+
DESCRIPTION = ' +A analogous B+ - For terms A and B, +A analogousTo B+ indicates that A and B represent abundances or molecular activities in different species which function in a similar manner.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.deprecated?
|
29
|
+
true
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# Association: +A -- B+ - For terms A and B, +A association B+ or +A -- B+ indicates that A and B are associated in an unspecified manner. This relationship is used when not enough information about the association is available to describe it using more specific relationships, like increases or positiveCorrelation.
|
9
|
+
class Association
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :'--'
|
13
|
+
LONG = :association
|
14
|
+
DESCRIPTION = ' +A -- B+ - For terms A and B, +A association B+ or +A -- B+ indicates that A and B are associated in an unspecified manner. This relationship is used when not enough information about the association is available to describe it using more specific relationships, like increases or positiveCorrelation.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# BiomarkerFor: +A biomarkerFor P+ - For term A and process term P, +A biomarkerFor P+ indicates that changes in or detection of A is used in some way to be a biomarker for pathology or biological process P.
|
9
|
+
class BiomarkerFor
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :biomarkerFor
|
13
|
+
LONG = :biomarkerFor
|
14
|
+
DESCRIPTION = ' +A biomarkerFor P+ - For term A and process term P, +A biomarkerFor P+ indicates that changes in or detection of A is used in some way to be a biomarker for pathology or biological process P.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.deprecated?
|
29
|
+
true
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# CausesNoChange: +A causesNoChange B+ - For terms A and B, +A causesNoChange B+ indicates that B was observed not to change in response to changes in A. Statements using this relationship correspond to cases where explicit measurement of B demonstrates lack of significant change, not for cases where the state of B is unknown.
|
9
|
+
class CausesNoChange
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :causesNoChange
|
13
|
+
LONG = :causesNoChange
|
14
|
+
DESCRIPTION = ' +A causesNoChange B+ - For terms A and B, +A causesNoChange B+ indicates that B was observed not to change in response to changes in A. Statements using this relationship correspond to cases where explicit measurement of B demonstrates lack of significant change, not for cases where the state of B is unknown.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# Decreases: +A -| B+ - For terms A and B, +A decreases B or A -| B+ indicates that increases in A have been observed to cause decreases in B. +A decreases B+ also represents cases where decreases in A have been observed to cause increases in B, for example, in recording the results of gene deletion or other inhibition experiments. A is a BEL Term and B is either a BEL Term or a BEL Statement. The relationship does not indicate that the changes in A are either necessary for changes in B, nor does it indicate that changes in A are sufficient to cause changes in B.
|
9
|
+
class Decreases
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :'-|'
|
13
|
+
LONG = :decreases
|
14
|
+
DESCRIPTION = ' +A -| B+ - For terms A and B, +A decreases B or A -| B+ indicates that increases in A have been observed to cause decreases in B. +A decreases B+ also represents cases where decreases in A have been observed to cause increases in B, for example, in recording the results of gene deletion or other inhibition experiments. A is a BEL Term and B is either a BEL Term or a BEL Statement. The relationship does not indicate that the changes in A are either necessary for changes in B, nor does it indicate that changes in A are sufficient to cause changes in B.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../../version2_0'
|
2
|
+
require_relative '../../relationship'
|
3
|
+
|
4
|
+
module BELParser
|
5
|
+
module Language
|
6
|
+
module Version2_0
|
7
|
+
module Relationships
|
8
|
+
# DirectlyDecreases: +A =| B+ - For terms A and B, +A directlyDecreases B or A =| B+ indicates A decreases B and that the mechanism of the causal relationship is based on physical interaction of entities related to A and B. This is a direct version of the decreases relationship.
|
9
|
+
class DirectlyDecreases
|
10
|
+
extend Relationship
|
11
|
+
|
12
|
+
SHORT = :'=|'
|
13
|
+
LONG = :directlyDecreases
|
14
|
+
DESCRIPTION = ' +A =| B+ - For terms A and B, +A directlyDecreases B or A =| B+ indicates A decreases B and that the mechanism of the causal relationship is based on physical interaction of entities related to A and B. This is a direct version of the decreases relationship.'.freeze
|
15
|
+
|
16
|
+
def self.short
|
17
|
+
SHORT
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.long
|
21
|
+
LONG
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.description
|
25
|
+
DESCRIPTION
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|