Class: Bio::TRANSFAC

Inherits:
EMBLDB show all
Defined in:
lib/bio/db/transfac.rb

Direct Known Subclasses

CELL, CLASS, FACTOR, GENE, MATRIX, SITE

Defined Under Namespace

Classes: CELL, CLASS, FACTOR, GENE, MATRIX, SITE

Constant Summary

DELIMITER =
RS = "\n//\n"
TAGSIZE =
4

Instance Method Summary (collapse)

Methods inherited from DB

#exists?, #fetch, #get, open, #tags

Constructor Details

- (TRANSFAC) initialize(entry)

Returns a new instance of TRANSFAC



21
22
23
# File 'lib/bio/db/transfac.rb', line 21

def initialize(entry)
  super(entry, TAGSIZE)
end

Instance Method Details

- (Object) ac Also known as: entry_id

AC Accession number (1 per entry)

AC  T00001   in the case of FACTOR
AC  M00001   in the case of MATRIX
AC  R00001   in the case of SITE
AC  G000001  in the case of GENE
AC  C00001   in the case of CLASS
AC  00001    in the case of CELL


34
35
36
37
38
39
# File 'lib/bio/db/transfac.rb', line 34

def ac
  unless @data['AC']
    @data['AC'] = fetch('AC')
  end
  @data['AC']
end

- (Object) cc Also known as: comment



52
53
54
# File 'lib/bio/db/transfac.rb', line 52

def cc
  field_fetch('CC')
end

- (Object) dt Also known as: date

DT Date (1 per entry)

DT  DD.MM.YYYY (created); ewi.
DT  DD.MM.YYYY (updated); mpr.


47
48
49
# File 'lib/bio/db/transfac.rb', line 47

def dt
  field_fetch('DT')
end

- (Object) oc Also known as: org_class



62
63
64
# File 'lib/bio/db/transfac.rb', line 62

def oc
  field_fetch('OC')
end

- (Object) os Also known as: org_species



57
58
59
# File 'lib/bio/db/transfac.rb', line 57

def os
  field_fetch('OS')
end

- (Object) ra Also known as: ref_authors



72
73
74
# File 'lib/bio/db/transfac.rb', line 72

def ra
  field_fetch('RA')
end

- (Object) rl Also known as: ref_data



82
83
84
# File 'lib/bio/db/transfac.rb', line 82

def rl
  field_fetch('RL')
end

- (Object) rn Also known as: ref_no



67
68
69
# File 'lib/bio/db/transfac.rb', line 67

def rn
  field_fetch('RN')
end

- (Object) rt Also known as: ref_title



77
78
79
# File 'lib/bio/db/transfac.rb', line 77

def rt
  field_fetch('RT')
end