lib/bio/db/primer3.rb in bio-polyploid-tools-0.9.9 vs lib/bio/db/primer3.rb in bio-polyploid-tools-0.9.10

- old
+ new

@@ -550,10 +550,21 @@ end #CL3339Contig1:T509C AvocetS chromosome_specific exon 4D forward def parse_header #puts "Parsing header: '#{self.sequence_id}'" - @snp, @line, @type, @in, @polymorphism, @chromosome, @orientation = self.sequence_id.split(" ") + arr = self.sequence_id.split(" ") + + #if arr.size == 7 This validation can be useful to get the best primers regardless of the chromosome, + #But it is commented as it will require further testing. + @snp, @line, @type, @in, @polymorphism, @chromosome, @orientation = arr + #else + # if arr.size == 6 + # @snp, @line, @type, @in, @polymorphism, @orientation = arr + # @chromosome = "" + # end + #end + @type = @type.to_sym if @in @in = @in.to_sym == :exon else @exon = false