Last data update: 2014.03.03

R: The possible genotypes for an integer copy number.
genotypesR Documentation

The possible genotypes for an integer copy number.

Description

The possible genotypes for an integer copy number (0-4).

Usage

genotypes(copyNumber, is.snp=TRUE)

Arguments

copyNumber

Integer (0-4 allowed).

is.snp

Logical. If TRUE, possible genotypes for a polymorphic SNP is returned. If FALSE, only monomorphic genotypes returned.

Value

Character vector.

Author(s)

R. Scharpf

Examples


for(i in 0:4) print(genotypes(i))
for(i in 0:4) print(genotypes(i, FALSE))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(crlmm)
Loading required package: oligoClasses
Welcome to oligoClasses version 1.34.0
Loading required package: preprocessCore
Welcome to crlmm version 1.30.0
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/crlmm/genotypes.Rd_%03d_medium.png", width=480, height=480)
> ### Name: genotypes
> ### Title: The possible genotypes for an integer copy number.
> ### Aliases: genotypes
> ### Keywords: manip
> 
> ### ** Examples
> 
> 
> for(i in 0:4) print(genotypes(i))
[1] "NULL"
[1] "A" "B"
[1] "AA" "AB" "BB"
[1] "AAA" "AAB" "ABB" "BBB"
[1] "AAAA" "AAAB" "AABB" "ABBB" "BBBB"
> for(i in 0:4) print(genotypes(i, FALSE))
[1] "NULL"
[1] "A"
[1] "AA"
[1] "AAA"
[1] "AAAA"
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>