Skip to content

Commit f517eb6

Browse files
committed
Commit version 1.0.0 of EPIC.
1 parent 706fba4 commit f517eb6

26 files changed

+985
-0
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
^data-raw$
4+
^README\.Rmd$
5+
^README-.*\.png$

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
# Hidden files automatically created by mac os or autosaved from
2+
# some other program
3+
.DS_Store
4+
._*
5+
*~
6+
~$*
7+
8+
# R-files and data/directories not to keep
19
.Rproj.user
210
.Rhistory
11+
.Rapp.history
312
.RData
413
.Ruserdata
14+
temp*.R
15+
inst/doc
16+
data-raw

DESCRIPTION

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Package: EPIC
2+
Type: Package
3+
Title: Estimate the Proportion of Immune and Cancer cells
4+
Version: 1.0.0
5+
Authors@R: as.person(c(
6+
"Julien Racle <julien.racle@unil.ch> [aut, cre]",
7+
"David Gfeller <david.gfeller@unil.ch> [aut]"
8+
))
9+
Description: Package implementing EPIC method to estimate the proportion of
10+
immune and cancer cells from bulk gene expression data. It is based on
11+
reference gene expression profiles for the main immune cell types and it
12+
predicts the proportion of these cells and of the remaining "other cells"
13+
that are the remaining cells (cancer, stromal, endothelial) for which no
14+
reference profile is given.
15+
Depends: R (>= 3.2.0)
16+
License: file LICENSE
17+
LazyData: TRUE
18+
RoxygenNote: 5.0.1
19+
Suggests: testthat,
20+
knitr,
21+
rmarkdown
22+
Imports: stats
23+
VignetteBuilder: knitr

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SOFTWARE LICENSE AGREEMENTFOR ACADEMIC NON-COMMERCIAL RESEARCH PURPOSES ONLYThis Agreement is made between Ludwig Institute for Cancer Research Ltd, a not-for-profit organization with its registered office at Stadelhoferstrasse 22, 8001 Zurich, Switzerland, and having a place of business at 666 Third Avenue, New York, NY 10017,USA (“LICR”) and the (“LICENSEE”) and is effective at the date the downloading is completed (“EFFECTIVE DATE”).WHEREAS, LICENSEE desires to license the PROGRAM, as defined hereinafter, and LICR wishes to have this PROGRAM utilized in the public interest, subject only to the royalty-free, nonexclusive, nontransferable license; andWHEREAS, LICENSEE desires to license the PROGRAM and LICR desires to grant a license on the following terms and conditions.NOW, THEREFORE, in consideration of the promises and covenants made herein, the parties hereto agree as follows:1. DEFINITIONS1.1 PROGRAM shall mean the source code known as EPIC (version 1.0), as it exists on the EFFECTIVE DATE.2. LICENSE2.1 Grant. Subject to the terms of this Agreement, LICR hereby grants to LICENSEE, solely for academic non-commercial research purposes, a non-exclusive, non-transferable license to: (a) download, execute and display the PROGRAM and (b) create bug fixes and modify the PROGRAM. LICENSEE hereby automatically grants to LICR a non-exclusive, royalty-free, irrevocable license to any LICENSEE bug fixes or modifications to the PROGRAM with unlimited rights to sublicense and/or distribute. LICENSEE agrees to provide any such modifications and bug fixes to LICR promptly upon their creation.The LICENSEE may apply the PROGRAM in a pipeline to data owned by users other than the LICENSEE and provide these users the results of the PROGRAM provided LICENSEE does so for academic non-commercial purposes only. 2.2 No Sublicensing or Additional Rights. LICENSEE shall not sublicense or distribute the PROGRAM, in whole or in part, without prior written permission from LICR. LICENSEE shall ensure that all of its users agree to the terms of this Agreement. LICENSEE further agrees that it shall not put the PROGRAM on a network, server, or other similar technology that may be accessed by anyone other than the LICENSEE and its employees and users who have agreed to the terms of this Agreement.2.3 License Limitations. Nothing in this Agreement shall be construed to confer any rights upon LICENSEE by implication, estoppel, or otherwise to any computer software, trademark, intellectual property, or patent rights of LICR, or of any other entity, except as expressly granted herein. LICENSEE agrees that the PROGRAM, in whole or part, shall not be used for any commercial purpose, including without limitation, as the basis of a commercial software or hardware product or to provide services. LICENSEE further agrees that the PROGRAM shall not be copied or otherwise adapted in order to circumvent the need for obtaining a license for use of the PROGRAM.3. OWNERSHIP OF INTELLECTUAL PROPERTYLICENSEE acknowledges that title to the PROGRAM shall remain with LICR. The PROGRAM shall be marked with the notice of attribution to contributors. LICENSEE shall retain such notice on all copies. LICENSEE agrees to include appropriate attribution if any results obtained from use of the PROGRAM are included in any publication.Notice of attribution: The EPIC (version 1.0) program was made available through the generosity of Ludwig Institute for Cancer Research Ltd.LICENSEE shall not use any trademark or trade name of LICR, or any variation, adaptation, or abbreviation, of such marks or trade names, or any names of officers, faculty, students, employees, or agents of LICR except as states above for attribution purposes.4. INDEMNIFICATIONLICENSEE shall indemnify, defend, and hold harmless LICR, and their respective officers, faculty, students, employees, associated investigators and agents, and their respective successors, heirs and assigns, (Indemnitees), against any liability, damage, loss, or expense (including reasonable attorneys fees and expenses) incurred by or imposed upon any of the Indemnitees in connection with any claims, suits, actions, demands or judgments arising out of any theory of liability (including, without limitation, actions in the form of tort, warranty, or strict liability and regardless of whether such action has any factual basis) pursuant to any right or license granted under this Agreement.5. NO REPRESENTATIONS OR WARRANTIESTHE PROGRAM IS DELIVERED AS IS. LICR MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE PROGRAM, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. LICR EXTENDS NO WARRANTIES OF ANY KIND AS TO PROGRAM CONFORMITY WITH WHATEVER USER MANUALS OR OTHER LITERATURE MAY BE ISSUED FROM TIME TO TIME.IN NO EVENT SHALL LICR OR ITS RESPECTIVE DIRECTORS, OFFICERS, EMPLOYEES, AFFILIATED INVESTIGATORS AND AFFILIATES BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND, INCLUDING, WITHOUT LIMITATION, ECONOMIC DAMAGES OR INJURY TO PROPERTY AND LOST PROFITS, REGARDLESS OF WHETHER LICR SHALL BE ADVISED, SHALL HAVE OTHER REASON TO KNOW, OR IN FACT SHALL KNOW OF THE POSSIBILITY OF THE FOREGOING.6. ASSIGNMENTThis Agreement is personal to LICENSEE and any rights or obligations assigned by LICENSEE without the prior written consent of LICR shall be null and void.7. MISCELLANEOUS7.1 Termination. LICENSEE shall have the right to terminate this Agreement for any reason upon prior written notice to LICR. If LICENSEE breaches any provision hereunder, and fails to cure such breach within thirty (30) days, LICR may terminate this Agreement immediately. Upon termination, LICENSEE shall provide LICR with written assurance that the original and all copies of the PROGRAM have been destroyed, except that, upon prior written authorization from LICR, LICENSEE may retain a copy for archive purposes.7.2 Survival. The following provisions shall survive the expiration or termination of this Agreement: Articles 1, 3, 4, 5 and Sections 2.2, 2.3, 7.3, and 7.4.7.3 Notice. Any notices under this Agreement shall be in writing, shall specifically refer to this Agreement, and shall be sent by hand, recognized national overnight courier, confirmed facsimile transmission, confirmed electronic mail, or registered or certified mail, postage prepaid, return receipt requested. All notices under this Agreement shall be deemed effective upon receipt.7.4 Amendment and Waiver; Entire Agreement. This Agreement may be amended, supplemented, or otherwise modified only by means of a written instrument signed by all parties. Any waiver of any rights or failure to act in a specific instance shall relate only to such instance and shall not be construed as an agreement to waive any rights or fail to act in any other instance, whether or not similar. This Agreement constitutes the entire agreement among the parties with respect to its subject matter and supersedes prior agreements or understandings between the parties relating to its subject matter.7.5 Binding Effect; Headings. This Agreement shall be binding upon and inure to the benefit of the parties and their respective permitted successors and assigns. All headings are for convenience only and shall not affect the meaning of any provision of this Agreement.7.6 Governing Law. This Agreement is governed by the laws of Switzerland and the Canton of Vaud.

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Generated by roxygen2: do not edit by hand
2+
3+
export(EPIC)

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version 1.0.0
2+
------------------------------------------------------------------------
3+
* Public release of EPIC package.

R/EPIC_descr.R

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
#' EPIC: a package to Estimate the Proportion of Immune and Cancer cells from
2+
#' tumor gene expression data.
3+
#'
4+
#' EPIC package provides the function and immune cell reference profiles to
5+
#' estimate the proportion of immune and other cells from bulk gene expression
6+
#' data.
7+
#'
8+
#' @section EPIC functions:
9+
#' \code{\link{EPIC}} is the main function to call to estimate the
10+
#' various cells proportions from a bulk sample.
11+
#'
12+
#' @section Included datasets:
13+
#' \code{\link{BRef}}, \code{\link{BRef.tpm}}: reference profiles from
14+
#' circulating immune cells.
15+
#'
16+
#' \code{\link{TRef.tpm}}: reference profiles from immune cells obtained
17+
#' from single cell data of tumor infiltrating cells from melanoma patients.
18+
#'
19+
#' \code{\link{hoek_data}}: example dataset containing data from Hoek et al,
20+
#' 2015, PLoS One.
21+
#'
22+
#' \code{\link{mRNA_cell_default}}: values of mRNA per cell for the main cell
23+
#' types.
24+
#'
25+
#' @section Authors:
26+
#' Julien Racle <\email{julien.racle@unil.ch}> and David Gfeller <\email{
27+
#' david.gfeller@unil.ch}>.
28+
#'
29+
#' @docType package
30+
#' @name EPIC.package
31+
NULL
32+
33+
34+
#' Reference profiles from circulating immune cells.
35+
#'
36+
#' A dataset containing the reference profiles obtained from immune cell
37+
#' samples of \emph{B-}, \emph{NK-}, \emph{T-cells}, \emph{Monocytes}
38+
#' and \emph{Neutrophils} purified from PBMC or whole blood.
39+
#'
40+
#' The original samples were obtained from healthy donors and donors after
41+
#' influenza vaccination or with diabetes, sepsis or multiple sclerosis.
42+
#'
43+
#' @section Similar datasets:
44+
#' \code{BRef} (main reference profiles, using data from sources 1-3 below)
45+
#'
46+
#'
47+
#' @format A list of 3 elements: \describe{ \item{$refProfiles,
48+
#' $refProfiles.var}{Matrices (nGenes x nRefCells) of the normalized gene
49+
#' expression from the reference cells and the variability of this gene
50+
#' expression for each gene and each cell type} \item{$sigGenes}{A list of 100
51+
#' signature genes used to deconvolve the cell proportions} }
52+
#'
53+
#' @source \enumerate{
54+
#' \item \url{https://www.ebi.ac.uk/arrayexpress/experiments/E-GEOD-64655},
55+
#' \item \url{https://www.ebi.ac.uk/arrayexpress/experiments/E-GEOD-60424/},
56+
#' \item \url{http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE51984}
57+
#' }
58+
"BRef"
59+
60+
#' @section Similar datasets:
61+
#' \code{BRef.tpm} (reference profiles based on same data as \code{BRef},
62+
#' but given in TPM counts instead of raw counts)
63+
#' @rdname BRef
64+
"BRef.tpm"
65+
66+
#' Reference profiles obtained from single cell data of tumor infiltrating
67+
#' cells.
68+
#'
69+
#' A dataset containing the reference profiles given in TPM from various cell
70+
#' types: \emph{B-}, \emph{NK-}, \emph{T-cells} and \emph{Macrophages}.
71+
#'
72+
#' These were obtained from single-cell RNA-seq data from 9 donors from
73+
#' the publication of Tirosh et al., 2016, Science. The samples
74+
#' come from cancer metastases of melanoma (extracted from primary tumors
75+
#' and non-lymphoid tissue metastases). The classification for each sample with
76+
#' respect to each cell type is the one given by Tirosh et al.
77+
#'
78+
#' @format A list of 3 elements: \describe{ \item{$refProfiles,
79+
#' $refProfiles.var}{Matrices (nGenes x nRefCells) of the normalized gene
80+
#' expression from the reference cells and the variability of this gene
81+
#' expression for each gene and each cell type} \item{$sigGenes}{A list of 80
82+
#' signature genes used to deconvolve the cell proportions} }
83+
#'
84+
#' @source \url{http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE72056}
85+
"TRef.tpm"
86+
87+
#' Values of mRNA / cell for the main cell types.
88+
#'
89+
#' These values have been obtained from experiments (see \cite{EPIC} publication).
90+
#' For the other uncharacterized cells, we use a value of 0.4 as described
91+
#' in \cite{EPIC} publication. For macrophages we don't have specific values but
92+
#' assumed here it is the same value as for monocytes.
93+
#'
94+
#' @format A named numeric vector of the relative amount of mRNA per cell type.
95+
#' There are two additional "special cell types": the \emph{otherCells} which
96+
#' correspond to the uncharacterized cells present in the sample but without
97+
#' any reference profile and the \emph{default} which is the default value used
98+
#' for cells with reference profiles but without a value specified in the
99+
#' \code{mRNA_cell_default} vector.
100+
"mRNA_cell_default"
101+
102+
#' Example dataset containing data from Hoek et al, 2015, PLoS One.
103+
#'
104+
#' This dataset contains a subset of the full Hoek et al data. It contains only
105+
#' the data from the two healthy donors PBMC before influenza vaccination.
106+
#'
107+
#' @format This is a list of 3 elements: \describe{
108+
#' \item{$rawCounts}{(matrix of 51574 genes x 2 donors) The raw read counts
109+
#' from the two donors. It has been obtained by mapping the original
110+
#' fastq files to \emph{hg19} genome with help of \emph{tophat} and
111+
#' \emph{htseq-count}.}
112+
#' \item{$cellFractions.obs}{(matrix of 2 donors x 6 cell types) The
113+
#' proportions of the different immune cells in the PBMC from the 2 donors,
114+
#' as measured by FACS by Hoek et al.}
115+
#' \item{$cellFractions.pred}{(matrix of 2 donors x 7 cell types) The
116+
#' proportions of the different immune cells and of a potential additional
117+
#' uncharacterized cell, as predicted by EPIC based on the rawCounts and
118+
#' the profiles \code{reference=BRef}.}
119+
#' }
120+
#'
121+
#' @source The description of this data can be found here:
122+
#' \href{http://dx.doi.org/10.1371/journal.pone.0118528}{link to paper}
123+
#' and \href{https://www.ebi.ac.uk/arrayexpress/experiments/E-GEOD-64655}{link
124+
#' to data}.
125+
"hoek_data"
126+

0 commit comments

Comments
 (0)