Learn R Programming

IBDhaploRtools (version 1.8)

ibdhap.names: Get chromosome names

Description

Get identifying infomation of chromosomes making up each set, this consists of a number identifying the individual and 0/1 indicator of which of their two chromosomes was used.

Usage

ibdhap.names(ids.file=NULL, ids.filename = NULL)

Arguments

ids.file
A matrix of the .ids file used to run ibd_haplo.If this is left as the default NULL, ids.filename should be specified
ids.filename
The filename (location) of the ids file used to run ibd_haplo. This is to be input as a character string. The ids file will be loaded from this location if ids.file is not specified.

Value

Matrix with a row for each set of chromosomes and two columns for each constituent chromosome. The first column is the individual number and the second column indicates which of their two chromosomes is used.

Examples

Run this code
## this example is taken from the package vignette.
##See vignette(IBDhaploRtools_tutorial)

data(ids_phased)
ibdhap.names( ids.file = ids_phased )

Run the code above in your browser using DataLab