Description Usage Arguments Details Value Author(s) Examples
View source: R/import_gencode.R
Import gencode GTF file as a TxDb object
1 | import_gencode_as_txdb(gtf, filter = NULL)
|
gtf |
path of the GTF file |
filter |
code which filters the GTF records |
For example, you can build a TxDb-class
object only for protein coding genes by defining
1 | import_gencode_as_txdb(GTF, gene_type == "protein_coding" & transcript_type == "protein_coding")
|
Here gene_type
and transcript_type
are attributes in the GTF file.
Please note, when building the TxDb-class
object, the positions of genes are calculated by the union of all
its transcripts, while the positions in the GTF file are not used. This is important when only using
a subset of transcripts for a gene (e.g. only use protein coding transcripts) that the position of the
gene may change. So, when number of transcripts for genes change, the corresponding TxDb-class
object must be
re-generated accordingly.
a TxDb-class
object
Zuguang Gu <z.gu@dkfz.de>
1 2 | # There is no example
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.