-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from PolyOmica/VariousFixes
Various fixes, including fix for Issue #4
- Loading branch information
Showing
25 changed files
with
238 additions
and
110 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 |
---|---|---|
|
@@ -13,21 +13,34 @@ Authors@R: c(person("Karim", "Oualkacha", email = | |
"[email protected]", role = "aut") | ||
) | ||
Author: Karim Oualkacha [aut, cre], | ||
M'Hamed Lajmi Lakhal-Chaieb [aut], | ||
Celia M.T. Greenwood [aut], | ||
Lennart C. Karssen [aut], | ||
Sodbo Sharapov [aut] | ||
M'Hamed Lajmi Lakhal-Chaieb [aut], | ||
Celia M.T. Greenwood [aut], | ||
Lennart C. Karssen [aut], | ||
Sodbo Sharapov [aut] | ||
Maintainer: Karim Oualkacha <[email protected]> | ||
Description: This is a collection of the five region-based | ||
rare-variant genetic association tests. The following tests are | ||
currently implemented: ASKAT, ASKAT-Normalized, VC-C1, VC-C2 and | ||
VC-C3. | ||
Depends: R (>= 3.2.2), foreach, doParallel | ||
Imports: ks, CompQuadForm, Matrix, snpStats, kinship2 | ||
Suggests: GenABEL, knitr, methods | ||
rare-variant genetic association tests. The following tests are | ||
currently implemented: ASKAT, ASKAT-Normalized, VC-C1, VC-C2 and | ||
VC-C3. | ||
Depends: | ||
R (>= 3.2.2), | ||
foreach, | ||
doParallel | ||
Imports: | ||
ks, | ||
CompQuadForm, | ||
data.table, | ||
Matrix, | ||
snpStats, | ||
kinship2 | ||
Suggests: | ||
GenABEL, | ||
knitr, | ||
methods | ||
License: GPL (>=3) | ||
Copyright: Celia M.T. Greenwood | ||
LazyData: true | ||
VignetteBuilder: knitr | ||
NeedsCompilation: no | ||
Packaged: 2015-12-04 01:53:06 UTC; karimoualkacha | ||
RoxygenNote: 5.0.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ff.hap <- function(k){ | ||
if (k==1) { | ||
x <- 6 + c(1, 2) | ||
} else { | ||
x <- 6 + c((2*k - 1), (2*k)) | ||
} | ||
return(x) | ||
} |
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,24 @@ | ||
lettersTo12 <- function(x){ | ||
x1 <- c(x[, 1], x[, 2]) | ||
Letters.SNP <- unique(x1) | ||
|
||
if (length(Letters.SNP) == 1) { | ||
x[, 1] <- x[, 2] <- 2 | ||
} | ||
|
||
if (length(Letters.SNP) > 1) { | ||
if ( ( length(which(x1 == Letters.SNP[1])) / length(x1) ) > 0.5 ) { | ||
x[which(x[, 1] == Letters.SNP[1]), 1] <- 2 | ||
x[which(x[, 2] == Letters.SNP[1]), 2] <- 2 | ||
x[which(x[, 1] == Letters.SNP[2]), 1] <- 1 | ||
x[which(x[, 2] == Letters.SNP[2]), 2] <- 1 | ||
} else { | ||
x[which(x[, 1] == Letters.SNP[2]), 1] <- 2 | ||
x[which(x[, 2] == Letters.SNP[2]), 2] <- 2 | ||
x[which(x[, 1] == Letters.SNP[1]), 1] <- 1 | ||
x[which(x[, 2] == Letters.SNP[1]), 2] <- 1 | ||
} | ||
} | ||
|
||
return(x) | ||
} |
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.