-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_PCA.sh
19 lines (16 loc) · 930 Bytes
/
run_PCA.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
### 1. configure the conda enviroment ###
source /opt/miniconda3/bin/activate WGS_analysis
### 2. set parameters ###
rscript=/home/siyuan/jobs/suzukii_WGS/genetic_diff/PCA/plot/plot_PCA.R
wd=/home/siyuan/jobs/suzukii_WGS/genetic_diff/PCA/plot
dd=/home/siyuan/jobs/suzukii_WGS/genetic_diff/PCA/results
### 3. run the plotting R script ###
Rscript $rscript $wd $dd mincov_12_mincount_1 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_12_mincount_10 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_12_mincount_20 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_12_mincount_3 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_12_mincount_5 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_12_mincount_50 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_12_mincount_8 >> run_PCA_maf.log 2>&1
# Rscript $rscript $wd $dd mincov_20_mincount_10 >> run_PCA_maf.log 2>&1