2 from .
import _pyrest_core
7 class Sequence(_pyrest_core.BaseObject):
13 seq_region_name = property(_pyrest_core.fget(
"_seq_region_name"),
None,
None,
"""Name of the chromosome, scaffold, etc the feature is on""")
15 feature_type = property(_pyrest_core.fget(
"_feature_type"),
None,
None,
"""Type of this feature, usually redundant with the class itself (e.g. ExonFeature, TranscriptFeature, etc)""")
17 start = property(_pyrest_core.fget(
"_start"),
None,
None,
"""Start coordinate""")
19 end = property(_pyrest_core.fget(
"_end"),
None,
None,
"""End coordinate""")
21 strand = property(_pyrest_core.fget(
"_strand"),
None,
None,
"""Strand""")
23 assembly_name = property(_pyrest_core.fget(
"_assembly_name"),
None,
None,
"""Name of the genome assembly""")
28 id = property(_pyrest_core.fget(
"_id"),
None,
None,
"""No documentation""")
33 source = property(_pyrest_core.fget(
"_source"),
None,
None,
"""No documentation""")
35 constitutive = property(_pyrest_core.fget(
"_constitutive"),
None,
None,
"""No documentation""")
37 ensembl_phase = property(_pyrest_core.fget(
"_ensembl_phase"),
None,
None,
"""No documentation""")
39 ensembl_end_phase = property(_pyrest_core.fget(
"_ensembl_end_phase"),
None,
None,
"""No documentation""")
41 parent = property(_pyrest_core.fget(
"_parent"),
None,
None,
"""No documentation""")
43 version = property(_pyrest_core.fget(
"_version"),
None,
None,
"""No documentation""")
45 rank = property(_pyrest_core.fget(
"_rank"),
None,
None,
"""No documentation""")
50 description = property(_pyrest_core.fget(
"_description"),
None,
None,
"""No documentation""")
52 parent = property(_pyrest_core.fget(
"_parent"),
None,
None,
"""No documentation""")
54 interpro = property(_pyrest_core.fget(
"_interpro"),
None,
None,
"""No documentation""")
56 type = property(_pyrest_core.fget(
"_type"),
None,
None,
"""No documentation""")
61 biotype = property(_pyrest_core.fget(
"_biotype"),
None,
None,
"""No documentation""")
63 external_name = property(_pyrest_core.fget(
"_external_name"),
None,
None,
"""No documentation""")
65 description = property(_pyrest_core.fget(
"_description"),
None,
None,
"""No documentation""")
67 source = property(_pyrest_core.fget(
"_source"),
None,
None,
"""No documentation""")
69 version = property(_pyrest_core.fget(
"_version"),
None,
None,
"""No documentation""")
71 logic_name = property(_pyrest_core.fget(
"_logic_name"),
None,
None,
"""No documentation""")
76 translation = property(_pyrest_core.fget(
"_translation"),
None,
None,
"""No documentation""")
78 exon = property(_pyrest_core.fget(
"_exon"),
None,
None,
"""No documentation""")
80 parent = property(_pyrest_core.fget(
"_parent"),
None,
None,
"""No documentation""")
82 TranscriptFeature._construction_rules = {
"exon":ExonFeature,
"translation":TranslationFeature}
87 transcript = property(_pyrest_core.fget(
"_transcript"),
None,
None,
"""No documentation""")
89 GeneFeature._construction_rules = {
"transcript":TranscriptFeature}
94 chipseq_feature_type = property(_pyrest_core.fget(
"_chipseq_feature_type"),
None,
None,
"""ChipSeq type""")
96 cell_type = property(_pyrest_core.fget(
"_cell_type"),
None,
None,
"""Cell type""")
101 binding_matrix = property(_pyrest_core.fget(
"_binding_matrix"),
None,
None,
"""No documentation""")
103 score = property(_pyrest_core.fget(
"_score"),
None,
None,
"""No documentation""")
105 motif_feature_type = property(_pyrest_core.fget(
"_motif_feature_type"),
None,
None,
"""No documentation""")
110 description = property(_pyrest_core.fget(
"_description"),
None,
None,
"""No documentation""")
112 bound_start = property(_pyrest_core.fget(
"_bound_start"),
None,
None,
"""No documentation""")
114 cell_type = property(_pyrest_core.fget(
"_cell_type"),
None,
None,
"""No documentation""")
116 bound_end = property(_pyrest_core.fget(
"_bound_end"),
None,
None,
"""No documentation""")
118 activity_evidence = property(_pyrest_core.fget(
"_activity_evidence"),
None,
None,
"""No documentation""")
123 score = property(_pyrest_core.fget(
"_score"),
None,
None,
"""No documentation""")
128 cell_type = property(_pyrest_core.fget(
"_cell_type"),
None,
None,
"""No documentation""")
130 alt_alleles = property(_pyrest_core.fget(
"_alt_alleles"),
None,
None,
"""No documentation""")
132 consequence_type = property(_pyrest_core.fget(
"_consequence_type"),
None,
None,
"""No documentation""")
137 class MiscFeature(FeatureWithID):
140 misc_set_code = property(_pyrest_core.fget(
"_misc_set_code"),
None,
None,
"""No documentation""")
142 clone_name = property(_pyrest_core.fget(
"_clone_name"),
None,
None,
"""No documentation""")
144 misc_set_name = property(_pyrest_core.fget(
"_misc_set_name"),
None,
None,
"""No documentation""")
146 type = property(_pyrest_core.fget(
"_type"),
None,
None,
"""No documentation""")
148 name = property(_pyrest_core.fget(
"_name"),
None,
None,
"""No documentation""")
150 state = property(_pyrest_core.fget(
"_state"),
None,
None,
"""No documentation""")
155 score = property(_pyrest_core.fget(
"_score"),
None,
None,
"""No documentation""")
157 external_name = property(_pyrest_core.fget(
"_external_name"),
None,
None,
"""No documentation""")
159 logic_name = property(_pyrest_core.fget(
"_logic_name"),
None,
None,
"""No documentation""")
164 description = property(_pyrest_core.fget(
"_description"),
None,
None,
"""No documentation""")
169 source = property(_pyrest_core.fget(
"_source"),
None,
None,
"""No documentation""")
171 parent = property(_pyrest_core.fget(
"_parent"),
None,
None,
"""No documentation""")
173 phase = property(_pyrest_core.fget(
"_phase"),
None,
None,
"""No documentation""")
178 class CoordMapping(_pyrest_core.BaseObject):
181 mapped = property(_pyrest_core.fget(
"_mapped"),
None,
None,
"""No documentation""")
183 original = property(_pyrest_core.fget(
"_original"),
None,
None,
"""No documentation""")
185 CoordMapping._construction_rules = {
"mapped":Location,
"original":Location}
189 'gene' : GeneFeature,
190 'transcript' : TranscriptFeature,
192 'exon' : ExonFeature,
193 'repeat' : RepeatFeature,
194 'simple' : SimpleFeature,
195 'misc' : MiscFeature,
196 'variation' : VariationFeature,
197 'somatic_variation' : VariationFeature,
198 'structural_variation' : StructuralVariationFeature,
199 'somatic_structural_variation' : StructuralVariationFeature,
200 'constrained' : ConstrainedElementFeature,
201 'regulatory' : RegulatoryFeature,
202 'motif' : MotifFeature,
203 'chipseq' : ChipSeqFeature,
205 'translation' : TranslationFeature,
210 Wrapper arround the various types of features.
211 It automatically selects the appropriate type for the fetched features.
213 t = d.get(
'object_type')
215 t = d.get(
'feature_type')
217 print(
"Unable to find the type of", d)
221 if t
not in __feature_types:
222 print(
"Unrecognized feature type:", t)
225 t = __feature_types[t]
def feature_wrapper
Wrapper arround the various types of features.