[Bioperl-l] Reverse Comp Coding Puzzler

Paul Boutros pcboutro@engmail.uwaterloo.ca
Mon Jan 13 17:30:13 EST 2003


Hi David,

There are several approaches, and partially it depends on if you know that
there will be exactly seven aa to each peptide.  Also, I think your
data-structure set up might be better changed to an array of arrays.

All that aside, what you can do is:

foreach my $cod1 (@M) {
foreach my $cod2 (@P) {
foreach my $cod3 (@V) {
foreach my $cod4 (@A) {
foreach my $cod5 (@R) {
foreach my $cod6 (@D) {
foreach my $cod7 (@I) {
	my $oligo = $cod1.$cod2.$cod3.$cod4.$cod5.$cod6.$cod7;
}}}}}}}

That at the very least will work, although it's not very elegant.
Paul






More information about the Bioperl-l mailing list