Sha256: c659685c5d9390abceba7489cd6131d0afc88e7ce3e25805599aa89d7f671e7e

Contents?: true

Size: 1.29 KB

Versions: 12

Compression:

Stored size: 1.29 KB

Contents

module BioInterchange::Genomics

# Represents a single genomic feature of a GVF file.
class GVFFeature < GFF3Feature

  # Creates a new feature representation. A feature is described on one line of the GVF file.
  #
  # +sequence_id+:: an identifier that determines the coordinate system for the feature
  # +source+:: a text description of the origin of this feature description
  # +type+:: either a SOFA accession, SOFA term, or textual description (the former are URIs, the latter is a string)
  # +start_coordinate+:: an integer denoting the start coordinate of the feature
  # +end_coordinate+:: an integer denoting the end coordinate of the feature, which is equal or larger than the start coordinate
  # +score+:: a floating point score
  # +strand+:: a constant determining whether the feature is NOT_STRANDED, the strand is UNKNOWN, or the feature is on the POSITIVE or NEGATIVE strand
  # +attributes+:: a map of additional attributes associated with the feature
  def initialize(sequence_id, source, type, start_coordinate, end_coordinate, score = nil, strand = NOT_STRANDED, attributes = {})
    # Fill in phase, which is always omitted in GVF features (after 'strand', before 'attributes'):
    super(sequence_id, source, type, start_coordinate, end_coordinate, score, strand, nil, attributes)
  end

end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
biointerchange-1.0.8 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.7 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.6 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.5 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.4 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.2 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.1 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-1.0.0 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-0.2.2 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-0.2.1 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-0.2.0 lib/biointerchange/genomics/gvf_feature.rb
biointerchange-0.1.3 lib/biointerchange/genomics/gvf_feature.rb