Skip to content

Commit

Permalink
doc: improve pkgdown content
Browse files Browse the repository at this point in the history
  • Loading branch information
gladkia committed Feb 27, 2024
1 parent fee271d commit baa22a2
Show file tree
Hide file tree
Showing 31 changed files with 69 additions and 71 deletions.
20 changes: 12 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ Title: Package for handling the import of dose-response data
Version: 1.1.6
Date: 2024-02-26
Authors@R: c(
person("Arkadiusz", "Gladki", role=c("aut", "cre"), email="[email protected]"),
person("Bartosz", "Czech", role=c("aut")),
person("Marc", "Hafner", role=c("aut")),
person("Sergiu", "Mocanu", role=c("aut")),
person("Dariusz", "Scigocki", role=c("aut")),
person("Allison", "Vuong", role=c("aut")),
person("Luca", "Gerosa", role=c("aut")),
person("Janina", "Smola", role=c("aut")))
person("Arkadiusz", "Gladki", role=c("aut", "cre"), email="[email protected]",
comment = c(ORCID = "0000-0002-7059-6378")),
person("Bartosz", "Czech", role="aut",
comment = c(ORCID = "0000-0002-9908-3007")),
person("Marc", "Hafner", role="aut",
comment = c(ORCID = "0000-0003-1337-7598")),
person("Sergiu", "Mocanu", role="aut"),
person("Dariusz", "Scigocki", role="aut"),
person("Allison", "Vuong", role="aut"),
person("Luca", "Gerosa", role="aut",
comment = c(ORCID = "0000-0001-6805-9410")),
person("Janina", "Smola", role="aut"))
Description: The package is a part of the gDR suite. It helps to prepare raw drug response data for downstream processing. It mainly contains helper functions for importing/loading/validating dose-response data provided in different file formats.
License: Artistic-2.0
LazyLoad: yes
Expand Down
4 changes: 2 additions & 2 deletions R/MAE_to_PSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#'
#' @param mae A MultiAssayExperiment object generated by gDR.
#' @param pset_name A character string specifying the name of the resulting PharmacoSet object.
#' @keywords mae_to_pset
#' @keywords pset
#'
#' @return A PharmacoSet object.
#'
Expand Down Expand Up @@ -130,7 +130,7 @@ convert_MAE_to_PSet <- function(mae,
#'
#' @param SE A SummarizedExperiment object
#' @param assay_name A character string specifying the name of the assay to extract or create
#' @keywords mae_to_pset
#' @keywords pset
#'
#' @return A SummarizedExperiment object with the specified assay
#'
Expand Down
2 changes: 1 addition & 1 deletion R/assert_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' Check if all paths in vector are readable
#'
#' @param paths a character with path(s)
#' @keywords assert_utils
#' @keywords utils
#'
#' @examples
#' td2 <- get_test_Tecan_data()
Expand Down
14 changes: 7 additions & 7 deletions R/correction.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' get sheets for given set of XLS files
#'
#' @param files charvec with file paths
#' @keywords correction
#' @keywords correction_exception
#'
#' @return named list where names are the excel filenames
#' and the values are the sheets within each file
Expand All @@ -21,7 +21,7 @@ get_xl_sheets <- function(files) {
#'
#' get sheets for given set of XLS files
#' @param ts list with template sheets info
#' @keywords correction
#' @keywords correction_exception
#'
#' @return logical flag
#'
Expand Down Expand Up @@ -50,7 +50,7 @@ get_xl_sheets <- function(files) {
#' Correct names of the template sheets (if required)
#'
#' @param tfiles charvec with paths to template files
#' @keywords correction
#' @keywords correction_exception
#'
#' @return charvec with paths to corrected sheet names
correct_template_sheets <- function(tfiles) {
Expand Down Expand Up @@ -98,7 +98,7 @@ correct_template_sheets <- function(tfiles) {
#' Get names of the sheets expected in templates xlsx
#'
#' @param type charvec type of the sheets
#' @keywords correction
#' @keywords correction_exception
#'
#' @return string with type of the sheets
#'
Expand Down Expand Up @@ -134,7 +134,7 @@ get_expected_template_sheets <-
#' are template sheet valid?
#'
#' @param ts list with (per file) template sheets
#' @keywords correction
#' @keywords correction_exception
#'
#' @seealso get_xl_sheets
#'
Expand Down Expand Up @@ -181,7 +181,7 @@ are_template_sheets_valid <- function(ts) {
#' 'grepl' is used to find entries from 'ref' that might be
#' somehow pre- or post- fixed
#' @param fix_underscores logical flag fix the issues with underscores in data identfiers?
#' @keywords correction
#' @keywords correction_exception
#'
#' @return list or charvec with corrected data
#'
Expand Down Expand Up @@ -241,7 +241,7 @@ fix_typos_with_reference <-
#' @param x charvec with data
#' @param do_unlist logical_flag unlist the final results?
#' @param ... additional argument
#' @keywords correction
#' @keywords correction_exception
#'
#' @return list of charvec with grep output
#'
Expand Down
2 changes: 1 addition & 1 deletion R/exceptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ EXCEPTION_TABLE <- tibble::tribble(
#' @examples
#' get_exception_data(1)
#' get_exception_data()
#' @keywords exceptions
#' @keywords correction_exception
#'
#' @return A tibble row with exception data or all exceptions
#' @export
Expand Down
11 changes: 6 additions & 5 deletions R/load_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#' or character with file path of templates file(s)
#' @param results_file data.table, with datapaths and names of results file(s)
#' or character with file path of results file(s)
#' @param instrument character
#' @keywords load_files
#'
#' @examples
Expand Down Expand Up @@ -1134,7 +1135,7 @@ read_in_results_Tecan <- function(results_file, results_sheets, headers) {
#' @param col_df a character with colnames of df
#' @param df_name a name of data.table ("" by default)
#' @param df_type a type of a data.table (NULL by default)
#' @keywords load_files
#' @keywords correction_exception
#'
#' @examples
#' td <- get_test_data()
Expand Down Expand Up @@ -1168,7 +1169,7 @@ check_metadata_names <-
#' @param col_df a charvec with corrected colnames of df
#' @param df_name a name of data.table ("" by default)
#' @param df_type a type of a data.table (NULL by default)
#' @keywords load_files
#' @keywords correction_exception
#'
#'
#' @return \code{NULL} invisibly.
Expand Down Expand Up @@ -1225,7 +1226,7 @@ check_metadata_req_col_names <- function(col_df, df_name, df_type) {
#
#' @param corrected_names a charvec with corrected colnames of df
#' @param df_name a name of data.table ("" by default)
#' @keywords load_files
#' @keywords correction_exception
#'
#' @return a charvec with corrected colnames of df
#'
Expand All @@ -1249,7 +1250,7 @@ check_metadata_field_names <- function(corrected_names, df_name) {
#
#' @param corrected_names a charvec with corrected colnames of df
#' @param df_name a name of data.table ("" by default)
#' @keywords load_files
#' @keywords correction_exception
#'
#' @return a charvec with corrected colnames of df
#'
Expand Down Expand Up @@ -1278,7 +1279,7 @@ check_metadata_against_spaces <- function(corrected_names, df_name) {
#
#' @param corrected_names a charvec with corrected colnames of df
#' @param df_name a name of data.table ("" by default)
#' @keywords load_files
#' @keywords correction_exception
#'
#' @return a charvec with corrected colnames of df
#'
Expand Down
6 changes: 3 additions & 3 deletions R/pset_to_gdrDF.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @param pharmacoset PharmacoSet object
#' @param run_parallel logical, TRUE (default) if to run functions in Parallel, FALSE to run in serial
#' @param workers integer, number of workers defaults to 2L if run_parallel is TRUE
#' @keywords pset_to_gdr
#' @keywords pset
#' @return data.table of PharmacoSet's dose response data with column names aligned with gDR standard
#'
#' @examples
Expand Down Expand Up @@ -47,7 +47,7 @@ convert_pset_to_df <- function(pharmacoset,
#' setEnvForPSet()
#' gDRutils::reset_env_identifiers()
#'
#' @keywords pset_to_gdr
#' @keywords pset
#' @return \code{NULL}
#' @export
setEnvForPSet <- function() {
Expand Down Expand Up @@ -76,7 +76,7 @@ setEnvForPSet <- function() {
#' @param timeout maximum number of seconds allowed for PSet download
#' @param use_local_PSets_list logical flag if PSets list should be used from
#' local. If FALSE PSets list will be taken from web.
#' @keywords pset_to_gdr
#' @keywords pset
#'
#' @examples
#' suppressMessages(getPSet(
Expand Down
2 changes: 1 addition & 1 deletion R/testdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @examples
#' get_test_data()
#'
#' @keywords test_data
#' @keywords test_data_class
#' @export
#'
#' @return object class "gdr_test_data" with with input data (manifest/template/result paths)
Expand Down
29 changes: 10 additions & 19 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,24 @@ template:
bootstrap: 5

reference:
- title: Load files
- contents:
- has_keyword("load_files")
- title: Pset conversion
- contents:
- has_keyword("pset")
- title: Import D300
- contents:
- has_keyword("D300")
- title: Convert MAE to PSet object
- title: Input data validation/correction
- contents:
- has_keyword("mae_to_pset")
- title: Correction helpers
- contents:
- has_keyword("correction")
- title: Exception helpers
- has_keyword("correction_exception")
- title: Utils
- contents:
- has_keyword("exceptions")
- has_keyword("utils")
- title: Test data class
- contents:
- has_keyword("test_data_class")
- title: Load files
- contents:
- has_keyword("load_files")
- title: Convert Pset object to gDR object
- contents:
- has_keyword("pset_to_gdr")
- title: Test data
- contents:
- has_keyword("test_data")
- title: Assert utils
- contents:
- has_keyword("assert_utils")
- title: Utils
- contents:
- has_keyword("utils")
2 changes: 1 addition & 1 deletion man/are_template_sheets_valid.Rd

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

2 changes: 1 addition & 1 deletion man/check_metadata_against_spaces.Rd

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

2 changes: 1 addition & 1 deletion man/check_metadata_field_names.Rd

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

2 changes: 1 addition & 1 deletion man/check_metadata_headers.Rd

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

2 changes: 1 addition & 1 deletion man/check_metadata_names.Rd

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

2 changes: 1 addition & 1 deletion man/check_metadata_req_col_names.Rd

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

2 changes: 1 addition & 1 deletion man/convert_MAE_to_PSet.Rd

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

2 changes: 1 addition & 1 deletion man/convert_pset_to_df.Rd

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

2 changes: 1 addition & 1 deletion man/correct_template_sheets.Rd

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

2 changes: 1 addition & 1 deletion man/dot-check_against_single_template_sheet.Rd

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

2 changes: 1 addition & 1 deletion man/dot-extract_or_create_assay.Rd

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

2 changes: 1 addition & 1 deletion man/fix_typos_with_reference.Rd

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

8 changes: 4 additions & 4 deletions man/gDRimport-package.Rd

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

2 changes: 1 addition & 1 deletion man/getPSet.Rd

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

2 changes: 1 addition & 1 deletion man/get_exception_data.Rd

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

2 changes: 1 addition & 1 deletion man/get_expected_template_sheets.Rd

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

2 changes: 1 addition & 1 deletion man/get_test_data.Rd

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

2 changes: 1 addition & 1 deletion man/get_xl_sheets.Rd

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

2 changes: 1 addition & 1 deletion man/is_readable_v.Rd

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

2 changes: 2 additions & 0 deletions man/load_data.Rd

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

Loading

0 comments on commit baa22a2

Please sign in to comment.