get_dosage_type: Get Dosage Type in a Sequence

View source: R/utils.R

get_dosage_typeR Documentation

Get Dosage Type in a Sequence

Description

Analyzes a genomic sequence object to categorize markers based on their dosage type. The function calculates the dosage type by comparing the dosage of two parental sequences (p1 and p2) against the ploidy level. It categorizes markers into simplex for parent 1 (simplex.p), simplex for parent 2 (simplex.q), double simplex (ds), and multiplex based on the calculated dosages.

Usage

get_dosage_type(input.seq)

Arguments

input.seq

An object of class "mappoly.sequence":

Value

A list with four components categorizing marker names into:

simplex.p

Markers with a simplex dosage from parent 1.

simplex.q

Markers with a simplex dosage from parent 2.

double.simplex

Markers with a double simplex dosage.

multiplex

Markers not fitting into the above categories, indicating a multiplex dosage.


mmollina/MAPpoly documentation built on March 9, 2024, 2:52 a.m.