This repository contains the analysis and figure-generating scripts for our academic paper titled:
"Widespread and Functional Gene Expression Outliers in Cancer"
This code is supplementary to the main analysis package, package-OutSeekR
(GitHub).
Figure/
: R project workspace with individual plotting scripts andrenv.lock
outlierAnalysisSupport/
: Common R package used by plotting scripts
- R (version >= 4.3)
Bootstrapping a new development environment requires the following steps:
- Clone this repository:
git clone https://github.com/uclahs-cds/project-CancerBiology-OutlierAnalysis.git
. - Navigate to the
Figure/
subdirectory. - Set the environment variables
OUTLIER_DATA_DIR
andOUTLIER_DATA_FILENAME
to reference the original outlier datafile. These can be set in an.Renviron
file. - Within R, call
renv::restore()
to install the snapshotted packages.
The scripts in this repository are run in two phases: first performing the common analysis, then plotting individual figures. The common analysis scripts use the helper function cache.multiple.computed.variables
to save individual computed variables into ./output/variable-cache/*.rda
. Those variables are reloaded by later scripts using load.multiple.computed.variables
.
The analysis scripts must be run in order:
1.preparation.R
2.copy.number.analysis.R
3.dna.methylation.analysis.R
4.cell.line.analysis.R
5.crispr.rnai.analysis.R
The individual plotting scripts (Figure/Figure*/Figure*.R
) have no further dependencies and may be run in any order. Each Figure/Figure*/Figure*.R
script produces one or more figures in the Figure/output/
directory, along with a Figure/output/Figure*.txt
session information file.
This project is licensed under the GNU General Public License version 2. See the file LICENSE.md for the terms of the GNU GPL license.
Copyright (C) 2024 University of California Los Angeles ("Boutros Lab") All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.