diff --git a/R/RcppExports.R b/R/RcppExports.R index 0856168..349f83e 100644 --- a/R/RcppExports.R +++ b/R/RcppExports.R @@ -15,8 +15,6 @@ #' genomes and other information such as alignment width and number of matches. #' @importFrom Rcpp evalCpp #' @useDynLib GenomicBreaks, .registration = TRUE -NULL - readMAF <- function(inputFileName) { .Call(`_GenomicBreaks_readMAF`, inputFileName) } diff --git a/src/readMaf.cpp b/src/readMaf.cpp index b8095a2..37fdf4e 100644 --- a/src/readMaf.cpp +++ b/src/readMaf.cpp @@ -8,7 +8,12 @@ using namespace Rcpp; -// [[Rcpp::depends(BH)]] +// ChatGPT answer for replacing boost::to_upper for ASCII input. +void toUpperAscii(std::string &str) { + for (char &c : str) { + c = std::toupper(static_cast(c)); + } +} //' Read a MAF file //' @@ -24,14 +29,6 @@ using namespace Rcpp; //' genomes and other information such as alignment width and number of matches. //' @importFrom Rcpp evalCpp //' @useDynLib GenomicBreaks, .registration = TRUE - -// ChatGPT answer for replacing boost::to_upper for ASCII input. -void toUpperAscii(std::string &str) { - for (char &c : str) { - c = std::toupper(static_cast(c)); - } -} - // [[Rcpp::export]] Rcpp::List readMAF (std::string inputFileName) { Rcpp::CharacterVector seqnames1;