Genes-class: Genes objects and accessors

Description Usage Arguments Details Author(s) See Also Examples

Description

Gene prediction consist of delimiting the boundaries of regions that function as genes within a genome. Class Genes provides objects and functions for storing the boundaries of genes and associated information resulting from gene prediction.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'Genes'
plot(x,
    xlim = c(1, 1e4),
    ylim = c(-100, 500),
    interact = FALSE,
    ...)

## S3 method for class 'Genes'
print(x, ...)

## S3 method for class 'Genes'
x[i, j, ...]

Arguments

x

An object of class Genes.

xlim

Numeric vector of length 2 specifying the x-axis limits for plotting.

ylim

Numeric vector of length 2 specifying the y-axis limits for plotting.

interact

Logical determining whether the plot is interactive. If TRUE, clicking the plot on the right or left side will scroll one frame in that direction. To end interaction, either right-click, press the escape key, or press the stop button depending on the graphics device in use.

i

Numeric or character vector of row indices to extract from x.

j

Numeric or character vector of column indices to extract from x. If j is missing, all columns are included and the returned object will also belong to class Genes.

...

Other optional parameters.

Details

Objects of class Genes are stored as numeric matrices containing information pertaining to gene predictions. The matrix columns include the index ("Index") of the corresponding sequence in the original genome, the strand ("Strand") where the gene is located (either "+" (0) or "-" (1), the beginning ("Begin") and ending ("End") positions of the gene, several scores used for prediction, the fraction of replicates ("FractionReps") where the gene was included in the prediction, and whether (> 0) or not (0) the region was predicted to be a gene. Note that the start codon is at the beginning position when the strand is "+" and end when the strand is "-".

The print method displays summary information about the genes, including their length range, coding density, number of different initiation codons, and the range of correlations among the different scores used in prediction. Note that subsetting a Genes object will result in a lower coding density being displayed because the density is calculated relative to the entire genome originally used for prediction.

The plot method will show the total score of each prediction along the genome. This is most useful when displaying the result of setting allScores to TRUE in FindGenes. Here, possible genes on either strand will be shown, with the predicted genes highlighted. The start (solid) and stop (dashed) positions are denoted by vertical lines. Note that the x-axis is cumulative genome position and changes between genome sequences indices are demarcated by dashed vertical lines.

Author(s)

Erik Wright eswright@pitt.edu

See Also

ExtractGenes, FindGenes, WriteGenes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# import a test genome
fas <- system.file("extdata",
	"Chlamydia_trachomatis_NC_000117.fas.gz",
	package="DECIPHER")
genome <- readDNAStringSet(fas)

x <- FindGenes(genome, allScores=TRUE)
x
head(unclass(x)) # the underlying structure

plot(x)

DECIPHER documentation built on Nov. 8, 2020, 8:30 p.m.