Package designed to visualize genomic data along the chromosomes,
where the vertical chromosomes are sorted by number, with sex chromosomes
at the end.
Genome annotations associated to quantitative values
stat2
Second track of genome annotations associated to
quantitative values
statCol
Name column in stat with the values to plot
statCol2
Name column in stat2 with the values to plot
statTyp
Type of plot for stat ("l", "p", NULL)
statName
Description for stat (default="Statistic")
statName2
Description for stat2 (default="Statistic")
bands
Genome annotations to be plotted on chromosomal body
(e.g G bands)
bandsDesc
Description for bands
gaps
Chromosome alignment gaps (only centromers and telomers
used)
gapsDesc
Description for gaps
segment
Genomic segments. Can contain a 'Group' column with
categories
segmentDesc
Description for segment
segment2
second track of genomic segments. Can contain a
'Group' column with categories
segment2Desc
Description for segment2
chr
Vector of chromosome names to plotted (optional)
bin
Bin size for histograms in base pairs
yAxis
Should I draw the y-axis (logical)
figCols
Maximum number of chromosomes in a row
colBand
Color for chromosome bands
colAnnot1
Color for histograms for annot1
colAnnot2
Color for histograms for annot2
colAnnot3
Color for histograms for annot3
colAnnot4
Color for histograms for annot4
colSegments
Color for chromosome segment (ignored if segment
are grouped (see details)
colSegments2
Color for chromosome segment2 (ignored if
segment2 are grouped (See details)
colStat
Color for stat
colStat2
Color for stat2
title
Plot title
plotRndchr
Include random scaffolds
maxSegs
Maximum number of segments. If the segment or
segment2 tracks contain more segments than this value, a histogram of
segments is drawn instead
noHist
If TRUE, segments are never drawn as histograms, even
they are more than maxSegs or if the largest segment is smaller than
the bin size.
segLwd
Line width for segments
sortSegs
Sort overlapping segments by size
chrSide
Chromosome side where to draw annot1, annot2, annot3,
annot4, segments, segments2, stat and stat2, respectively. 1=right,
-1=left
cex
Cex for plot (see ?par for details)
legChrom
Legend chromosome (character string). Place legend
after this chromosome
scale.title
Title for histograms scales
scex
Cex for stat track
spty
A character specifying the type of plot region to be
used in stat
org
Organism name, e.g. mmusculus, hsapiens
strand
Strand "+" or "-" for local view using GenomeGraphs
stack
Stack overlapping segments in segment and segment2 in
clusters
statThreshold
Only plot segments in stat with values above
this threshold
statThreshold2
Only plot segments in stat2 with values
above this threshold
statSumm
Type of statistical function for apply to the data ("mean", "median","sum", "none"),
if the value is 'none', chromPlot will not apply some statistical function.
Details
chromPlot package creates an idiogram with all chromosomes including
the sex chromosomes. The package is able to plot genomic data on both
sides of chromosome as histograms or vertical segments. Histograms represent
the number of genomic elements in each bin of size bin. The parameters annot1, annot2,
annot3, annot4, segment, segment2, stat, stat2, band,
gaps should be data.frames with at leas these columns: 'Chrom', 'Start', 'End'. The
gaps and bands arguments are used to plot the chromosomal ideogram.The argument
band should also have a 'Group' column with categories for classifying
each annotation element. Arguments stat and stat2 should have a statCol and stat2Col
column respectively with continuoos values.
If plotted on the same chromosomal side, tracks will be plotted on top of each other, in
the order they are in the function's syntax. This can be used for plotting stacked barplots
if, for instance, annot1, annot2, annot3, and annot4 are supersets of ecah other.
This, however, is not enforced nor checked. An alternative way to create a stacked histogram is
providing a single track with Group category. The user can modify the side tracks are
plotted on by modifying chrSide.
The segment and segment2 tracks are plotted as vertical bars by default. However, the
their elements exceed in number given to maxSegs or if the maximum segment size is smaller
than bin, they are plotted as histograms. This behaviour can be modified by setting
noHist = TRUE.
For more details and usage examples see the vignette.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(chromPlot)
Loading required package: biomaRt
Loading required package: GenomicRanges
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, cbind, colnames, do.call, duplicated, eval, evalq,
get, grep, grepl, intersect, is.unsorted, lapply, lengths, mapply,
match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, rank,
rbind, rownames, sapply, setdiff, sort, table, tapply, union,
unique, unsplit
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: 'S4Vectors'
The following objects are masked from 'package:base':
colMeans, colSums, expand.grid, rowMeans, rowSums
Loading required package: IRanges
Loading required package: GenomeInfoDb
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/chromPlot/chromPlot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: chromPlot
> ### Title: Global visualization tool of genomic data
> ### Aliases: chromPlot
> ### Keywords: Histograms
>
> ### ** Examples
>
> data(hg_cytoBandIdeo)
> data(hg_gap)
> chromPlot(bands=hg_cytoBandIdeo, gaps=hg_gap)
Chrom 1 : 249250621 bp
Chrom 2 : 243199373 bp
Chrom 3 : 198022430 bp
Chrom 4 : 191154276 bp
Chrom 5 : 180915260 bp
Chrom 6 : 171115067 bp
Chrom 7 : 159138663 bp
Chrom 8 : 146364022 bp
Chrom 9 : 141213431 bp
Chrom 10 : 135534747 bp
Chrom 11 : 135006516 bp
Chrom 12 : 133851895 bp
Chrom 13 : 115169878 bp
Chrom 14 : 107349540 bp
Chrom 15 : 102531392 bp
Chrom 16 : 90354753 bp
Chrom 17 : 79759049 bp
Chrom 18 : 78077248 bp
Chrom 19 : 59128983 bp
Chrom 20 : 63025520 bp
Chrom 21 : 48129895 bp
Chrom 22 : 51304566 bp
Chrom X : 155270560 bp
Chrom Y : 59373566 bp
>
>
>
>
>
>
>
> dev.off()
null device
1
>