HBDPlotChr: plot of HBD segment

View source: R/HBDPlotChr.r

HBDPlotChrR Documentation

plot of HBD segment

Description

This function plots the HBDsegments for a given chromosome and all the individuals

Usage

HBDPlotChr(
  Submaps,
  ROH,
  unit = "cM",
  chr,
  list.ids,
  regions,
  outfile,
  inbred = FALSE,
  build = 37
)

Arguments

Submaps

a list.submap object

ROH

a data frame from which the segments will be plotted (optional)

unit

the unit used to plot, two options are allowed "Bases", "cM" (default is "CM")

chr

the chromosome number from which to plot HBD segment

list.ids

a vector containing a list of individuals from which only the HBDsegments for this chromosome will be ploted (optional)

regions

a specific region to be enlighted in the plot (optional)

outfile

a name for the plot (optional)

inbred

whether you want to plot only inbred individuals or not (default is FALSE)

build

the value of the build to use to plot chromosome in the plot value accepted are 35, 36, 37, 38 (default is 37)

Details

If you use the regions options make sure to pass a matrix containing one line per region to be highlighted with in each line :

-the chromosome number

-start

-end

Value

return a plot of the chromosome HBDsegments for all the individual

See Also

Fantasio

setHFLOD

Examples

 
#Please refer to vignette 



genostats/Fantasio documentation built on Feb. 2, 2023, 5:28 p.m.