Method: Bio::RestrictionEnzyme::DoubleStranded#blunt?
- Defined in:
- lib/bio/util/restriction_enzyme/double_stranded.rb
#blunt? ⇒ Boolean
Returns true
if the cut pattern creates blunt fragments. (opposite of sticky)
140 141 142 143 144 145 146 147 |
# File 'lib/bio/util/restriction_enzyme/double_stranded.rb', line 140 def blunt? as = aligned_strands_with_cuts ary = [as.primary, as.complement] ary.collect! { |seq| seq.split( cut_symbol ) } # convert the cut sections to their lengths ary.each { |i| i.collect! { |c| c.length } } ary[0] == ary[1] end |