split_data_into_GFF_attributes: Split the data into GFF attributes

View source: R/split_data_into_GFF_attributes.R

split_data_into_GFF_attributesR Documentation

Split the data into GFF attributes

Description

Splits the data into GFF attributes defined by the user.

Usage

split_data_into_GFF_attributes(object, gff.file, chr, attribute)

Arguments

object

An object of class GENOME

gff.file

The corresponding GFF file

chr

The chromosome/scaffold identifier

attribute

The attribute to use for splitting

Details

The algorithm splits the data into attributes.
An attribute can be "gene_name", "Parent" or just a single
gene name like "geneXYZ".

Value

The returned value is an object of class "GENOME"
See GENOME.class.split@region.names and GENOME.class.split@region.names
after splitting the data.

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
# GENOME.class.split@feature.names

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