haptodoubl: Format IUPAC

View source: R/SNPformat.R

haptodoublR Documentation

Format IUPAC

Description

Function to convert HAPMAP format to double alleles with no separation, i.e, from A to AA, C to CC, R to AG, Y to CT, etc. Markers should be in columns and GIDs in rows.

Usage

haptodoubl(df = NULL, snp.col = NULL, is.gid.in.col = FALSE, snp.names = NULL)

Arguments

df

Is a data frame that contains SNP data in IUPAC format

snp.col

Is the index where the SNP data starts in the data frame. Set to NULL if the SNPs are in rows

is.gid.in.col

Is a Logical to indicate if the individuals are in columns (TRUE) or in rows (FALSE). Default value is FALSE

snp.names

Not used


leocrh/FPGC documentation built on Nov. 15, 2024, 2:46 a.m.