This is a test version of Biostars. For the public version, visit https://www.biostars.org.
get mRNAs by TxDb

Hi everyone.

I'm using transcripts() function in R environment to obtain transcript of Human from TxDb.Hsapiens.UCSC.hg38.knownGene package. I don't know that this transcripts contain intron or not. On the other word, are these transcripts mRNA or not?

tnx all,

Mansoor.

mrna

1 answer

The transcripts() function will return coordinates for the entire range of a given transcript including introns. To get only the exonic regions use exonsBy()

## known exons for each transcript
exonsBy(TxDb.Hsapiens.UCSC.hg38.knownGene,'tx')

## known exons for each gene
exonsBy(TxDb.Hsapiens.UCSC.hg38.knownGene,'gene')

Log in to answer this question.