plotROHSegmentsId: Creation of plot using ROH file

View source: R/plotROHSegmentsId.r

plotROHSegmentsIdR Documentation

Creation of plot using ROH file

Description

This function plots HBDsegments for a specific individual using an ROH file

Usage

plotROHSegmentsId(
  Submaps,
  ROH,
  unit = "cM",
  regions,
  outfile,
  famid,
  id,
  build
)

Arguments

Submaps

a atlas object

ROH

a data frame

unit

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

regions

a matrix containing the value to ve highlighted in the plot

outfile

the name of the plot

famid

the family id of the individual wanted

id

the individual id of the individual wanted

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 individual.

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 individual


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