Sha256: 894fedf8eb2a51d2aed85d7de01d91decb155d751f34e7f00da16cff391c6bcd
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 Bytes
Contents
module Bio module GFFbrowser # Base class for a record class Record end # Using the fast line parser class FastLineRecord < Record def initialize fields @fields = fields end def comment false end def seqid @fields[GFF3_SEQID] end alias seqname :seqid def phase @fields[GFF3_PHASE] end alias frame :phase def start @fields[GFF3_START] end def end @fields[GFF3_END] end def score @fields[GFF3_SCORE] end def strand @fields[GFF3_STRAND] end def feature @fields[GFF3_TYPE] end alias feature_type :feature def source @fields[GFF3_SOURCE] end def attributes @fields[GFF3_ATTRIBUTES] end def get_attribute name attributes[name] end def id attributes['ID'] end alias entry_id :id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bio-gff3-0.8.5 | lib/bio/db/gff/gffrecord.rb |