plotROHSegmentsChr: Creation of plot using ROH file

View source: R/plotROHSegmentsChr.r

plotROHSegmentsChrR Documentation

Creation of plot using ROH file

Description

This function is used to plot HBDsegments for a chromosome using an ROH file

Usage

plotROHSegmentsChr(
  ROH,
  submaps,
  unit = "cM",
  chr,
  outfile,
  listid,
  regions,
  build
)

Arguments

ROH

a data frame

submaps

a atlas object

unit

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

chr

the chromosome number from which to plot ROH

outfile

the name of the plot

listid

a vector containing the family id follow by the individual id

regions

a matrix containing the value to ve highlighted in the plot

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

Use this function when you want to use an ROH file to plot your HBDsegments for a specific chromosome.

Two unit are accepted : "Bases" or "cM".

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

This function returns a plot of the HBDsegments for a specific chromosome


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