Class: Bio::GFFbrowser::FastLineRecord
Overview
Using the fast line parser
Instance Method Summary
collapse
#parse_attributes_fast, #parse_line_fast
#debug, #error, #info, #log_sys_info, #warn
Constructor Details
Returns a new instance of FastLineRecord.
[View source]
15
16
17
|
# File 'lib/bio/db/gff/gffrecord.rb', line 15
def initialize fields
@fields = fields
end
|
Instance Method Details
permalink
#attributes ⇒ Object
[View source]
60
61
62
|
# File 'lib/bio/db/gff/gffrecord.rb', line 60
def attributes
@attributes_ ||= parse_attributes_fast(@fields[GFF3_ATTRIBUTES])
end
|
[View source]
19
20
21
|
# File 'lib/bio/db/gff/gffrecord.rb', line 19
def
false
end
|
[View source]
39
40
41
|
# File 'lib/bio/db/gff/gffrecord.rb', line 39
def end
@end_ ||= @fields[GFF3_END].to_i
end
|
permalink
#feature ⇒ Object
Also known as:
feature_type
[View source]
51
52
53
|
# File 'lib/bio/db/gff/gffrecord.rb', line 51
def feature
@feature_ ||= @fields[GFF3_TYPE]
end
|
permalink
#get_attribute(name) ⇒ Object
[View source]
64
65
66
|
# File 'lib/bio/db/gff/gffrecord.rb', line 64
def get_attribute name
attributes[name]
end
|
permalink
#id ⇒ Object
Also known as:
entry_id
[View source]
68
69
70
|
# File 'lib/bio/db/gff/gffrecord.rb', line 68
def id
@id_ ||= attributes['ID']
end
|
permalink
#phase ⇒ Object
Also known as:
frame
[View source]
29
30
31
|
# File 'lib/bio/db/gff/gffrecord.rb', line 29
def phase
@phase_ ||= @fields[GFF3_PHASE].to_i
end
|
[View source]
43
44
45
|
# File 'lib/bio/db/gff/gffrecord.rb', line 43
def score
@score_ ||= @fields[GFF3_SCORE].to_f
end
|
permalink
#seqid ⇒ Object
Also known as:
seqname
[View source]
23
24
25
|
# File 'lib/bio/db/gff/gffrecord.rb', line 23
def seqid
@seqid_ ||= @fields[GFF3_SEQID]
end
|
[View source]
35
36
37
|
# File 'lib/bio/db/gff/gffrecord.rb', line 35
def start
@start_ ||= @fields[GFF3_START].to_i
end
|