Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor typo fixes #176

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/methSeg.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ methSeg<-function(obj, diagnostic.plot=TRUE, join.neighbours=FALSE,
# destrand
strand(obj) <- "*"

## check wether obj contains at least one metacol
## check whether obj contains at least one metacol
if(ncol(elementMetadata(obj))<1)
stop("GRanges does not have any meta column.")

## check wether obj contains is sorted by position
## check whether obj contains is sorted by position
if(is.unsorted(obj,ignore.strand=TRUE)) {
obj <- sort(obj,ignore.strand=TRUE)
message("Object not sorted by position, sorting now.")
}

## check wether obj contains at least two ranges else stop
## check whether obj contains at least two ranges else stop
if(length(obj)<=1)
stop("segmentation requires at least two ranges.")

Expand Down
3 changes: 2 additions & 1 deletion R/methylDBFunctions.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Helper Functions ---------------------------------------------------


#' @noRd
## function checks wether a tabix file already exists and
## appends number if file already exists
.checkTabixFileExists <- function(tabixfile) {
message("\nchecking wether tabix file already exists:")
message("\nchecking whether tabix file already exists:")
tabixfile <- paste0(tabixfile,".bgz")
message(tabixfile)
if(file.exists(tabixfile) ) {
Expand Down
2 changes: 1 addition & 1 deletion R/tabix.functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ obj2tabix <- function(obj,filename,rm.txt=TRUE){
append = TRUE)
}

#' function to check wether tabix header exists
#' function to check whether tabix header exists
#' and exit with message instead of error
#'
#' @param tbxFile tabix file
Expand Down
2 changes: 1 addition & 1 deletion src/methCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ int process_bam ( std::string &input,
else if( (xr_tag == "ZGA") && (xg_tag == "ZGA") ) {strand='-';} // complementary to original bottom strand, bismark says + strand to this


// check wether read is proper paired (both mapped)
// check whether read is proper paired (both mapped)
int proper_paired = (int) ((b)->core.flag&BAM_FPROPER_PAIR);

// if is proper pair and no_overlap is set
Expand Down