Help for this page

Select Code to Download


  1. or download this
    my %hGroups = (
              'Group1' => {
    ...
                            'ATG1' => 1
                          }
            );
    
  2. or download this
    my %hGroups = map { my $sGenes = $hash{$_};
                        my $hGroupMembers
                          = { map { $_ => 1 } split(',', $sGenes) };
                        $_ => $hGroupMembers;
                      } keys %hash;
    
  3. or download this
    my %hNewGroups;
    
    ...
    
      $hNewGroups{$sGroup} = $hGroupMembers;
    }
    
  4. or download this
    %hNewGroups = (
              'Group1' => {
    ...
                            'LSM2' => 1
                          }
            );
    
  5. or download this
    while (my ($sNewGroup,$hMembers) = each(%hNewGroups)) {
      print "$sNewGroup: " . join(',', keys %$hMembers) . "\n";
    }
    
  6. or download this
    Group1: ATG9,ATG2,ATRG7,ATG4,ATG1
    Group3: FYCO1,LSM2