View source: R/genomics_files_utils.R
read_gtf | R Documentation |
Import a genomics GTF file and offer different way to handle the last 9th column (with a bunch of extra info).
read_gtf(path, max_rows = 10000, col_attribute_type = "character", ...)
max_rows |
The maximum rows to import. Helps avoiding memory issues. Default 10000. |
col_attribute_type |
Specify how to handle the last column of a GTF file. See details. #'
|
... |
Additional parameters to pass to |
A |
valid path to a GTF file. |
The parameter col_attribute_type
can be either: "character", "list", or "split".
The first option (character
) imports the data as is.
The option list
coerce the column into a list column in the data frame.
The last option split
divides all the attributes into separate columns with a header.
A GTF file as a tibble
hg38gtf <- read_gtf(path = hg38_gtf_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.