Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Mar 15, 2023
1 parent 1c7fa66 commit 78fee19
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
17 changes: 13 additions & 4 deletions R/methylation_array_convertDS.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
#' @title Convert methylation arrays
#' @title Convert a Methylation ExpressionSet from EPIC to 450k Array
#'
#' @param eSet `ExpressionSet` to convert
#' @param objective_array `character` Array to which conver (`"450k"` or `"epic"`)
#' @description This function subsets a methylation ExpressionSet from an EPIC array (850k probes) to a 450k array or vice versa.
#'
#' @return `ExpressionSet` converted
#' @param eSet A methylation ExpressionSet object containing either EPIC or 450k array data.
#' @param objective_array A character string specifying the target array type. Can be either "450k" or "epic".
#'
#' @return An ExpressionSet object containing the subset of probes based on the target array type.
#' @export
#'
#' @examples
#' # Load example data as 'eSet'
#' # Convert the eSet from EPIC array to 450k array
#' eSet_450k <- methylation_array_convertDS(eSet, objective_array = "450k")
#' # Convert the eSet from 450k array to EPIC array
#' eSet_epic <- methylation_array_convertDS(eSet, objective_array = "epic")

methylation_array_convertDS <- function(eSet, objective_array){

if(objective_array == "450k"){
Expand Down
17 changes: 12 additions & 5 deletions man/methylation_array_convertDS.Rd

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

0 comments on commit 78fee19

Please sign in to comment.