granges2ids: Extract matching transcript and gene IDs from a GRanges...

View source: R/input.R

granges2idsR Documentation

Extract matching transcript and gene IDs from a GRanges object.

Description

The GRanges must have at least the following metadata columns: 'gene_id' and 'transcript_id' (such as GRanges imported from GTF). GFF3-style metadata columns are currently not supported.

Usage

granges2ids(annot, transc_header = "target_id", gene_header = "parent_id")

Arguments

annot

A GRanges object with gene_id and transcript_id metadata columns.

transc_header

The title for the transcripts column in the output. (target_id)

gene_header

The title for the genes column in the output. (parent_id)

Value

A data.table with two columns, matching transcript IDs to gene IDs.


bartongroup/RATS documentation built on June 8, 2022, 12:40 a.m.