Skip to content

Commit

Permalink
added missing rights for abundanceprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Harrison committed Dec 18, 2012
1 parent 133a88b commit bba89ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/MGRAST/lib/resources2/abundanceprofile.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ sub new {
my $self = $class->SUPER::new(@args); my $self = $class->SUPER::new(@args);


# Add name / attributes # Add name / attributes
my %rights = $self->user ? map { $_, 1 } @{$self->user->has_right_to(undef, 'view', 'metagenome')} : ();
$self->{name} = "abundanceprofile"; $self->{name} = "abundanceprofile";
$self->{rights} = \%rights;
$self->{attributes} = { "id" => [ 'string', 'unique object identifier' ], $self->{attributes} = { "id" => [ 'string', 'unique object identifier' ],
"format" => [ 'string', 'format specification name' ], "format" => [ 'string', 'format specification name' ],
"format_url" => [ 'string', 'url to the format specification' ], "format_url" => [ 'string', 'url to the format specification' ],
Expand Down
2 changes: 1 addition & 1 deletion src/MGRAST/lib/resources2/matrix.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ sub prepare_data {
push @$bcols, { id => 'mgm'.$cid, metadata => $cmd }; push @$bcols, { id => 'mgm'.$cid, metadata => $cmd };
} }


my $obj = { "id" => join(";", map { $_->{id} } @$bcols).'_'.$glvl.'_'.$source.'_'.$rtype, my $obj = { "id" => join(";", sort map { $_->{id} } @$bcols).'_'.$glvl.'_'.$source.'_'.$rtype,
"format" => "Biological Observation Matrix 1.0", "format" => "Biological Observation Matrix 1.0",
"format_url" => "http://biom-format.org", "format_url" => "http://biom-format.org",
"type" => $ttype." table", "type" => $ttype." table",
Expand Down

0 comments on commit bba89ac

Please sign in to comment.