-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprep_render.sh
More file actions
executable file
·39 lines (32 loc) · 1.19 KB
/
prep_render.sh
File metadata and controls
executable file
·39 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -euo pipefail
# 01
mkdir -p ~/hpc_workshop_2024
[[ -f ~/hpc_workshop_2024/metadata.tsv ]] || cp "resources/sec1/metadata.tsv" "~/hpc_workshop_2024/"
[[ -f ~/hpc_workshop_2024/data_01_R1.fq ]] || cp "resources/sec1/data_01_R1.fq" "~/hpc_workshop_2024/"
[[ -f ~/hpc_workshop_2024/data_54_R1.fq ]] || cp "resources/sec1/data_54_R1.fq" "~/hpc_workshop_2024/"
rm -f ~/combined.fq ~/lines_with_13.tsv
# 02
section02_files="fastqs/SRR1039520_1.fastq.gz fastqs/SRR1039520_2.fastq.gz fastqs/SRR1039521_1.fastq.gz fastqs/SRR1039521_2.fastq.gz fastqs/md5sum.txt run_salmon.e run_salmon.o salmon/SRR1039520/quant.sf salmon/SRR1039521/quant.sf"
for file in $section02_files
do
dir=`dirname "${file}"`
[[ -f $file ]] || { mkdir -p $dir && cp "resources/sec2/${file}" "${file}"; }
done
rm -fr fastqc
rm -fr multiqc
# 3
section03_files="SummarizedExperiment.rds"
for file in $section03_files
do
[[ -f $file ]] || cp "resources/sec3/${file}" "./"
done
# 4
section04_files="de_res.tsv"
for file in $section04_files
do
[[ -f $file ]] || cp "resources/sec4/${file}" "./"
done
echo "Good to go."
# module load bbc2/R/alt/R-4.4.0-setR_LIBS_USER
# Rscript -e 'bookdown::render_book("index.Rmd")'