class Bio::GFFbrowser::FastLineRecord
Using the fast line parser
Public Class Methods
new(fields)
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 15 def initialize fields @fields = fields end
Public Instance Methods
attributes()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 60 def attributes @attributes_ ||= parse_attributes_fast(@fields[GFF3_ATTRIBUTES]) end
comment()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 19 def comment false end
end()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 39 def end @end_ ||= @fields[GFF3_END].to_i end
feature()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 51 def feature @feature_ ||= @fields[GFF3_TYPE] end
Also aliased as: feature_type
get_attribute(name)
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 64 def get_attribute name attributes[name] end
id()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 68 def id @id_ ||= attributes['ID'] end
Also aliased as: entry_id
phase()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 29 def phase @phase_ ||= @fields[GFF3_PHASE].to_i end
Also aliased as: frame
score()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 43 def score @score_ ||= @fields[GFF3_SCORE].to_f end
seqid()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 23 def seqid @seqid_ ||= @fields[GFF3_SEQID] end
Also aliased as: seqname
source()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 56 def source @fields[GFF3_SOURCE] end
start()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 35 def start @start_ ||= @fields[GFF3_START].to_i end
strand()
click to toggle source
# File lib/bio/db/gff/gffrecord.rb, line 47 def strand @fields[GFF3_STRAND] end