View source: R/genomics_files_utils.R
gtf_attributes_as_cols | R Documentation |
Helper function to convert the last column list of a GTF file to a different separate columns
gtf_attributes_as_cols(data)
data |
A data frame of a GTF file with the 9th column labelled 'attribute' |
This function works only if the "attributes" column was first converted to a list with gtf_attributes_as_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() |>
gtf_attributes_as_cols()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.