Skip to content

Commit

Permalink
require gene names for pScreen in stageRTx
Browse files Browse the repository at this point in the history
  • Loading branch information
statOmics committed Jul 19, 2018
1 parent ea73b74 commit bfd8689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: stageR
Type: Package
Title: stageR: stage-wise analysis of high throughput gene expression data in R
Version: 1.3.25
Version: 1.3.26
Author: Koen Van den Berge and Lieven Clement
Maintainer: Koen Van den Berge <[email protected]>
Description: The stageR package allows automated stage-wise analysis of high-throughput gene expression data. The method is published in Genome Biology at https://genomebiology.biomedcentral.com/articles/10.1186/s13059-017-1277-0
Expand Down
1 change: 1 addition & 0 deletions R/constructors.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ stageR <- function(pScreen, pConfirmation, pScreenAdjusted=FALSE){
#' @rdname stageRTx
#' @export
stageRTx <- function(pScreen, pConfirmation, pScreenAdjusted=FALSE, tx2gene){
if(is.null(names(pScreen))) stop("pScreen does not have names, please set the names of the corresponding genes to the pScreen vector.")
if(any(is.na(match(rownames(pConfirmation),tx2gene[,1]))))
stop("not all transcript names in pConfirmation match with a transcript ID from the tx2gene object.")
if(any(is.na(match(names(pScreen),tx2gene[,2]))))
Expand Down

0 comments on commit bfd8689

Please sign in to comment.