Skip to content

Commit

Permalink
simplify man 2
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Jun 7, 2020
1 parent 4fd84ee commit 50c7b6c
Show file tree
Hide file tree
Showing 24 changed files with 65 additions and 9 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ LazyData: true
RoxygenNote: 7.1.0
Imports:
lifecycle,
ggplot2,
magrittr,
tibble,
dplyr,
Expand All @@ -42,7 +41,7 @@ Suggests:
Seurat,
limma,
GGally,
tidyverse
ggplot2
VignetteBuilder:
knitr
Biarch: true
Expand Down
6 changes: 6 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#' Example data set
#'
#' @keywords internal
#'
#'
"test_data"

#' Example data set reduced
#'
#' @keywords internal
#'
#'
"test_data2"

#' Cibersort reference
#'
#' @keywords internal
#'
#'
"mtcars_tidy"
Expand Down
20 changes: 19 additions & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ my_stop = function() {
}

#' This is a generalisation of ifelse that acceots an object and return an objects
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand All @@ -28,7 +30,9 @@ ifelse_pipe = function(.x, .p, .f1, .f2 = NULL) {

}

#' This is a generalisation of ifelse that acceots an object and return an objects
#' This is a generalisation of ifelse that accepts an object and return an objects
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand Down Expand Up @@ -64,6 +68,8 @@ ifelse2_pipe = function(.x, .p1, .p2, .f1, .f2, .f3 = NULL) {
}

#' Sub function of remove_redundancy_elements_though_reduced_dimensions
#'
#' @keywords internal
#'
#' @importFrom stats dist
#' @importFrom utils head
Expand Down Expand Up @@ -98,6 +104,8 @@ select_closest_pairs = function(df) {
}

#' get_x_y_annotation_columns
#'
#' @keywords internal
#'
#' @importFrom magrittr equals
#'
Expand Down Expand Up @@ -277,6 +285,8 @@ drop_internals = function(.data){
}

#' Add attribute to abject
#'
#' @keywords internal
#'
#'
#' @param var A tibble
Expand All @@ -290,6 +300,8 @@ add_attr = function(var, attribute, name) {
}

#' Drop attribute to abject
#'
#' @keywords internal
#'
#'
#' @param var A tibble
Expand All @@ -302,6 +314,8 @@ drop_attr = function(var, name) {
}

#' Convert array of quosure (e.g. c(col_a, col_b)) into character vector
#'
#' @keywords internal
#'
#' @importFrom rlang quo_name
#' @importFrom rlang quo_squash
Expand All @@ -327,6 +341,8 @@ rotation = function(m, d) {
}

#' .formula parser
#'
#' @keywords internal
#'
#' @importFrom stats terms
#'
Expand All @@ -342,6 +358,8 @@ parse_formula <- function(fm) {
}

#' Remove class to abject
#'
#' @keywords internal
#'
#'
#' @param var A tibble
Expand Down
14 changes: 14 additions & 0 deletions R/validation.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#' Check whether there are NA counts
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand All @@ -23,6 +25,8 @@ error_if_counts_is_na = function(.data, .abundance) {


#' Check whether a numeric vector has been log transformed
#'
#' @keywords internal
#'
#' @param x A numeric vector
#' @param .abundance A character name of the transcript/gene abundance column
Expand All @@ -43,6 +47,8 @@ error_if_log_transformed <- function(x, .abundance) {
}

#' Check whether there are duplicated genes/transcripts
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand Down Expand Up @@ -95,6 +101,8 @@ error_if_duplicated_genes <- function(.data,


#' Check whether there are NA counts
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand Down Expand Up @@ -128,6 +136,8 @@ error_if_wrong_input = function(.data, list_input, expected_type) {
}

#' Check whether there are NA counts
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand Down Expand Up @@ -155,6 +165,8 @@ check_if_wrong_input = function(.data, list_input, expected_type) {
}

#' Check whether there are duplicated genes/transcripts
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand Down Expand Up @@ -209,6 +221,8 @@ check_if_duplicated_genes <- function(.data,
}

#' Check whether there are NA counts
#'
#' @keywords internal
#'
#' @import dplyr
#' @import tidyr
Expand Down
1 change: 1 addition & 0 deletions man/add_attr.Rd

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

1 change: 1 addition & 0 deletions man/check_if_counts_is_na.Rd

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

1 change: 1 addition & 0 deletions man/check_if_duplicated_genes.Rd

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

1 change: 1 addition & 0 deletions man/check_if_wrong_input.Rd

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

1 change: 1 addition & 0 deletions man/drop_attr.Rd

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

1 change: 1 addition & 0 deletions man/drop_class.Rd

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

1 change: 1 addition & 0 deletions man/error_if_counts_is_na.Rd

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

1 change: 1 addition & 0 deletions man/error_if_duplicated_genes.Rd

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

1 change: 1 addition & 0 deletions man/error_if_log_transformed.Rd

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

1 change: 1 addition & 0 deletions man/error_if_wrong_input.Rd

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

1 change: 1 addition & 0 deletions man/get_x_y_annotation_columns.Rd

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

5 changes: 3 additions & 2 deletions man/ifelse2_pipe.Rd

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

1 change: 1 addition & 0 deletions man/ifelse_pipe.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/mtcars_tidy.Rd

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

1 change: 1 addition & 0 deletions man/parse_formula.Rd

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

1 change: 1 addition & 0 deletions man/quo_names.Rd

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

1 change: 1 addition & 0 deletions man/select_closest_pairs.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/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/test_data2.Rd

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

5 changes: 4 additions & 1 deletion vignettes/introdution.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ library(knitr)
knitr::opts_chunk$set(cache = TRUE, warning = FALSE,
message = FALSE, cache.lazy = FALSE)
library(tidyverse)
library(dplyr)
library(tidyr)
library(ggplot2)
library(purrr)
library(magrittr)
library(nanny)
Expand Down

0 comments on commit 50c7b6c

Please sign in to comment.