bel_parser 1.0.0.alpha.7 → 1.0.0.alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gemspec +1 -1
- data/VERSION +1 -1
- data/bin/bel2_validator +7 -4
- data/lib/bel_parser/ast_filter.rb +2 -2
- data/lib/bel_parser/ast_generator.rb +11 -18
- data/lib/bel_parser/language/expression_validator.rb +8 -0
- data/lib/bel_parser/language/quoting.rb +19 -22
- data/lib/bel_parser/language/semantics/deeply_nested_statement.rb +65 -0
- data/lib/bel_parser/language/semantics/function_deprecation.rb +36 -0
- data/lib/bel_parser/language/semantics/list_function_subject.rb +45 -0
- data/lib/bel_parser/language/semantics/relationship_deprecation.rb +36 -0
- data/lib/bel_parser/language/semantics/signature_mapping.rb +30 -16
- data/lib/bel_parser/language/semantics.rb +7 -2
- data/lib/bel_parser/language/semantics_ast.rb +22 -12
- data/lib/bel_parser/language/semantics_function.rb +4 -1
- data/lib/bel_parser/language/semantics_result.rb +1 -0
- data/lib/bel_parser/language/semantics_warning.rb +2 -0
- data/lib/bel_parser/language/signature.rb +3 -3
- data/lib/bel_parser/language/syntax/invalid_function.rb +2 -2
- data/lib/bel_parser/language/syntax/invalid_relationship.rb +2 -2
- data/lib/bel_parser/language/syntax/undefined_namespace.rb +0 -1
- data/lib/bel_parser/language/syntax.rb +7 -2
- data/lib/bel_parser/language/syntax_error.rb +2 -0
- data/lib/bel_parser/language/syntax_function.rb +4 -1
- data/lib/bel_parser/language/syntax_result.rb +1 -0
- data/lib/bel_parser/language/syntax_warning.rb +2 -0
- data/lib/bel_parser/language/version1_0/functions/abundance.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/biological_process.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/catalytic_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/cell_secretion.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/cell_surface_expression.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/chaperone_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/complex_abundance.rb +26 -25
- data/lib/bel_parser/language/version1_0/functions/composite_abundance.rb +13 -12
- data/lib/bel_parser/language/version1_0/functions/degradation.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/fusion.rb +135 -129
- data/lib/bel_parser/language/version1_0/functions/gene_abundance.rb +34 -34
- data/lib/bel_parser/language/version1_0/functions/gtp_bound_activity.rb +24 -21
- data/lib/bel_parser/language/version1_0/functions/kinase_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/list.rb +24 -24
- data/lib/bel_parser/language/version1_0/functions/micro_rna_abundance.rb +18 -17
- data/lib/bel_parser/language/version1_0/functions/molecular_activity.rb +14 -12
- data/lib/bel_parser/language/version1_0/functions/pathology.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/peptidase_activity.rb +23 -21
- data/lib/bel_parser/language/version1_0/functions/phosphatase_activity.rb +23 -21
- data/lib/bel_parser/language/version1_0/functions/products.rb +9 -10
- data/lib/bel_parser/language/version1_0/functions/protein_abundance.rb +94 -91
- data/lib/bel_parser/language/version1_0/functions/protein_modification.rb +60 -57
- data/lib/bel_parser/language/version1_0/functions/reactants.rb +9 -10
- data/lib/bel_parser/language/version1_0/functions/reaction.rb +18 -17
- data/lib/bel_parser/language/version1_0/functions/ribosylation_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/rna_abundance.rb +34 -34
- data/lib/bel_parser/language/version1_0/functions/substitution.rb +29 -28
- data/lib/bel_parser/language/version1_0/functions/transcriptional_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/translocation.rb +33 -32
- data/lib/bel_parser/language/version1_0/functions/transport_activity.rb +26 -21
- data/lib/bel_parser/language/version1_0/functions/truncation.rb +15 -14
- data/lib/bel_parser/language/version1_0/relationships/acts_in.rb +16 -2
- data/lib/bel_parser/language/version1_0/relationships/analogous.rb +8 -2
- data/lib/bel_parser/language/version1_0/relationships/association.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/biomarker_for.rb +9 -2
- data/lib/bel_parser/language/version1_0/relationships/causes_no_change.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/decreases.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/directly_decreases.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/directly_increases.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/has_component.rb +25 -2
- data/lib/bel_parser/language/version1_0/relationships/has_components.rb +20 -2
- data/lib/bel_parser/language/version1_0/relationships/has_member.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/has_members.rb +20 -2
- data/lib/bel_parser/language/version1_0/relationships/has_modification.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/has_product.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/has_variant.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/includes.rb +18 -2
- data/lib/bel_parser/language/version1_0/relationships/increases.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/is_a.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/negative_correlation.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/orthologous.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/positive_correlation.rb +9 -2
- data/lib/bel_parser/language/version1_0/relationships/prognostic_biomarker_for.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/rate_limiting_step_of.rb +16 -2
- data/lib/bel_parser/language/version1_0/relationships/reactant_in.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/sub_process_of.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/transcribed_to.rb +12 -2
- data/lib/bel_parser/language/version1_0/relationships/translated_to.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/translocates.rb +16 -2
- data/lib/bel_parser/language/version1_0/syntax/function.rb +0 -1
- data/lib/bel_parser/language/version1_0.rb +13 -2
- data/lib/bel_parser/language/version2_0/functions/abundance.rb +54 -53
- data/lib/bel_parser/language/version2_0/functions/activity.rb +8 -5
- data/lib/bel_parser/language/version2_0/functions/biological_process.rb +16 -16
- data/lib/bel_parser/language/version2_0/functions/cell_secretion.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/cell_surface_expression.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/complex_abundance.rb +61 -58
- data/lib/bel_parser/language/version2_0/functions/composite_abundance.rb +13 -12
- data/lib/bel_parser/language/version2_0/functions/degradation.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/fragment.rb +8 -6
- data/lib/bel_parser/language/version2_0/functions/from_location.rb +18 -17
- data/lib/bel_parser/language/version2_0/functions/fusion.rb +120 -117
- data/lib/bel_parser/language/version2_0/functions/gene_abundance.rb +64 -62
- data/lib/bel_parser/language/version2_0/functions/list.rb +24 -24
- data/lib/bel_parser/language/version2_0/functions/location.rb +14 -15
- data/lib/bel_parser/language/version2_0/functions/micro_rna_abundance.rb +58 -55
- data/lib/bel_parser/language/version2_0/functions/molecular_activity.rb +16 -14
- data/lib/bel_parser/language/version2_0/functions/pathology.rb +14 -15
- data/lib/bel_parser/language/version2_0/functions/products.rb +9 -10
- data/lib/bel_parser/language/version2_0/functions/protein_abundance.rb +96 -92
- data/lib/bel_parser/language/version2_0/functions/protein_modification.rb +57 -54
- data/lib/bel_parser/language/version2_0/functions/reactants.rb +9 -10
- data/lib/bel_parser/language/version2_0/functions/reaction.rb +18 -17
- data/lib/bel_parser/language/version2_0/functions/rna_abundance.rb +64 -62
- data/lib/bel_parser/language/version2_0/functions/to_location.rb +16 -16
- data/lib/bel_parser/language/version2_0/functions/translocation.rb +23 -22
- data/lib/bel_parser/language/version2_0/functions/variant.rb +13 -13
- data/lib/bel_parser/language/version2_0/relationships/acts_in.rb +16 -2
- data/lib/bel_parser/language/version2_0/relationships/analogous.rb +8 -2
- data/lib/bel_parser/language/version2_0/relationships/association.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/biomarker_for.rb +9 -2
- data/lib/bel_parser/language/version2_0/relationships/causes_no_change.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/decreases.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/directly_decreases.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/directly_increases.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/has_component.rb +25 -2
- data/lib/bel_parser/language/version2_0/relationships/has_components.rb +20 -2
- data/lib/bel_parser/language/version2_0/relationships/has_member.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/has_members.rb +20 -2
- data/lib/bel_parser/language/version2_0/relationships/has_modification.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/has_product.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/has_variant.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/includes.rb +18 -2
- data/lib/bel_parser/language/version2_0/relationships/increases.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/is_a.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/negative_correlation.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/orthologous.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/positive_correlation.rb +9 -2
- data/lib/bel_parser/language/version2_0/relationships/prognostic_biomarker_for.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/rate_limiting_step_of.rb +16 -2
- data/lib/bel_parser/language/version2_0/relationships/reactant_in.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/regulates.rb +14 -2
- data/lib/bel_parser/language/version2_0/relationships/sub_process_of.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/transcribed_to.rb +12 -2
- data/lib/bel_parser/language/version2_0/relationships/translated_to.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/translocates.rb +16 -2
- data/lib/bel_parser/language.rb +18 -8
- data/lib/bel_parser/parser.rb +1 -0
- data/lib/bel_parser/parsers/ast/node.rb +112 -74
- data/lib/bel_parser/parsers/bel_script/set.rl +1 -1
- data/lib/bel_parser/parsers/bel_script/set_document.rb +7087 -0
- data/lib/bel_parser/parsers/bel_script/set_document.rl +97 -0
- data/lib/bel_parser/parsers/bel_script.rb +1 -0
- data/lib/bel_parser/parsers/common/common.rl +1 -1
- data/lib/bel_parser/script/parser.rb +1 -0
- metadata +8 -2
|
@@ -5,13 +5,33 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# SubProcessOf: +A subProcessOf B+ - For process, activity, or
|
|
8
|
+
# SubProcessOf: +A subProcessOf B+ - For process, activity, or
|
|
9
|
+
# transformation term A and process term B, +A subProcessOf B+
|
|
10
|
+
# indicates that instances of process B, by default, include
|
|
11
|
+
# one or more instances of A in their composition. For
|
|
12
|
+
# example, the reduction of HMG-CoA to mevalonate is
|
|
13
|
+
# a subprocess of cholesterol biosynthesis: <pre> <code>
|
|
14
|
+
# rxn(reactants(a(CHEBI:"(S)-3-hydroxy-3-methylglutaryl-CoA"),\
|
|
15
|
+
# a(CHEBI:NADPH), a(CHEBI:hydron)), products(a(CHEBI:Mevalonate),\
|
|
16
|
+
# a(CHEBI:"CoA-SH"), a(CHEBI:"NADP+"))) subProcessOf
|
|
17
|
+
# bp(GO:"cholesterol\ biosynthetic process") </code> </pre>
|
|
9
18
|
class SubProcessOf
|
|
10
19
|
extend Relationship
|
|
11
20
|
|
|
12
21
|
SHORT = :subProcessOf
|
|
13
22
|
LONG = :subProcessOf
|
|
14
|
-
DESCRIPTION = ' +A subProcessOf B+ - For process, activity,
|
|
23
|
+
DESCRIPTION = ' +A subProcessOf B+ - For process, activity,
|
|
24
|
+
r transformation term A and process term B,
|
|
25
|
+
A subProcessOf B+ indicates that instances
|
|
26
|
+
f process B, by default, include one or more
|
|
27
|
+
nstances of A in their composition. For example,
|
|
28
|
+
he reduction of HMG-CoA to mevalonate is a
|
|
29
|
+
ubprocess of cholesterol biosynthesis: <pre> <code>
|
|
30
|
+
xn(reactants(a(CHEBI:"(S)-3-hydroxy-3-methylglutaryl-CoA"),\
|
|
31
|
+
(CHEBI:NADPH), a(CHEBI:hydron)),
|
|
32
|
+
roducts(a(CHEBI:Mevalonate),\ a(CHEBI:"CoA-SH"),
|
|
33
|
+
(CHEBI:"NADP+"))) subProcessOf bp(GO:"cholesterol\
|
|
34
|
+
iosynthetic process") </code> </pre>'.freeze
|
|
15
35
|
|
|
16
36
|
def self.short
|
|
17
37
|
SHORT
|
|
@@ -5,13 +5,23 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# TranscribedTo: +G :> R+ - For rnaAbundance term R and
|
|
8
|
+
# TranscribedTo: +G :> R+ - For rnaAbundance term R and
|
|
9
|
+
# geneAbundance term G, +G transcribedTo R+ or +G :> R+ indicates
|
|
10
|
+
# that members of R are produced by the transcription of members
|
|
11
|
+
# of G. For example: +g(HGNC:AKT1) :> r(HGNC:AKT1)+ indicates
|
|
12
|
+
# that the human AKT1 RNA is transcribed from the human AKT1 gene.
|
|
9
13
|
class TranscribedTo
|
|
10
14
|
extend Relationship
|
|
11
15
|
|
|
12
16
|
SHORT = :':>'
|
|
13
17
|
LONG = :transcribedTo
|
|
14
|
-
DESCRIPTION = ' +G :> R+ - For rnaAbundance term R and
|
|
18
|
+
DESCRIPTION = ' +G :> R+ - For rnaAbundance term R and
|
|
19
|
+
eneAbundance term G, +G transcribedTo R+ or +G :>
|
|
20
|
+
+ indicates that members of R are produced by
|
|
21
|
+
he transcription of members of G. For example:
|
|
22
|
+
g(HGNC:AKT1) :> r(HGNC:AKT1)+ indicates that
|
|
23
|
+
he human AKT1 RNA is transcribed from the human
|
|
24
|
+
KT1 gene.'.freeze
|
|
15
25
|
|
|
16
26
|
def self.short
|
|
17
27
|
SHORT
|
|
@@ -5,13 +5,24 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# TranslatedTo: +R >> P+ - For rnaAbundance term R and
|
|
8
|
+
# TranslatedTo: +R >> P+ - For rnaAbundance term R and
|
|
9
|
+
# proteinAbundance term P, +R translatedTo P+ or +R >> P+
|
|
10
|
+
# indicates that members of P are produced by the translation
|
|
11
|
+
# of members of R. For example: +r(HGNC:AKT1) >> p(HGNC:AKT1)+
|
|
12
|
+
# indicates that AKT1 protein is produced by translation of
|
|
13
|
+
# AKT1 RNA.
|
|
9
14
|
class TranslatedTo
|
|
10
15
|
extend Relationship
|
|
11
16
|
|
|
12
17
|
SHORT = :>>
|
|
13
18
|
LONG = :translatedTo
|
|
14
|
-
DESCRIPTION = ' +R >> P+ - For rnaAbundance term R and
|
|
19
|
+
DESCRIPTION = ' +R >> P+ - For rnaAbundance term R and
|
|
20
|
+
roteinAbundance term P, +R translatedTo P+ or
|
|
21
|
+
R >> P+ indicates that members of P are produced
|
|
22
|
+
y the translation of members of R. For example:
|
|
23
|
+
r(HGNC:AKT1) >> p(HGNC:AKT1)+ indicates that
|
|
24
|
+
KT1 protein is produced by translation of AKT1
|
|
25
|
+
NA.'.freeze
|
|
15
26
|
|
|
16
27
|
def self.short
|
|
17
28
|
SHORT
|
|
@@ -5,13 +5,27 @@ module BELParser
|
|
|
5
5
|
module Language
|
|
6
6
|
module Version1_0
|
|
7
7
|
module Relationships
|
|
8
|
-
# Translocates: +translocation(A, ns1:v1, ns2:v2) translocates
|
|
8
|
+
# Translocates: +translocation(A, ns1:v1, ns2:v2) translocates
|
|
9
|
+
# A+ - This relationship links the abundance term in a
|
|
10
|
+
# +translocation()+ to the translocation. This relationship is
|
|
11
|
+
# direct because it is a _self_ relationship. The translocated
|
|
12
|
+
# abundance is directly acted on by the translocation
|
|
13
|
+
# process. This relationship is introduced by the BEL Compiler
|
|
14
|
+
# and may not be used by statements in BEL documents.
|
|
9
15
|
class Translocates
|
|
10
16
|
extend Relationship
|
|
11
17
|
|
|
12
18
|
SHORT = :translocates
|
|
13
19
|
LONG = :translocates
|
|
14
|
-
DESCRIPTION = ' +translocation(A, ns1:v1, ns2:v2) translocates
|
|
20
|
+
DESCRIPTION = ' +translocation(A, ns1:v1, ns2:v2) translocates
|
|
21
|
+
+ - This relationship links the abundance term
|
|
22
|
+
n a +translocation()+ to the translocation. This
|
|
23
|
+
elationship is direct because it is a _self_
|
|
24
|
+
elationship. The translocated abundance
|
|
25
|
+
s directly acted on by the translocation
|
|
26
|
+
rocess. 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
|
|
@@ -9,7 +9,14 @@ module BELParser
|
|
|
9
9
|
include BELParser::Language::Specification
|
|
10
10
|
def initialize
|
|
11
11
|
@version = '1.0'.freeze
|
|
12
|
+
load_return_types
|
|
13
|
+
load_functions
|
|
14
|
+
load_relationships
|
|
15
|
+
load_syntax
|
|
16
|
+
freeze
|
|
17
|
+
end
|
|
12
18
|
|
|
19
|
+
def load_return_types
|
|
13
20
|
# Collect return types
|
|
14
21
|
ret_classes = Version1_0::ReturnTypes.constants.collect do |symbol|
|
|
15
22
|
const = Version1_0::ReturnTypes.const_get(symbol)
|
|
@@ -17,7 +24,9 @@ module BELParser
|
|
|
17
24
|
end
|
|
18
25
|
@return_types = ret_classes.compact
|
|
19
26
|
@indexed_return_types = index_sym(@return_types)
|
|
27
|
+
end
|
|
20
28
|
|
|
29
|
+
def load_functions
|
|
21
30
|
# Collect functions
|
|
22
31
|
function_classes = Version1_0::Functions.constants.collect do |symbol|
|
|
23
32
|
const = Version1_0::Functions.const_get(symbol)
|
|
@@ -27,7 +36,9 @@ module BELParser
|
|
|
27
36
|
end
|
|
28
37
|
@functions = function_classes.compact
|
|
29
38
|
@indexed_functions = index_long_short(@functions)
|
|
39
|
+
end
|
|
30
40
|
|
|
41
|
+
def load_relationships
|
|
31
42
|
# Collect relationships
|
|
32
43
|
rel_classes = Version1_0::Relationships.constants.collect do |symbol|
|
|
33
44
|
const = Version1_0::Relationships.const_get(symbol)
|
|
@@ -37,15 +48,15 @@ module BELParser
|
|
|
37
48
|
end
|
|
38
49
|
@relationships = rel_classes.compact
|
|
39
50
|
@indexed_relationships = index_long_short(@relationships)
|
|
51
|
+
end
|
|
40
52
|
|
|
53
|
+
def load_syntax
|
|
41
54
|
# Collect syntax checkers.
|
|
42
55
|
syntax_classes = Version1_0::Syntax.constants.collect do |symbol|
|
|
43
56
|
const = Version1_0::Syntax.const_get(symbol)
|
|
44
57
|
const if const.respond_to?(:match)
|
|
45
58
|
end
|
|
46
59
|
@syntax = syntax_classes.compact
|
|
47
|
-
|
|
48
|
-
freeze
|
|
49
60
|
end
|
|
50
61
|
end
|
|
51
62
|
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,8 @@ module BELParser
|
|
|
72
72
|
STRING_FORM
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
|
-
|
|
75
|
+
|
|
76
|
+
# AbundanceWithLocationSignature
|
|
76
77
|
class AbundanceWithLocationSignature
|
|
77
78
|
extend BELParser::Language::Signature
|
|
78
79
|
|
|
@@ -80,24 +81,24 @@ module BELParser
|
|
|
80
81
|
|
|
81
82
|
AST = BELParser::Language::Semantics::Builder.build do
|
|
82
83
|
term(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
function(
|
|
85
|
+
identifier(
|
|
86
|
+
function_of(Abundance))),
|
|
87
|
+
argument(
|
|
88
|
+
parameter(
|
|
89
|
+
prefix(
|
|
90
|
+
identifier(
|
|
91
|
+
has_namespace,
|
|
92
|
+
namespace_of(:*))),
|
|
93
|
+
value(
|
|
94
|
+
value_type(
|
|
95
|
+
has_encoding,
|
|
96
|
+
encoding_of(:Abundance))))),
|
|
97
|
+
argument(
|
|
98
|
+
term(
|
|
99
|
+
function(
|
|
100
|
+
identifier(
|
|
101
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Location))))))
|
|
101
102
|
end
|
|
102
103
|
private_constant :AST
|
|
103
104
|
|
|
@@ -112,7 +113,8 @@ module BELParser
|
|
|
112
113
|
STRING_FORM
|
|
113
114
|
end
|
|
114
115
|
end
|
|
115
|
-
|
|
116
|
+
|
|
117
|
+
# AbundanceWithMolecularActivitySignature
|
|
116
118
|
class AbundanceWithMolecularActivitySignature
|
|
117
119
|
extend BELParser::Language::Signature
|
|
118
120
|
|
|
@@ -120,24 +122,24 @@ module BELParser
|
|
|
120
122
|
|
|
121
123
|
AST = BELParser::Language::Semantics::Builder.build do
|
|
122
124
|
term(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
125
|
+
function(
|
|
126
|
+
identifier(
|
|
127
|
+
function_of(Abundance))),
|
|
128
|
+
argument(
|
|
129
|
+
parameter(
|
|
130
|
+
prefix(
|
|
131
|
+
identifier(
|
|
132
|
+
has_namespace,
|
|
133
|
+
namespace_of(:*))),
|
|
134
|
+
value(
|
|
135
|
+
value_type(
|
|
136
|
+
has_encoding,
|
|
137
|
+
encoding_of(:Abundance))))),
|
|
138
|
+
argument(
|
|
139
|
+
term(
|
|
140
|
+
function(
|
|
141
|
+
identifier(
|
|
142
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::MolecularActivity))))))
|
|
141
143
|
end
|
|
142
144
|
private_constant :AST
|
|
143
145
|
|
|
@@ -152,7 +154,6 @@ module BELParser
|
|
|
152
154
|
STRING_FORM
|
|
153
155
|
end
|
|
154
156
|
end
|
|
155
|
-
|
|
156
157
|
end
|
|
157
158
|
|
|
158
159
|
SIGNATURES = Signatures.constants.map do |const|
|
|
@@ -7,14 +7,17 @@ module BELParser
|
|
|
7
7
|
module Language
|
|
8
8
|
module Version2_0
|
|
9
9
|
module Functions
|
|
10
|
-
# Activity: Denotes the frequency or abundance of events in
|
|
10
|
+
# Activity: Denotes the frequency or abundance of events in
|
|
11
|
+
# which a member acts as a causal agent at the molecular scale.
|
|
11
12
|
class Activity
|
|
12
13
|
extend BELParser::Language::Function
|
|
13
14
|
|
|
14
15
|
SHORT = :act
|
|
15
16
|
LONG = :activity
|
|
16
17
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Activity
|
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
18
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
|
19
|
+
n which a member acts as a causal agent at the
|
|
20
|
+
olecular scale.'.freeze
|
|
18
21
|
|
|
19
22
|
def self.short
|
|
20
23
|
SHORT
|
|
@@ -37,7 +40,7 @@ module BELParser
|
|
|
37
40
|
end
|
|
38
41
|
|
|
39
42
|
module Signatures
|
|
40
|
-
|
|
43
|
+
# ActivitySignature
|
|
41
44
|
class ActivitySignature
|
|
42
45
|
extend BELParser::Language::Signature
|
|
43
46
|
|
|
@@ -67,7 +70,8 @@ module BELParser
|
|
|
67
70
|
STRING_FORM
|
|
68
71
|
end
|
|
69
72
|
end
|
|
70
|
-
|
|
73
|
+
|
|
74
|
+
# ActivityWithSpecificActivityTypeSignature
|
|
71
75
|
class ActivityWithSpecificActivityTypeSignature
|
|
72
76
|
extend BELParser::Language::Signature
|
|
73
77
|
|
|
@@ -102,7 +106,6 @@ module BELParser
|
|
|
102
106
|
STRING_FORM
|
|
103
107
|
end
|
|
104
108
|
end
|
|
105
|
-
|
|
106
109
|
end
|
|
107
110
|
|
|
108
111
|
SIGNATURES = Signatures.constants.map do |const|
|
|
@@ -14,7 +14,8 @@ module BELParser
|
|
|
14
14
|
SHORT = :bp
|
|
15
15
|
LONG = :biologicalProcess
|
|
16
16
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::BiologicalProcess
|
|
17
|
-
DESCRIPTION = 'Denotes a process or population of
|
|
17
|
+
DESCRIPTION = 'Denotes a process or population of
|
|
18
|
+
vents.'.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
|
+
# BiologicalProcessSignature
|
|
41
42
|
class BiologicalProcessSignature
|
|
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(BiologicalProcess))),
|
|
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(:BiologicalProcess))))))
|
|
61
62
|
end
|
|
62
63
|
private_constant :AST
|
|
63
64
|
|
|
@@ -72,7 +73,6 @@ module BELParser
|
|
|
72
73
|
STRING_FORM
|
|
73
74
|
end
|
|
74
75
|
end
|
|
75
|
-
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
SIGNATURES = Signatures.constants.map do |const|
|
|
@@ -7,14 +7,18 @@ module BELParser
|
|
|
7
7
|
module Language
|
|
8
8
|
module Version2_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::Version2_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::Version2_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 Version2_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::Version2_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::Version2_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|
|