Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a44114d
Showing
14 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Package: imsig | ||
Type: Package | ||
Title: Immune Cell Gene Signatures for Profiling the Microenvironment of Solid Tumours | ||
Version: 0.1.0 | ||
Author: Ajit Johnson Nirmal | ||
Maintainer: Ajit Johnson Nirmal <ajitjohnson.n@gmail.com> | ||
Description: Estimating relative abundance of tissue-infiltrating immune subpopulations abundances using gene expression data. | ||
License: MIT | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Imports: | ||
HiClimR (>= 1.2.3) | ||
RoxygenNote: 6.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(corr_matrix) | ||
importFrom(HiClimR,fastCor) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' @title Generation of a correlation matrix | ||
#' @description Creates a correlation matrix using ImSig signature genes. | ||
#' @param exp Expression matrix with genes as rows and samples as columns [data.frame] | ||
#' @param r Correlation cut-off to use. Correlations below the defined cut-off will be replaced with zero before returning the final correlation matrix. | ||
#' @return Gene-gene correlation matrix of the ImSig genes. | ||
#' @importFrom HiClimR fastCor | ||
#' @export | ||
|
||
corr_matrix <- function(exp, r){ | ||
sig_su <- sig[which(as.character(sig$gene) %in% row.names(exp)), ] | ||
data <- exp[as.character(sig_su$gene),] | ||
cor_data <- fastCor(t(data)) | ||
cor_data[cor_data <= r]= 0 | ||
diag(cor_data) = 0 | ||
return(cor_data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#' @title ImSig genes | ||
#' @description ImSig signature genes and the cell type they represent | ||
#' @name sig | ||
#' @docType data | ||
#' @usage sig | ||
#' @format dataframe | ||
#' @keywords datasets | ||
NULL |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Version: 1.0 | ||
|
||
RestoreWorkspace: Default | ||
SaveWorkspace: Default | ||
AlwaysSaveHistory: Default | ||
|
||
EnableCodeIndexing: Yes | ||
UseSpacesForTab: Yes | ||
NumSpacesForTab: 2 | ||
Encoding: UTF-8 | ||
|
||
RnwWeave: Sweave | ||
LaTeX: pdfLaTeX | ||
|
||
AutoAppendNewline: Yes | ||
StripTrailingWhitespace: Yes | ||
|
||
BuildType: Package | ||
PackageUseDevtools: Yes | ||
PackageInstallArgs: --no-multiarch --with-keep.source | ||
PackageCheckArgs: --as-cran | ||
PackageRoxygenize: rd,collate,namespace,vignette |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.