draw_haplotypes: draw_haplotypes

View source: R/draw_haplotypes.R

draw_haplotypesR Documentation

draw_haplotypes

Description

The function creates plots of all individuals in the input haplotype, which show the parental contributions for every chromosome.

Usage

draw_haplotypes(haplotypes,output_folder,parental_genotypes,heterozygous,by_chromosomes,im_type)

Arguments

haplotypes

Required: a haplotype object input.

output_folder

Required: an output folder to be created and store the images.

parental_genotypes

Required: the parental genotyping object

heterozygous

Optional: a logical argument to provide if the crop is heterozygous, default: TRUE

by_chromosomes

Optional: a logical argument to provide if the haplotypes will be sorted in the graphs by chromosomes, default: TRUE

im_type

Optional: the type of images

Examples

founders = read.table("parents.txt")[,1]
draw_haplotypes(haplotypes,'output_haplo',parental_genotypes)

USDA-ARS-GBRU/crossword documentation built on Oct. 11, 2024, 12:51 a.m.