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