A hierarchical Bayesian model for RNA-Seq data