Skip to content
Prev 301070 / 398503 Next

How to do the same thing for all levels of a column?

The OP's request is a bit ambiguous to me: at a given residue, do you
wish to calculate the proportions for only those amino acids that
appear at that residue, or do you wish to include the proportions for
all amino acids, some of which might then be 0.

Assuming the former, then I don't think one needs to go to the lengths
described by John below.

Using your example (thanks!), the following seems to suffice:
$X1
x
   L    R    T
0.50 0.25 0.25

$X2
x
   E    M
0.75 0.25

$X3
x
   N    Y
0.25 0.75

$X4
x
   I    L    Q
0.25 0.50 0.25

$X5
x
   I    V
0.75 0.25

$X6
x
   P    S
0.75 0.25

$X7
x
   D    E    G
0.25 0.50 0.25

$X8
x
   A    C
0.75 0.25


This could, of course, then be modified to add zero proportions for
all non-appearing amino acids.

-- Cheers,
Bert
On Tue, Jul 24, 2012 at 8:18 AM, John Kane <jrkrideau at inbox.com> wrote: