A Genetic Analysis Package with R [PDF]

allele.recode : function (a1, a2, miss.val = NA) ..... A PDF version of this file can be viewed with command vignette("g

7 downloads 36 Views 416KB Size

Recommend Stories


Package 'AdequacyModel' - CRAN-R - R Project [PDF]
May 20, 2016 - Brooks/Cole. Beni G, Wang J (1993). Swarm intelligence in cellular robotic systems. pp. 703-712. Chen, G., Balakrishnan, N. (1995). A general purpose approximate goodness-of-fit test. Journal of. Quality Technology 27, 154-16. Eberhart

Package 'meta' - CRAN-R - R Project [PDF]
Mar 22, 2018 - arguments prediction, hakn, and method.tau, respectively, in meta-analysis functions listed under 1. Fixed effect and random effects model). 6. Cumulative meta-analysis (metacum) and leave-one-out meta-analysis (metainf). 7. Meta-regre

Package 'meta' - CRAN-R - R Project [PDF]
Mar 22, 2018 - arguments prediction, hakn, and method.tau, respectively, in meta-analysis functions listed under 1. Fixed effect and random effects model). 6. Cumulative meta-analysis (metacum) and leave-one-out meta-analysis (metainf). 7. Meta-regre

[PDF] Applied Spatial Data Analysis with R
The greatest of richness is the richness of the soul. Prophet Muhammad (Peace be upon him)

R package sampling
When you talk, you are only repeating what you already know. But if you listen, you may learn something

Exploratory Data Analysis with R
I want to sing like the birds sing, not worrying about who hears or what they think. Rumi

PDF Numerical Ecology with R (Use R!)
Make yourself a priority once in a while. It's not selfish. It's necessary. Anonymous

[PDF] Numerical Ecology with R (Use R!)
We may have all come on different ships, but we're in the same boat now. M.L.King

Review PDF Applied Spatial Data Analysis with R
I want to sing like the birds sing, not worrying about who hears or what they think. Rumi

PDF Nonlinear Regression with R
Don't watch the clock, do what it does. Keep Going. Sam Levenson

Idea Transcript


A Genetic Analysis Package with R Jing Hua Zhao

MRC Epidemiology Unit, University of Cambridge, Cambridge, UK http://www.mrc-epid.cam.ac.uk/people/jing-hua-zhao

Contents 1 Introduction

1

2 Implementation

2

3 Independent programs

10

4 Demos

11

5 Examples 5.1 Pedigree drawing . 5.2 Kinship calculation 5.3 Study design . . . 5.4 Graphics examples

11 11 11 13 19

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

6 Polygenic modeling

23

7 Known bugs

23

8 Summary

24

9 Bibliographic note

24

1

Introduction

This package was initiated to integrate some C/Fortran/SAS programs I have written or used over the years. As such, it would rather be a longterm project, but an immediate benefit would be something complementary to other packages currently available from CRAN, e.g. genetics, hwde, etc. I hope eventually this will be part of a bigger effort to fulfill most of the requirements foreseen by many, e.g. Guo and Lange (2000), within the portable environment of R for ) to generate a list of functions and a list of )$results

[1,] [2,] [3,] [4,] [5,] [6,] [7,] [8,] [9,] [10,] [11,] [12,] [13,] [14,] [1,] [2,] [3,] [4,] [5,] [6,] [7,] [8,] [9,] [10,] [11,] [12,] [13,] [14,]

Package LibPath Item "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "PD" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "aldh2" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "apoeapoc" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "cf" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "crohn" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "fa" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "fsnps" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "hla" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "l51" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "lukas" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "mao" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "meyer" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "mfblong" "gap" "/tmp/RtmpLiNNA0/Rinst7d65377639d3" "nep499" Title "A study of Parkinson's disease and APOE, LRRK2, SNCA makers" "ALDH2 markers and Alcoholism" "APOE/APOC1 markers and Alzheimer's" "Cystic fibrosis ). You can cut and paste examples at end of each function’s documentation. Both genecounting and hap are able to handle SNPs and multiallelic markers, with the former be flexible enough to include features such as X-linked ) and vignette("pedtodot", package="gap"), respectively.

5.2

Kinship calculation

Next, I will provide an example for kinship calculation using kin.morgan. It is recommended that individuals in a pedigree are ordered so that parents always precede their children. In this regard, package pedigree can be used, and package kinship2 can be used to produce pedigree diagram as with kinship matrix.

11

Pedigree diagram > > > > > > >

# pedigree diagram ) library(kinship2) ped > > > > > > > >

# unordered individuals library(gap) gk1 > > > > > > > >

# order individuals so that parents precede their children library(pedigree) op > > > > > > > > > >

2.0, 0.50, 2.0, 0.80, 1.5, 0.01, 1.5, 0.10, 1.5, 0.50, 1.5, 0.80), ncol=2, byrow=TRUE) outfile

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.