Bayesian method for transcriptome assembly