Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rnaseq/rnaseq_gene_level.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ Next we create an *Rsamtools* variable which wraps our BAM files, and create a t
library(Rsamtools)
bam.list <- BamFileList(bam.files)
library(GenomicFeatures)

# for Bioc 3.0 use the commented out line
# txdb <- makeTranscriptDbFromGFF(gtf.file, format="gtf")
txdb <- makeTxDbFromGFF(gtf.file, format="gtf")

# Since the Bioc V-3.19, `makeTxDbFromGFF()` is defuncted in 'GenomicFeatures' package.The function has now moved to the 'txdbmaker' package;
#therefore, for Bioc V-3.19 and higher, use `txdbmaker::makeTxDbFromGFF()` function instead.
#library(txdbmaker)
#txdb <- makeTxDbFromGFF(gtf.file, format="gtf")

exons.by.gene <- exonsBy(txdb, by="gene")
```

Expand Down