deweylab / RSEM

RSEM: accurate quantification of gene and isoform expression from RNA-Seq data
http://deweylab.biostat.wisc.edu/rsem/
GNU General Public License v3.0
404 stars 117 forks source link

Fix assertion error for arrays with lots of zeros. #79

Open jenni-westoby opened 6 years ago

jenni-westoby commented 6 years ago

The logic for sampling arrays fails when most of the array is zero. We fix this by sampling uniformly from the indices into the array, as suggested by the comment in simul.h.