Skip to content

Commit

Permalink
fixed matrix id to be consistant with input options
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Harrison committed Jan 16, 2013
1 parent fb4060b commit a73515f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MGRAST/lib/resources2/matrix.pm
Expand Up @@ -250,7 +250,7 @@ sub prepare_data {
my @filter = $cgi->param('filter') ? $cgi->param('filter') : ();
my $all_srcs = {};
my $leaf_node = 0;
my $matrix_id = join("_", sort @$data).'_'.join("_", ($type, $glvl, $source, $rtype, $eval, $ident, $alen));
my $matrix_id = join("_", map {'mgm'.$_} sort @$data).'_'.join("_", ($type, $glvl, $source, $rtype, $eval, $ident, $alen));
if (@filter > 0) {
$matrix_id .= join("_", sort map { $_ =~ s/\s+/_/g } @filter)."_".$fsrc;
}
Expand Down

0 comments on commit a73515f

Please sign in to comment.