Learn R Programming

rphast (version 1.6.9)

unique.feat: Remove overlapping genes

Description

Remove overlapping genes

Usage

# S3 method for feat
unique(x, incomparables = FALSE, ...)

Arguments

x

An object of type feat, usually read from a genepred file. Should have attributes labelled "transcript_id" which identify features belonging to the same gene.

incomparables

Not currently used (present for S3 compatibility).

...

Not currently used.

Value

An object of type feat with overlapping genes removed. If the features are scored, then the feature with the highest score is kept; otherwise the feature with the longest length. If x is a pointer to an object stored in C, the return value will also be a pointer (and x will be altered to the return value).