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 collapse

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

Instance Method Summary collapse

Methods inherited from DB

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

Constructor Details

#initialize(entry) ⇒ TRANSFAC

Returns a new instance of TRANSFAC.

[View source]

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

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

Instance Method Details

#acObject 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
[View source]

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

#ccObject Also known as: comment

[View source]

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

def cc
  field_fetch('CC')
end

#dtObject Also known as: date

DT Date (1 per entry)

DT  DD.MM.YYYY (created); ewi.
DT  DD.MM.YYYY (updated); mpr.
[View source]

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

def dt
  field_fetch('DT')
end

#ocObject Also known as: org_class

[View source]

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

def oc
  field_fetch('OC')
end

#osObject Also known as: org_species

[View source]

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

def os
  field_fetch('OS')
end

#raObject Also known as: ref_authors

[View source]

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

def ra
  field_fetch('RA')
end

#rlObject Also known as: ref_data

[View source]

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

def rl
  field_fetch('RL')
end

#rnObject Also known as: ref_no

[View source]

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

def rn
  field_fetch('RN')
end

#rtObject Also known as: ref_title

[View source]

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

def rt
  field_fetch('RT')
end