Skip to content

Commit

Permalink
Version 1.0.5: updated EPIC to remove genes from bulk that have only …
Browse files Browse the repository at this point in the history
…NA values.
  • Loading branch information
jracle85 committed Aug 28, 2017
1 parent 8cdea74 commit 6df4f24
Show file tree
Hide file tree
Showing 3 changed files with 10 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: EPIC
Type: Package
Title: Estimate the Proportion of Immune and Cancer cells
Version: 1.0.4
Version: 1.0.5
Authors@R: as.person(c(
"Julien Racle <[email protected]> [aut, cre]",
"David Gfeller <[email protected]> [aut]"
Expand Down
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 1.0.5
------------------------------------------------------------------------
* Updated EPIC to remove genes from bulk that have only NA values.

Version 1.0.4
------------------------------------------------------------------------
* Changed the name "scaleRefProf" to "scaleExprs" and made this boolean makes
Expand Down
5 changes: 5 additions & 0 deletions R/EPIC_fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ EPIC <- function(bulk, reference=NULL, mRNA_cell=NULL, mRNA_cell_sub=NULL,

# Keeping only common genes and normalizing the counts based on these common
# genes
bulk_NA <- apply(is.na(bulk), MARGIN=1, FUN=all)
if (any(bulk_NA)){
warning(sum(bulk_NA), " genes are NA in all bulk samples, removing these.")
bulk <- bulk[!bulk_NA,]
}
bulkGenes <- rownames(bulk)
if (anyDuplicated(bulkGenes))
stop("There are some duplicated gene names in 'bulk'")
Expand Down

0 comments on commit 6df4f24

Please sign in to comment.