Skip to content

Commit

Permalink
fixed memory error by fastcor
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Sep 30, 2020
1 parent e46d01b commit d5b474a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: imsig
Type: Package
Title: Immune Cell Gene Signatures for Profiling the Microenvironment of Solid Tumours
Version: 1.0.0
Version: 1.0.1
Author: Ajit Johnson Nirmal
Maintainer: Ajit Johnson Nirmal <[email protected]>
Description: Estimate the relative abundance of tissue-infiltrating immune subpopulations abundances using gene expression data.
Expand Down
3 changes: 2 additions & 1 deletion R/pp_exp.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

pp_exp <- function(exp){
sig <- sig
g <- Reduce(intersect, list(as.character(row.names(exp), sig$gene)))
#g <- Reduce(intersect, list(as.character(row.names(exp), sig$gene)))
g <- intersect(row.names(exp), as.character(sig$gene))
exp <- exp [as.character(g),]
return(exp)
}
3 changes: 2 additions & 1 deletion R/pp_sig.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#' @return ImSig dataframe

pp_sig <- function(exp){
g <- Reduce(intersect, list(as.character(row.names(exp), sig$gene)))
#g <- Reduce(intersect, list(as.character(row.names(exp), sig$gene)))
g <- intersect(row.names(exp), as.character(sig$gene))
sig <- sig[sig$gene %in% as.character(g),]
return(sig)
}
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ The survival metadata can be imported into R using something similar to the basi
**`install.packages("imsig")`**
**`library("imsig")`**

#### To use the latest developmental version

```
if( !require(devtools) ) install.packages("devtools")
devtools::install_github( "ajitjohnson/imsig", INSTALL_opts = "--no-multiarch")
# Load the package
library("imsig")
```

#### Get an idea of the imported data

**`gene_stat (exp = exp, r = 0.7)`**
Expand Down

0 comments on commit d5b474a

Please sign in to comment.