Functions to extract UTR (untranslated region) and codon features from a GTFParquet object. These features are stored in the features.parquet file generated by gtf_to_parquet.py.
Arguments
- x
A
GTFParquetobject.- type
For
utrs: one of"both","5prime", or"3prime". Forcodons: one of"both","start", or"stop".- filter
Optional named list for filtering features.
Value
A GRanges object with metadata columns
including feature_type, transcript_id, and gene_id.
Examples
if (FALSE) { # \dontrun{
gtf <- GTFParquet(system.file("gc49", package="lkparq"))
# 5' UTRs
utr5 <- utrs(gtf, type = "5prime")
# 3' UTRs
utr3 <- utrs(gtf, type = "3prime")
# Start codons
start <- codons(gtf, type = "start")
# Stop codons
stop <- codons(gtf, type = "stop")
} # }