Skip to content

Commit

Permalink
fixed a typo inthe example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ggklf committed Jan 13, 2011
1 parent 0d796c9 commit 28effdd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/bio-isoelectric_point.rb
Expand Up @@ -5,15 +5,15 @@
end


protein_seq = Bio::Sequence::AA.new("KKGFTCGELA")

#what is the protein charge at ph 14?
c = charge = protein_seq.charge_at(14) #=>-2.999795857467562

#calculate the pH using dtaselect pka set and round off to 3 decimal places
isoelectric_point = protein_seq.isoelectric_point('dtaselect', 3) #=>8.219

puts c
puts isoelectric_point


# protein_seq = Bio::Sequence::AA.new("KKGFTCGELA")
#
# #what is the protein charge at ph 14?
# charge = protein_seq.charge_at(14) #=>-2.999795857467562
#
# #calculate the pH using dtaselect pka set and round off to 3 decimal places
# isoelectric_point = protein_seq.isoelectric_point('dtaselect', 3) #=>8.219
#
# puts charge
# puts isoelectric_point
#
#

0 comments on commit 28effdd

Please sign in to comment.