Learn R Programming

RCircos (version 1.2.2)

RCircos.Get.Zoom.Data: Retriev Subset of Plot Data for Zoom

Description

Retrieve subset of plot data based on gene name or row header.

Usage

RCircos.Get.Zoom.Data(plot.data=NULL, name.col= NULL,
 	genomic.columns=3, target.gene=NULL, neighbor.genes=5)

Arguments

plot.data

A data frame containing genomic positions, gene names, and plot values. The data should be already sorted by chromosome names then start positions.

name.col

Non-negative integer, which column is for gene names.

genomic.columns

Non-negative integer, total number of columns for genomic position in each row. Must be either 3 or 2.

target.gene

Character vector, target gene names.

neighbor.genes

Non-negative integer, number of neighbor genes on each side of taget gene to be included in subset.

Value

Data frame, subset of input data.

Examples

Run this code
# NOT RUN {
library(RCircos)
data(RCircos.Heatmap.Data)
zoom.data <- RCircos.Get.Zoom.Data(RCircos.Heatmap.Data, 
	name.col=4, target.gene="TP53")
# }

Run the code above in your browser using DataLab