showGen: Display chosen genotypes

View source: R/showGen.R

showGenR Documentation

Display chosen genotypes

Description

This is a help function to extract genotypes from an object read in with genDataRead (or loaded with genDataLoad).

Usage

showGen(data.in, design = "triad", n = 5, from, to, sex, markers = 1:5)

Arguments

data.in

The data read in by genDataRead.

design

The design used in the study - choose from:

  • triad - data includes genotypes of mother, father and child;

  • cc - classical case-control;

  • cc.triad - hybrid design: triads with cases and controls;

.

n

Number of rows to display or "all" (default: 5).

from

From which row to display (optional, default: from the first).

to

To which row to display (optional).

sex

If the sex column is part of the phenotypic information, the user can choose based on one of the categories used in this column (optional); NB: this does not combine with the 'to' and 'from' arguments.

markers

A vector specifying which markers to display or "all" (default: first 5); NB: the user can specify the markers by numbers or by their names.

Value

A table with genotypes extracted from 'data.in'.


Haplin documentation built on May 20, 2022, 5:07 p.m.