Learn R Programming

RCircos (version 1.2.2)

RCircos.Sort.Genomic.Data: Sort Genomic or Ideogram Data

Description

Sort genomics/ideogram data. The order of chromosome names should be numeric names (integers or Roman numbers) first then character names. If chromosome names are all characters alphabets order will be used. This function could be used before making RCircos plot.

Usage

RCircos.Sort.Genomic.Data(genomic.data=NULL, is.ideo=FALSE)

Arguments

genomic.data

A data frame with the first two or three columns for chromosome names, start and end positions. If it is ideogram data, next two columns must be band names, and Giemsa stain status.

is.ideo

Logic, weither the genomic data is ideogram or not.

Value

Data frame same as input data but ordered by chromosome names then start positions

Examples

Run this code
# NOT RUN {
library(RCircos)

data(UCSC.Mouse.GRCm38.CytoBandIdeogram)
cyto <- UCSC.Mouse.GRCm38.CytoBandIdeogram
ideogram <- RCircos.Sort.Genomic.Data(  
    genomic.data=UCSC.Mouse.GRCm38.CytoBandIdeogram,  
    is.ideo=TURE)

data(RCircos.Line.Data)
lineData <- RCircos.Sort.Genomic.Data( 	genomic.data=RCircos.Line.Data, 
    is.ideo=FALSE)
# }

Run the code above in your browser using DataLab