Dockerfile w/ pre-build run-proseq env and singularity.
10K+
If you can install Singularity, follow Linux instructions. If not, follow Docker instructions.
Install Singularity, Miniconda, and Git.
# clone this repo
git clone https://github.com/samesense/run-proseq/
cd run-proseq
# create anaconda enviroment
conda env create -f requirements.txt
# on respublica, load singularity module
module load singularity
Install Docker, then
docker pull samesense/run-proseq
All work is done inside your cloned directory (run-proseq) using an anaconda enviroment.
docker run -it -v /absolute/local/path/:/external/ --privileged=True --cap-add=SYS_ADMIN --detach-keys="ctrl-@" samesense/run-proseq
# clone repo
cd /absolute/local/data/
git clone https://github.com/samesense/run-proseq/
# navigate to your working directory (external)
cd /external/run-proseq
# mv sample data to correct location
mkdir data/raw/fq_gz
mv data/sample/sample*_* data/raw/fq_gz/
# activate anaconda env
source activate proseq
# make bigwig files normalized to millions of mapped reads
snakemake --configfile configs/docker_sample.json \
--use-singularity --singularity-args "-B /external/:/external/" \
-s src/rules/Snakefile.py all_bw_totalReadNorm
# activate anaconda enviroment
source activate proseq
You need to update data paths in configs/snakemake.json. Mention normalization group.
Put your fq files (sampleName_Read1.fq.gz and sampleName_Read2.fq.gz) into `run-proseq/data/raw/fq_gz/. Add your sample name to the SAMPLES list in configs/snakemake.json.
# run fastqc
snakemake --configfile configs/snakemake.json \
--use-singularity --singularity-args "-B /mnt/isilon/:/mnt/isilon/" \
-s src/rules/Snakefile.py all_fastqc
# make bigwig files normalized to millions of mapped reads
snakemake --configfile configs/snakemake.json \
--use-singularity --singularity-args "-B /mnt/isilon/:/mnt/isilon/" \
-s src/rules/Snakefile.py all_bw_totalReadNorm
# make bigwig files normalized by fly and millions of mapped reads
snakemake --configfile configs/snakemake.json \
--use-singularity --singularity-args "-B /mnt/isilon/:/mnt/isilon/" \
-s src/rules/Snakefile.py all_bw
# map paired-end mouse fastq files
snakemake --configfile configs/snakemake.json \
--use-singularity --singularity-args "-B /mnt/isilon/:/mnt/isilon/" \
-s src/rules/Snakefile.py all_mouse_mapping
# compute transcript pausing indices and transcript activity
snakemake --configfile configs/snakemake.json \
--use-singularity --singularity-args "-B /mnt/isilon/:/mnt/isilon/" \
-s src/rules/Snakefile.py all_transcript_stats
# make TSS plot for transcripts
snakemake --configfile configs/snakemake.json \
--use-singularity --singularity-args "-B /mnt/isilon/:/mnt/isilon/" \
-s src/rules/Snakefile.py all_tss_plots
Replace /mnt/isilon/ with your base path.
Content type
Image
Digest
Size
3 GB
Last updated
about 8 years ago
docker pull samesense/run-proseq