Learn R Programming

numbat (version 1.5.1)

check_gtf_input: Check and format the GTF input

Description

This function validates the input GTF object, ensuring it is either a properly structured `GRanges` or `data.frame` that matches the expected Numbat GTF format. If a `GRanges` is provided, it will be processed into a standard GTF-like `data.frame` with gene coordinates and annotations.

Usage

check_gtf_input(gtf_obj, reference_gtf_cols = colnames(gtf_hg38))

Value

data.frame Formatted GTF object with required structure

Arguments

gtf_obj

GRanges or data.frame; input GTF object

reference_gtf_cols

character vector; expected column names (default from numbat::gtf_hg38)