Circos_plot: Plot the circos.

View source: R/Circos_plot.R

Circos_plotR Documentation

Plot the circos.

Description

This function outputs the circos plot for the methylation level and the density of gene, CpG island and CpG island shore on different chromosomes based on R RCircos package. All the files used in this function should contain chromosome, start position, and end position information that are required for R RCircos package.

Usage

Circos_plot(
  inputcytofile,
  inputmethfile_QC,
  inputrefseqfile,
  inputcpgifeaturefile,
  labelname = regiongeneall_significant,
  linecolor = NULL
)

Arguments

inputcytofile

refers to the output of Cytofile_read() which contains the chromosome information.

inputmethfile_QC

refers to input file with methylation levels after quality control.

inputrefseqfile

refers to the output of Bedfile_read() which contains the gene information.

inputcpgifeaturefile

refers to the output of Bedfile_read() which contains the CpG island and CpG island shore information.

labelname

refers to the label of gene names which could be the significant genes after Significant_filter(), with default regiongeneall_significant with differentially methylated genes. Sometimes, regiongenealls_significant will have some errors because it has unannotated chromosome name like chrUn_JH584304 or chrUn_NW_018084826v1. Thus, these chromosome names should be removed. If the labelname is from selfdefinedfile, then the file should contain the headers with chr (chromosome), start (start position), end (end position) and id (gene name).

linecolor

refers to the colors of the lines plot for different methylation levels, with default NULL (black). If the linecolor is used, the length of colors should correspond to the length of groups.

Value

Outputs the circus figure with chromosomes, gene labels, the densities of the genes (track 3), CpG islands (track 4) and CpG island shores (track 5) and the methylation levels of different groups from the outermost circle to the innermost circle.

References

Hongen Zhang, Paul Meltzer, and Sean Davis. RCircos: an R package for Circos 2D track plots. BMC Bioinformatics, 2013, 14:244.

Examples

Circos_plot(inputcytofile, inputmethfile_QC, inputrefseqfile, inputcpgifeaturefile, 
            labelname = regiongeneall_significant, linecolor = c("blue1", "green1"))
Circos_plot(inputcytofile, inputmethfile_QC, inputrefseqfile, inputcpgifeaturefile, 
            labelname = selfdefinedfile, linecolor = c("blue", "red"))


xiaowangCN/GeneDMRs documentation built on Nov. 22, 2023, 11:19 p.m.