Sha256: db74884b4310791f1019309e5e793e251c4bc95a5ffa477b8e533c3822406c4e

Contents?: true

Size: 1.07 KB

Versions: 33

Compression:

Stored size: 1.07 KB

Contents

module Bio::PolyploidTools
  class PrimerRegion
    attr_accessor :snp_pos, :almost_chromosome_specific_in_mask 
    attr_accessor :chromosome_specific_in_mask, :sequence 
    attr_accessor :chromosome_specific, :almost_chromosome_specific
    attr_accessor :crhomosome_specific_intron , :almost_crhomosome_specific_intron
    attr_accessor :homoeologous, :position_in_mask_from_template

    def initialize

      @chromosome_specific = Array.new
      @almost_chromosome_specific = Array.new
      @crhomosome_specific_intron  = Array.new
      @almost_crhomosome_specific_intron = Array.new
      #For deletions
      @chromosome_specific_in_mask = Array.new
      @almost_chromosome_specific_in_mask = Array.new
      @position_in_mask_from_template = Hash.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

33 entries across 33 versions & 2 rubygems

Version Path
bio-polyploid-tools-0.9.2 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.9.1 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.9.0 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.9 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.8 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.7 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.6 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.5 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.4 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.3 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.2 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.1 lib/bio/PolyploidTools/PrimerRegion.rb
bio-polyploid-tools-0.8.0 lib/bio/PolyploidTools/PrimerRegion.rb