View source: R/plotGeneRegion.R
prepareGTF | R Documentation |
This function sets the names of the transcript and gene ID columns of the
gtf file to "transcript" and "gene", removes version tags of the
transcripts/genes and retains only the "exon" entries. The purpose is to
make the file amenable to plotting with Gviz, using the
plotGeneRegion
function.
prepareGTF(
gtf,
transcriptIdColumn = "transcript_id",
geneIdColumn = "gene_id",
geneSymbolColumn = "gene_name"
)
gtf |
Character scalar, path to gtf file (tested with Ensembl/Gencode files). |
transcriptIdColumn |
Character scalar, the column in the gtf file that contains the transcript ID. |
geneIdColumn |
Character scalar, the column in the gtf file that contains the gene ID. |
geneSymbolColumn |
Character scalar, the column in the gtf file that
contains the gene symbol (if available). Set to |
Charlotte Soneson
gtf <- prepareGTF(gtf = system.file("extdata/plotGeneRegion/mm10_ensembl98.gtf",
package = "swissknife"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.