kulakrnineha220 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: implementation of formula in perl
by 2teez (Vicar) on Feb 28, 2014 at 08:04 UTC
Re: implementation of formula in perl
by hdb (Monsignor) on Feb 28, 2014 at 10:25 UTC

    Not sure what you mean. Something like this?

    use strict; use warnings; my @seqs = qw( DFGR----- ----AERGD DOGRGERG- ---QWERTY -----ER-- ---EF +BEGB -ASDF---- AFBDFBA-- -FGDFBD-- ); my $i=0; while ($seqs[0]) { my $col = join '', map { substr $_, 0, 1, '' } @seqs; my $na = $col =~ tr/A/A/; my $n = $col =~ tr/-/-/c; printf "%d: na=%d n=%d fau=%.2f\n", $i++, $na, $n, $na/$n; }
Re: implementation of formula in perl
by Anonymous Monk on Feb 28, 2014 at 07:39 UTC