Skip to content

Commit

Permalink
Adjusted error message about differing chromosome names
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kuilman committed Apr 24, 2015
1 parent 96e9b30 commit 04715cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/CopywriteR.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ CopywriteR <- function(sample.control, destination.folder, reference.folder,
prefixes[3] <- gsub("[[:digit:]]|X|Y", "", chr.names)[1]

if (!all(prefixes == prefixes[1])) {
stop(.wrap("The bam files and supporting .bed files have different",
"chromosome names. Please adjust the input files such",
"that they contain the same chromosome notation."))
stop(.wrap("The support files created using preCopywriter and the",
"bam files and contain different chromosome names.",
"Please run preCopywriteR again using the right prefix",
"argument."))
}
}

Expand Down

0 comments on commit 04715cc

Please sign in to comment.