stephens999 / ashr

An R package for adaptive shrinkage
GNU General Public License v3.0
79 stars 35 forks source link

Fix post_sample indexing edge case #125

Closed emkoch closed 3 years ago

emkoch commented 3 years ago

For a data set with two samples idx is treated as a matrix rather than a vector.

"When indexing arrays by [ a single argument i can be a matrix with as many columns as there are dimensions of x; the result is then a vector with elements corresponding to the sets of indices in each row of i."