Skip to content

Commit

Permalink
fixed tidyverse deprecation (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdstamp authored Jan 30, 2023
1 parent d3f360a commit 6fcf223
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/combine_pvalues.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fishers_combined <- function(pvalues, group_col = "id", p_col = "p") {
group_by(.data[[group_col]]) %>%
summarize(p = sumlog(.data[[p_col]])) %>%
mutate(trait = "fisher") %>%
relocate(.data[[group_col]], .data[["trait"]], .data[["p"]])
relocate(all_of(group_col), all_of("trait"), all_of("p"))
}


Expand Down Expand Up @@ -93,5 +93,5 @@ harmonic_combined <- function(pvalues, group_col = "id", p_col = "p") {
group_by(.data[[group_col]]) %>%
summarize(p = as.numeric(hmp.stat(.data[[p_col]]))) %>%
mutate(trait = "harmonic") %>%
relocate(.data[[group_col]], .data[["trait"]], .data[["p"]])
relocate(all_of(group_col), all_of("trait"), all_of("p"))
}
5 changes: 5 additions & 0 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

using namespace Rcpp;

#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif

// MAPITCpp
Rcpp::List MAPITCpp(const arma::mat X, const arma::mat Y, Rcpp::Nullable<Rcpp::NumericMatrix> Z, Rcpp::Nullable<Rcpp::NumericMatrix> C, Rcpp::Nullable<Rcpp::NumericVector> variantIndices, std::string testMethod, int cores, Rcpp::Nullable<Rcpp::NumericMatrix> GeneticSimilarityMatrix);
RcppExport SEXP _mvMAPIT_MAPITCpp(SEXP XSEXP, SEXP YSEXP, SEXP ZSEXP, SEXP CSEXP, SEXP variantIndicesSEXP, SEXP testMethodSEXP, SEXP coresSEXP, SEXP GeneticSimilarityMatrixSEXP) {
Expand Down

0 comments on commit 6fcf223

Please sign in to comment.