Class: Bio::RestrictionEnzyme::Fragment

Inherits:
Struct
  • Object
show all
Defined in:
lib/bio/util/restriction_enzyme.rb

Overview

A Bio::RestrictionEnzyme::Fragment is a DNA fragment composed of fused primary and complementary strands that would be found floating in solution after a full sequence is digested by one or more RestrictionEnzymes.

You will notice that either the primary or complement strand will be padded with spaces to make them line up according to the original DNA configuration before they were cut.

Example:

Fragment 1:

primary =    "attaca"
complement = "  atga"

Fragment 2:

primary =    "g  "
complement = "cta"

View these with the primary and complement methods.

Bio::RestrictionEnzyme::Fragment is a simple Struct object.

Note: unrelated to Bio::RestrictionEnzyme::Range::SequenceRange::Fragment

Instance Attribute Summary collapse

Instance Attribute Details

#c_leftObject

Returns the value of attribute c_left

Returns:

  • (Object)

    the current value of c_left



199
200
201
# File 'lib/bio/util/restriction_enzyme.rb', line 199

def c_left
  @c_left
end

#c_rightObject

Returns the value of attribute c_right

Returns:

  • (Object)

    the current value of c_right



199
200
201
# File 'lib/bio/util/restriction_enzyme.rb', line 199

def c_right
  @c_right
end

#complementObject

Returns the value of attribute complement

Returns:

  • (Object)

    the current value of complement



199
200
201
# File 'lib/bio/util/restriction_enzyme.rb', line 199

def complement
  @complement
end

#p_leftObject

Returns the value of attribute p_left

Returns:

  • (Object)

    the current value of p_left



199
200
201
# File 'lib/bio/util/restriction_enzyme.rb', line 199

def p_left
  @p_left
end

#p_rightObject

Returns the value of attribute p_right

Returns:

  • (Object)

    the current value of p_right



199
200
201
# File 'lib/bio/util/restriction_enzyme.rb', line 199

def p_right
  @p_right
end

#primaryObject

Returns the value of attribute primary

Returns:

  • (Object)

    the current value of primary



199
200
201
# File 'lib/bio/util/restriction_enzyme.rb', line 199

def primary
  @primary
end