Skip to content

Commit

Permalink
Update doc for generateGeneBloc() function
Browse files Browse the repository at this point in the history
  • Loading branch information
adeschen committed Sep 29, 2023
1 parent e11e68e commit 82f9a00
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
20 changes: 13 additions & 7 deletions R/process1KG_internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,19 @@ pruning1KGbyChr <- function(gdsReference, method="corr", listSamples=NULL,
#' ## Reference GDS file
#' fileReferenceGDS <- file.path(path1KG, "ex1_good_small_1KG.gds")
#'
#' ## Open the reference GDS file (demo version)
#' gds1KG <- snpgdsOpen(fileReferenceGDS)
#'
#' ## The function returns a data frame containing gene block information
#' matGeneBlock <- RAIDS:::generateGeneBlock(gdsReference=gds1KG, ensDb=edb)
#' print(head(matGeneBlock[grep("ENSG00000157152", matGeneBlock$GName),]))
#' closefn.gds(gds1KG)
#' \donttest{
#' ## Open the reference GDS file (demo version)
#' gds1KG <- snpgdsOpen(fileReferenceGDS)
#'
#' ## The function returns a data.frame containing
#' ## gene block information
#' matGeneBlock <- RAIDS:::generateGeneBlock(gdsReference=gds1KG,
#' ensDb=edb)
#' print(head(matGeneBlock[grep("ENSG00000157152",
#' matGeneBlock$GName),]))
#'
#' closefn.gds(gds1KG)
#' }
#' }
#'
#' @author Pascal Belleau, Astrid Deschênes and Alex Krasnitz
Expand Down
18 changes: 12 additions & 6 deletions man/generateGeneBlock.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82f9a00

Please sign in to comment.