class BioInterchange::Genomics::GFF3FeatureSequence
Represents a sequence of a genomic feature of a GFF3 file.
Public Class Methods
new(feature_id, sequence, comment = nil)
click to toggle source
Creates a new feature sequence representation. A feature sequence is described by two or more lines in a GFF3 file that are succeeding a '##FASTA' pragma statement.
feature_id
-
ID of the feature whose sequence is stored
sequence
-
sequence of the feature
# File lib/biointerchange/genomics/gff3_feature_sequence.rb, line 11 def initialize(feature_id, sequence, comment = nil) @feature_id = feature_id @sequence = sequence @comment = comment end
Public Instance Methods
comment()
click to toggle source
Returns additional comments – if provided – that are associated with the feature ID. If no comment was provided, then `nil` is returned.
# File lib/biointerchange/genomics/gff3_feature_sequence.rb, line 29 def comment @comment end
feature_id()
click to toggle source
Returns the ID of the feature whose sequence is represented by the object.
# File lib/biointerchange/genomics/gff3_feature_sequence.rb, line 18 def feature_id @feature_id end
sequence()
click to toggle source
Returns the sequence of the feature.
# File lib/biointerchange/genomics/gff3_feature_sequence.rb, line 23 def sequence @sequence end