subset_gencode_gtf: Subset GENCODE GTF to specific features

View source: R/gencode_utils.R

subset_gencode_gtfR Documentation

Subset GENCODE GTF to specific features

Description

Creates a data frame with a subset of GTF records based on feature type.

Usage

subset_gencode_gtf(gtf, feature_type = c("transcript", "gene", "exon"))

Arguments

gtf

A data frame with data from an imported GENCODE GTF file.

feature_type

A string denoting the feature type for which to retrieve records. This corresponds to the 3rd column values in a GTF file.

Details

Filters a GTF-format data frame to only records of a specific feature type (based on column 3 of a GTF record). Adds an additional column with the GENCODE ID parsed from column 9.

Value

A data frame in GTF-like format with an additional column (column 10) for the GENCODE ID.


bryancquach/omixjutsu documentation built on Jan. 29, 2023, 3:47 p.m.