Counting tripeptide frequencies

Andrew Dalke dalke at bioreason.com
Fri Feb 12 02:35:20 EST 1999


Randy Henne <henne at zgi.com> (an ex-teacher of mine :) said:
> Yes it is . . . but Perl and not Python Andrew?

Hey, I was trying for a confusing response, and perl's great for that.

But, now that you mention it, here's a GUI app for Python to do what
the original poster wanted.  It should work on Macs and MS Windows, but
I've only tested it under unix.  It needs Tk, which means the prebuilt 
Mac/MS Windows Python distributions from www.python.org should work
just fine.

To use it, give it some text in the top line (it can be as long as
you want) then press enter.  The results are in two tables, the
left is sorted by fragment content (alphabetically) then count.  The
right is sorted by count then fragment content.

For example, the string:
  ANANDNANA

gives on the left table:

  The left display contains the list:
ANA 1
AND 1
DNA 1
NAN 2
NDN 1

  The right display contains the list:
1 ANA
1 AND
1 DNA
1 NDN
2 NAN




More information about the Bio-soft mailing list