hapiGameteView: Visualization of haplotypes in a single gamete cell

View source: R/visualization.R

hapiGameteViewR Documentation

Visualization of haplotypes in a single gamete cell

Description

Visualization of haplotypes in a single gamete cell

Usage

hapiGameteView(hap, chr = hg19, hap.color = c("deepskyblue2",
  "darkorange2"), centromere.fill = "black", x.breaks = NULL,
  x.labels = NULL, y.breaks = NULL, y.labels = NULL)

Arguments

hap

a dataframe of all the phased hetSNPs in all chromosomes

chr

a dataframe of chromosome information, including length, and centrometric regions

hap.color

a vector of colors for the two haplotypes. Default is c('deepskyblue2','darkorange2')

centromere.fill

a character of the color for the centromeres. Default is 'black'

x.breaks

a vector of positions to show labels on x axis. Default is NULL

x.labels

a vector of labels on the x axis. Default is NULL

y.breaks

a vector of positions to show labels on y axis. Default is NULL

y.labels

a vector of labels on the y axis. Default is NULL

Value

a plot of haplotypes in a single gamete cell

Author(s)

Ruidong Li

Examples

data(gamete11)
## Not run: hapiGameteView(hap=gamete11)

rli012/Hapi documentation built on April 4, 2022, 8:39 p.m.