-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2404912
commit 8796f04
Showing
14 changed files
with
180 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
Package: fat2Lpoly | ||
Type: Package | ||
Title: Two-locus Family-based Association Test with Polytomic Outcome | ||
Version: 1.0.2 | ||
Date: 2014-04-02 | ||
Title: Two-locus Family-based Association Test with Polytomous Outcome | ||
Version: 1.1.1 | ||
Date: 2014-10-16 | ||
Author: Alexandre BUREAU <alexandre.bureau@msp.ulaval.ca> and Jordie Croteau | ||
<jordie.croteau@crulrg.ulaval.ca> | ||
Maintainer: Alexandre BUREAU <alexandre.bureau@msp.ulaval.ca> | ||
Depends: R (>= 2.10), kinship2, multgee | ||
Description: Performs family-based association tests with a polytomous outcome under 2-locus and 1-locus models | ||
defined by some design matrix. | ||
Description: Performs family-based association tests with a polytomous outcome under 2-locus and 1-locus models defined by some design matrix. | ||
License: GPL | ||
LazyLoad: yes | ||
URL: http://www.crulrg.ulaval.ca/pages_perso_chercheurs/bureau_a/ | ||
Packaged: 2014-04-02 18:25:36 UTC; alexandrebureau | ||
Packaged: 2014-10-17 00:41:41 UTC; alexandrebureau | ||
NeedsCompilation: no | ||
Repository: CRAN | ||
Date/Publication: 2014-04-02 20:46:07 | ||
Date/Publication: 2014-10-17 13:10:17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import(multgee,kinship2) | ||
export(design.1locus,design.dichotomous,design.endo2disease,design.full,fat2Lpoly,fat2Lpoly.withinR,get.scores.pvalues,read.merlin.files) | ||
export(design.1locus,design.dichotomous,design.endo2disease,design.full,fat2Lpoly,fat2Lpoly.withinR,get.scores.pvalues,read.merlin.files,calcule.poids.Chen,calcule.poids.alphafixe) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
calcule.poids.Chen = function(xl,y,ind.par,rep.par,alpha,lc,klc=1) | ||
# Fonction pour calculer le poids de chaque paire de sujet pour les tests du score conditionnels à un locus | ||
# d'après l'équation 7 de Bureau et al. (2014) inspiré de l'équation 2 de Chen et al. (2009) | ||
###################### Définition des arguments ##################################################################################### | ||
# xl : matrice de design pour une famille pour le calcul des covariances | ||
# ind.par : donne les indices des locus pour la catégorie à laquelle chaque terme appartient | ||
# lc : locus sur lequel on conditionne le test du score | ||
# alpha.vec : vecteur de log rapports de cote entre phénotype et compte d'allèle au locus précisé par lc | ||
##################################################################################################################################### | ||
{ | ||
ni = dim(xl)[1] | ||
w = array(0,c(ni,ni,dim(xl)[3])) | ||
kk = 1 | ||
# Ajout d'un coefficient = 0 pour la catégorie de référence | ||
alpha = c(alpha,0) | ||
# print(y) | ||
# print(alpha) | ||
alpha.y = alpha[y] | ||
if (klc > 1) | ||
{ | ||
for (k in 1:(klc-1)) | ||
{ | ||
kk = kk + rep.par[k] | ||
} | ||
} | ||
# Obtenir l'élément qui contient l'indice du locus lc dans ind.par | ||
# Ce locus doit être inclus dans au moins une fonction logistique | ||
ilc = ind.par[[kk]][lc] | ||
plc = outer(xl[,ilc,klc],xl[,ilc,klc],"-")*outer(alpha.y,alpha.y,"-") | ||
wk = 8/ni * exp(plc)/(1+exp(plc))^3 | ||
# On copie les mêmes poids pour toutes les catégories de réponse | ||
for (k in 1:dim(xl)[3]) | ||
w[,,k] = wk | ||
w | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.