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

Description Usage Arguments Details Value Examples

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

Description

Returns feature names and additional attributes for a given region

Usage

1
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

1
2
3
4
5
6
7
8
# 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")

Example output

Loading required package: ff
Loading required package: bit

Attaching package:bitThe following object is masked frompackage:base:

    xor

Attaching package ff
- getOption("fftempdir")=="/work/tmp/tmp/RtmpfTf4nR/ff"

- getOption("ffextension")=="ff"

- getOption("ffdrop")==TRUE

- getOption("fffinonexit")==TRUE

- getOption("ffpagesize")==65536

- getOption("ffcaching")=="mmnoflush"  -- consider "ffeachflush" if your system stalls on large writes

- getOption("ffbatchbytes")==16777216 -- consider a different value for tuning your system

- getOption("ffmaxbytes")==536870912 -- consider a different value for tuning your system


Attaching package:ffThe following objects are masked frompackage:utils:

    write.csv, write.csv2

The following objects are masked frompackage:base:

    is.factor, is.ordered

PopGenome documentation built on Feb. 1, 2020, 1:07 a.m.