Learn R Programming

PopGenome (version 2.7.5)

get.feature.names: 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

Value

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

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".

Examples

Run this code
# NOT RUN {
# 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")
# }

Run the code above in your browser using DataLab