lib/bio/db/primer3.rb in bio-polyploid-tools-0.8.0 vs lib/bio/db/primer3.rb in bio-polyploid-tools-0.8.1
- old
+ new
@@ -111,10 +111,12 @@
left_start = 0
left_end = 0
right_start = 0
right_end = 0
total_columns_before_messages=17
+ #puts "Values in primer3"
+ #puts snp_from.inspect
@values = Array.new
#@values << "#{gene},,#{template_length},"
@values << gene
@values << "#{original}#{position}#{snp}"
@values << template_length
@@ -761,10 +763,10 @@
snp.snp = snp_in.snp
snp.line_1 = @line_1
snp.line_2 = @line_2
snp.snp_from = snp_in
- snp.regions = snp_in.exon_list.values.collect { |x| x.target_region.to_s }
+ snp.regions = snp_in.exon_list.values.collect { |x| x.collect {|y| y.target_region.to_s }}
@snp_hash[snp.to_s] = snp
snp
end
def add_primers_file(filename)