ezBuildAttributeField: Builds an annotation attributes field

View source: R/gff.R

ezBuildAttributeFieldR Documentation

Builds an annotation attributes field

Description

Builds a compatible attributes field for either the gtf or gff annotation format.

Usage

ezBuildAttributeField(x, format = "gtf")

Arguments

x

a subset of an annotation data.frame to combine the attributes from.

format

the annotation format to build x with. Either "gtf" or "gff".

Value

Returns a gtf or gff attribute field.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

param = ezParam()
gtf = ezLoadFeatures(param, system.file("extdata/genes.gtf", package="ezRun", mustWork=TRUE))
attrNew = ezBuildAttributeField(gtf[ , c("gene_id", "gene_name", "transcript_id", "tss_id")],"gtf")
gtf$attributes2 = attrNew

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.