Sha256: 0eecdabf4f32e4a934356ac6ba8093c6a6e7e3642ab945a637cd700645e985e4

Contents?: true

Size: 749 Bytes

Versions: 14

Compression:

Stored size: 749 Bytes

Contents

module Bio::PolyploidTools
  class PrimerRegion
    attr_accessor :snp_pos, :sequence, :chromosome_specific, :almost_chromosome_specific, :crhomosome_specific_intron , :almost_crhomosome_specific_intron, :homeologous

    def initialize

      @chromosome_specific = Array.new
      @almost_chromosome_specific = Array.new
      @crhomosome_specific_intron  = Array.new
      @almost_crhomosome_specific_intron = Array.new
    end

    def tail_candidates
      @chromosome_specific.size + @almost_chromosome_specific.size
    end

    def to_fasta
      ">Primer_#{snp_pos}_#{chromosome_specific.to_s}_#{almost_chromosome_specific.to_s}_#{crhomosome_specific_intron.to_s}_#{almost_crhomosome_specific_intron.to_s}\n#{sequence}\n"
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bio-polyploid-tools-0.5.1 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.5.0 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.7 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.6 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.5 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.4 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.3 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.2 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.1 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.4.0 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.3.3 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.3.1 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.2.3 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.1.0 lib/bio/PolyploidTools/PrimerRegion.rb