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

View source: R/RCircosGenomicData.R

RCircos.Sort.Genomic.DataR Documentation

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

Author(s)

Henry

Examples

## 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)

## End(Not run)

RCircos documentation built on March 18, 2022, 7:59 p.m.