Skip to content
Snippets Groups Projects
Commit 885b8cd9 authored by Philippe Bordron's avatar Philippe Bordron
Browse files

fix: featureType as enum instead String

parent e764aa87
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,6 @@ type Chromosome implements Sequence @node(labels: ["Sequence", "Chromosome"]) {
features: [Sequence!]! @relationship(type: "HAS_FEATURE", direction: OUT, properties: "HasFeature")
"The type of feature"
featureType: String!
featureType: FeatureType!
}
`
\ No newline at end of file
......@@ -19,6 +19,20 @@ enum Strand {
NOT_STRANDED
}
enum FeatureType {
"A chromosome"
Chromosome
"A Generic Feature Sequence"
FeatureSequence
"A Guide"
Guide
"A Target"
Target
}
"""
Strand description possibility, like in gff3 format description
https://github.com/The-Sequence-Ontology/Specifications/blob/master/gff3.md
......
......@@ -42,7 +42,7 @@ type FeatureSequence implements Sequence @node(labels: ["Sequence", "FeatureSequ
features: [Sequence!]! @relationship(type: "HAS_FEATURE", direction: OUT, properties: "HasFeature")
"The type of feature"
featureType: String!
featureType: FeatureType!
"The parent sequence if any"
parent: Sequence @relationship(type: "HAS_FEATURE", direction: IN, properties: "HasFeature")
......
......@@ -45,7 +45,7 @@ type Guide implements Sequence @node(labels: ["Sequence", "Guide"]) {
features: [Sequence!]! @relationship(type: "HAS_FEATURE", direction: OUT, properties: "HasFeature")
"The type of feature"
featureType: String!
featureType: FeatureType!
"The modifications guided by the guide"
modifications: [Modification!]! @relationship(type: "GUIDE", direction: OUT)
......
......@@ -42,7 +42,7 @@ interface Sequence {
features: [Sequence!]! @relationship(type: "HAS_FEATURE", direction: OUT, properties: "HasFeature")
"The type of feature"
featureType: String!
featureType: FeatureType!
}
"""
......
......@@ -45,7 +45,7 @@ type Target implements Sequence @node(labels: ["Sequence", "Target"]) {
features: [Sequence!]! @relationship(type: "HAS_FEATURE", direction: OUT, properties: "HasFeature")
"The type of feature"
featureType: String!
featureType: FeatureType!
"The target is a feature from parent"
parent: Sequence @relationship(type: "HAS_FEATURE", direction: IN, properties: "HasFeature")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment