lib/parse_fasta/sequence.rb in parse_fasta-1.0.1 vs lib/parse_fasta/sequence.rb in parse_fasta-1.1.0
- old
+ new
@@ -17,17 +17,14 @@
# along with parse_fasta. If not, see <http://www.gnu.org/licenses/>.
# Provide some methods for dealing with common tasks regarding
# nucleotide sequences.
class Sequence < String
- def initialize(str)
- super(str)
- end
- # Returns GC content for self
+ # Calculates GC content
#
# Calculates GC content by dividing count of G + C divided by count
- # of G + C + T + A +U. If there are both T's and U's in the
+ # of G + C + T + A + U. If there are both T's and U's in the
# Sequence, things will get weird, but then again, that wouldn't
# happen, now would it!
#
# @example Get GC of a Sequence
# Sequence.new('ACTg').gc #=> 0.5