Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/estLatent.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assoc.SNP <- function(fit, FDRset = 0.1, fdrControl){
est$gamma[which(FDR <= FDRset)] <- 1
}
if (fdrControl == "local"){
est$gamma[which((1-fit$pi1) <= FDR.set)] <- 1
est$gamma[which((1-fit$pi1) <= FDRset)] <- 1
}
}
else if(length(fit) == 6){
Expand All @@ -28,7 +28,7 @@ assoc.SNP <- function(fit, FDRset = 0.1, fdrControl){
}
if (fdrControl == "local"){
est$gamma.stage1[which((1-fit$pi1.stage1) <= FDRset)] <- 1
est$gamma[which((1-fit$pi1) <= FDR.set)] <- 1
est$gamma[which((1-fit$pi1) <= FDRset)] <- 1
}
}
else {
Expand All @@ -49,7 +49,7 @@ assoc.SNP <- function(fit, FDRset = 0.1, fdrControl){
if (fdrControl == "local"){
est$gamma.stage1[which((1-fit$pi1.stage1) <= FDRset)] <- 1
est$gamma.stage2[which((1-fit$pi1.stage2) <= FDRset)] <- 1
est$gamma[which((1-fit$pi1) <= FDR.set)] <- 1
est$gamma[which((1-fit$pi1) <= FDRset)] <- 1
}
}

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ package?LSMM
References
==========

Jingsi Ming, Mingwei Dai, Mingxuan Cai, Xiang Wan, Jin Liu and Can Yang. LSMM: A statistical approach to integrating functional annotations with genome-wide association studies. 2017. Under review.
Jingsi Ming, Mingwei Dai, Mingxuan Cai, Xiang Wan, Jin Liu, Can Yang; LSMM: A statistical approach to integrating functional annotations with genome-wide association studies, Bioinformatics, 2018, bty187, https://doi.org/10.1093/bioinformatics/bty187


Reproducibility
==========

All the simulation results can be reproduced by using the code at [sim-LSMM](https://github.com/mingjingsi/sim-LSMM).


Development
Expand Down
Loading