convert_mappoly_to_phased.maplist {polyqtlR}R Documentation

Function to extract the phased map from a mappoly.map object

Description

Convert MAPpoly.map object into a phased maplist, needed for IBD estimation

Usage

convert_mappoly_to_phased.maplist(mappoly_object)

Arguments

mappoly_object

An object of class 'mappoly.map', for example output of the function mappoly::est_rf_hmm_sequential

Value

A phased.maplist, with linkage group names LG1 etc. Each list item is a data.frame with columns marker, position followed by the phased map, coded in 1 and 0 for presence/absence of SNP (alternative) allele on parental homologues (h) numbered 1:ploidy for parent 1 and ploidy + 1 : 2*ploidy for parent 2.

Examples

## Not run: 
library("mappoly")
phased.maplist <- convert_mappoly_to_phased.maplist(maps.hexafake)

## End(Not run)

[Package polyqtlR version 0.1.1 Index]