Permalink
Browse files

Merge pull request #269 from teharrison/develop

fixed missing output attribute
  • Loading branch information...
2 parents cfd0826 + 6f916bf commit 3971ff7e5eb36b0bd4fcece193042edd0fbbe074 @teharrison teharrison committed Mar 3, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/MGRAST/lib/resources2/matrix.pm
@@ -510,6 +510,7 @@ sub prepare_data {
"matrix_type" => "sparse",
"matrix_element_type" => ($rtype eq 'abundance') ? "int" : "float",
"matrix_element_value" => $rtype,
+ "shape" => [ scalar(keys %$row_ids), scalar(keys %$col_ids) ],
"rows" => $brows,
"columns" => $bcols,
"data" => $self->index_sparse_matrix($matrix, $row_ids, $col_ids)

0 comments on commit 3971ff7

Please sign in to comment.