Illustrative data set, with local haplotypes encoded, to be used as input of scanInv.
Usage
data(hapCode)
Format
The format is:
Formal class 'HaploCode' [package "inveRsion"] with 3 slots
..@ haploCode: num [1:2000, 1:583] 8 8 37 37 8 37 8 8 37 37 ...
.. ..- attr(*, "dimnames")=List of 2
.. .. ..$ : NULL
.. .. ..$ : chr [1:583] "0.602976-0.604061" "0.604061-0.605972" "0.60602-0.608417" "0.608668-0.608855" ...
..@ blockSize: num 3
..@ minAllele: num 0.3
Examples
data(hapCode)
hapCode
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(inveRsion)
Loading required package: haplo.stats
Hola!
welcome to inevRsion package.
type: manual() for full manual
vignette("inveRsion") for a quick start
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/inveRsion/hapCode.Rd_%03d_medium.png", width=480, height=480)
> ### Name: hapCode
> ### Title: Sample data set of class HaploCode
> ### Aliases: hapCode
> ### Keywords: datasets
>
> ### ** Examples
>
> data(hapCode)
> hapCode
-Showing object of class: HaploCode-
@haploCode: Binary code for haplotypes of brake-points flanked by SNP blocks
* numeric matrix ~ 2000 chromosomes by 55 brake points
* first 10x10 elements =
0.750755 1.240209 1.240209 1.240354 1.240354 1.240386 1.240386 1.241214
[1,] 0 0 0 0 4 0 0 0
[2,] 5 0 2 0 0 0 0 0
[3,] 0 0 0 0 0 0 0 4
[4,] 5 0 2 1 4 2 0 0
[5,] 5 0 2 0 4 0 0 0
[6,] 0 0 0 0 0 0 0 0
[7,] 5 7 2 0 4 0 7 0
[8,] 0 0 1 6 3 5 0 3
[9,] 5 0 2 0 4 0 0 0
[10,] 5 0 2 0 4 0 0 0
1.241214 1.241667
[1,] 0 0
[2,] 0 0
[3,] 0 1
[4,] 1 0
[5,] 0 0
[6,] 0 0
[7,] 0 0
[8,] 6 6
[9,] 0 0
[10,] 0 0
@blockSize: Block Size of 3 SNPs
@minAllele: Brake points with minimum allele frequency of 0.1
-end showing HaploCode-
>
>
>
>
>
> dev.off()
null device
1
>