get.feature.names: Feature informations and GFF-attributes

View source: R/get.feature.names.R

get.feature.namesR Documentation

Feature informations and GFF-attributes

Description

Returns feature names and additional attributes for a given region

Usage

get.feature.names(object, gff.file, chr)

Arguments

object

An object of class GENOME

gff.file

The corresponding GFF file

chr

The chromosome/scaffold identifier

Details

The algorithm uses the information stored in GENOME.class.split@region.names to iterate
over the GFF file and returns attribute plus feature informations for each given region.
Note, the functions splitting.data, split_data_into_GFF_attributes or sliding.window.transform
should be performed prior to that.

The slot region.names must have the following form: "pos1 - pos2".

Value

The returned value is a character vector of length length(GENOME.class.split@region.names)

Examples

# GENOME.class <- readVCF("chr1.vcf.gz",1000,"1",1,100000)
# GENOME.class.split <- split_data_into_GFF_attributes(GENOME.class,"Homo_sapiens.GRCh37.73.gtf", 
# "1", "gene_name")
# GENOME.class.split@region.names
# info <- get.feature.names(GENOME.class.split, gff.file="Homo_sapiens.GRCh37.73.gtf", chr="1")
# GENOME.class.split <- splitting.data(GENOME.class, subsites="gene")
# GENOME.class.split@region.names
# info <- get.feature.names(GENOME.class.split, gff.file="Homo_sapiens.GRCh37.73.gtf", chr="1")

pievos101/PopGenome documentation built on Feb. 24, 2023, 7:11 a.m.