Learn R Programming

RCircos (version 1.2.2)

RCircos.Validate.Genomic.Data: Validate Genomic Data

Description

Validate input dataset for correct chromosome names, chromosome start, and chromosome end positions. Chromosome names will be converted to character vectors if they are factor variables.

Usage

RCircos.Validate.Genomic.Data(genomic.data=NULL, 
    plot.type=c("plot", "link"), genomic.columns=3)

Arguments

genomic.data

Data frame with genomic position data.

plot.type

Character vector, either "plot" or "link".

genomic.columns

Non-negative integer, total number of columns for genomic position (chromosome name, start and/or end position).

Value

None. Function will exit with an error prompt.

Examples

Run this code
# NOT RUN {
library(RCircos)
data(RCircos.Heatmap.Data)
RCircos.Validate.Genomic.Data(RCircos.Heatmap.Data, 
    plot.type="plot", genomic.columns=3)

data(RCircos.Link.Data)
RCircos.Validate.Genomic.Data(RCircos.Link.Data, 
    plot.type="link", genomic.columns=3)
# }

Run the code above in your browser using DataLab