View source: R/genomics_files_utils.R
gtf_attributes_as_list | R Documentation |
Helper function to handle the last column of a GTF file.
gtf_attributes_as_list(data)
data |
A data frame of a GTF file with the 9th column labelled 'attribute' |
This function helps convert the "attributes" column of a GTF file from character to a named list.
A tibble
gtf <- read_delim(file = path, delim = '\t', comment = '#!',
col_names = c('seqname', 'source', 'feature', 'start',
'end', 'score', 'strand', 'frame', 'attribute'),
col_types = c('i', 'c', 'c', 'i', 'i', 'c', 'c', 'c', 'c'),
n_max = 100) |>
gtf_attributes_as_list()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.