Requirements
Software
- Python 3.6 (miniconda)
- Python 2.7 (miniconda)
- Java 8
- R 3.4 (https://mran.microsoft.com/download)
Configure conda channels
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/mro/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
Install Python packages using conda
conda install -y numpy scipy scikit-learn
conda install -y pandas matplotlib seaborn
conda install -y tqdm snakemake h5py bokeh
conda install -y umap jinja2
pip install mlxtend
pip install flask Flask-AutoIndex
Install Bioconda packages
List of all available Bioconda packages: (https://bioconda.github.io/recipes.html)
conda install -y bedtools samtools star subread bowtie2
conda install -y rsem bamtools cutadapt picard gffread gffcompare
conda install -y ucsc-bedtogenepred ucsc-genepredtogtf ucsc-bedgraphtobigwig ucsc-bigwigtobedgraph
conda install -y htseq fastx_toolkit biopython rpy2
conda install -y flexbar
Install Ubuntu packages
sudo apt-get install -y gzip pigz openjdk-8-jdk libgraphviz-dev uuid-dev zlib1g-dev libpng-dev gawk
Install R packages
Install by running the following code in an R interactive session:
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
# From CRAN
install.packages(c('devtools', 'sva', 'VGAM', 'argparse', 'magrittr', 'readr', 'mvoutlier',
'ggpubr', 'fastqr'))
# From Bioconductor
source('https://bioconductor.org/biocLite.R')
biocLite(c('SingleCellExperiment', 'scater', 'scran', 'SCnorm',
'EDASeq', 'RUVSeq', 'DESeq2', 'edgeR', 'sva', 'apeglm'))
# From R-forge
install.packages('countreg', repos = c('http://R-Forge.R-project.org', 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/'), dep = TRUE)
# From GitHub
library(devtools)
install_github('ChenMengjie/VIPER')
install_github('kassambara/easyGgplot2')
install_github("Vivianstats/scImpute")
install_github("hemberg-lab/scRNA.seq.funcs")
Other packages
- find_circ 1.2 (depends on Python 2.7)
- GTFTools (depends on Python)
- Prinseq (requires Perl)
Singularity
Build image
singularity build singularity/exseek.img singularity/Singularity
Make wrappers for singularity executables
bin/make_singularity_wrappers.py \
--image ~/singularity/simg/exseek.simg \
--list-file singularity/exports.txt \
--singularity-path $(which singularity) \
-o ~/singularity/wrappers/exseek
Add wrappers to PATH
export PATH="$HOME/singularity/wrappers/exseek:$PATH"
Build Pykent
wget -O tools/ucsc-tools.tar.gz http://hgdownload.soe.ucsc.edu/admin/exe/userApps.src.tgz
tar -C tools -zxf tools/ucsc-tools.tar.gz
(cd tools/userApps/kent/src/htslib/
CFLAGS="-fPIC -DUCSC_CRAM=0 -DKNETFILE_HOOKS=1" ./configure
make
)
(cd tools/userApps/kent/src/lib/
echo '
%.o: %.c
${CC} -fPIC ${COPT} ${CFLAGS} ${HG_DEFS} ${LOWELAB_DEFS} ${HG_WARN} ${HG_INC} ${XINC} -o $@ -c $<
$(MACHTYPE)/libjkweb.so: $(O) $(MACHTYPE)
gcc -fPIC -shared -o $(MACHTYPE)/libjkweb.so $(O) -Wl,-z,defs -L../htslib -lhts -lm -lz -lpthread -lpng -lcrypto -lssl -luuid
' > makefile
make x86_64/libjkweb.so
)
cp tools/userApps/kent/src/lib/x86_64/libjkweb.so lib/