Skip to content

Commit

Permalink
Devtools fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Feb 14, 2024
1 parent 929ef64 commit 1e959f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
15 changes: 6 additions & 9 deletions src/readMaf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char>(c));
}
}

//' Read a MAF file
//'
Expand All @@ -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<unsigned char>(c));
}
}

// [[Rcpp::export]]
Rcpp::List readMAF (std::string inputFileName) {
Rcpp::CharacterVector seqnames1;
Expand Down

0 comments on commit 1e959f1

Please sign in to comment.