Skip to content

Commit

Permalink
remove file_exists statement using 'abort' in C++ code
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverVoogd committed Jul 11, 2023
1 parent 292ca2b commit 7aff9d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main-functions/group_bam2isoform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,12 @@ void group_bam2isoform(
const std::string &raw_gff3)
{
// random seed stuff here
// if (!file_exists(bam_in + ".bai")) {
// // Rcpp::stop("Can not find corresponding .bai file %s. Cancelling group_bam2isoform.\n", bam_in);
// Rcpp::Rcout << "Can not find corresponding .bai file " << bam_in << ". Cancelling group_bam2isoform.\n";
// return;
// }
if (false) {
// if (!file_exists(bam_in + ".bai")) { // WE CAN'T CHECK THIS AS THIS IS AN ABORT STATEMENT APPARENTLY
Rcpp::stop("Can not find corresponding .bai file %s. Cancelling group_bam2isoform.\n", bam_in);
// Rcpp::Rcout << "Can not find corresponding .bai file " << bam_in << ". Cancelling group_bam2isoform.\n";
return;
}

// import all the values of fa_f
const std::unordered_map<std::string, std::string> fa_dict = get_fa_dict(fa_file);
Expand Down

0 comments on commit 7aff9d6

Please sign in to comment.